/* El Maxhi - Secuencia Gráfica (estilo moderno y responsivo) */
:root{
  --bg: #0b1210;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --line: rgba(255,255,255,.14);
  --brand: #1b6a4a;
  --brand2:#2aa36f;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 24px;
  --maxw: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1000px 600px at 18% 10%, rgba(42,163,111,.18), transparent 55%),
              radial-gradient(900px 500px at 80% 20%, rgba(27,106,74,.18), transparent 50%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
.container{ width:min(var(--maxw), calc(100% - 40px)); margin:0 auto; }

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{ left: 12px; top: 12px; width:auto; height:auto; padding:10px 12px; background:#fff; color:#000; border-radius:12px; z-index:9999; }

/* Topbar */
.topbar{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 18, 15, .62);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 0;
  gap: 14px;
}
.brand{ display:flex; gap:10px; align-items:center; }
.brand__logo{
  width:42px; height:42px; border-radius: 12px;
  object-fit: cover; border:1px solid rgba(255,255,255,.14);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.brand__name{ font-weight: 800; letter-spacing:.5px; }
.brand__tag{ font-size:.88rem; color: var(--muted); }

.nav{ display:flex; gap: 16px; align-items:center; }
.nav a{ font-weight: 600; font-size:.95rem; color: rgba(255,255,255,.80); }
.nav a:hover{ color: #fff; }
@media (max-width: 860px){
  .nav{ display:none; }
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(42,163,111,1), rgba(27,106,74,1));
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn:active{ transform: translateY(0px); }
.btn--ghost{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.btn--sm{ padding: 10px 14px; font-size: .95rem; font-weight: 800; }
.link{ color: rgba(255,255,255,.85); font-weight: 700; }
.link:hover{ color:#fff; text-decoration: underline; }

/* Hero */
.hero{ position: relative; overflow:hidden; }
.hero__bg{
  position:absolute; inset:0;
  background-image:
    linear-gradient(180deg, rgba(11,18,16,.40), rgba(11,18,16,.92)),
    url("../img/portada.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.1);
}
.hero__inner{
  position:relative;
  padding: 68px 0 36px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items:start;
}
.hero__card{
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius2);
  padding: 22px;
  box-shadow: var(--shadow);
}
.pill{
  display:inline-flex;
  padding: 8px 12px;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-weight: 700;
  font-size: .9rem;
  margin: 0 0 14px;
}
.hero h1{
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
  letter-spacing: .2px;
}
.lead{ color: rgba(255,255,255,.84); font-size: 1.05rem; margin: 0 0 16px; }
.hero__cta{ display:flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero__meta{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
}
.meta__k{ display:block; font-weight: 900; }
.meta__v{ display:block; color: var(--muted); font-size: .95rem; }
.hero__tiles{ display:grid; gap: 12px; }
.tile{
  overflow:hidden;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.tile img{ height: 160px; width: 100%; object-fit: cover; }
.tile__body{ padding: 14px; }
.tile__body h3{ margin: 0 0 4px; }
.tile__body p{ margin: 0; color: var(--muted); }

@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; padding-top: 44px; }
  .tile img{ height: 170px; }
}

/* Sections */
.section{ padding: 56px 0; }
.section--soft{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.section__head{ margin-bottom: 18px; }
.section__head h2{
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
}
.section__head p{ margin: 0; color: var(--muted); }

/* Cards grid */
.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 900px){
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
}

.card{
  overflow:hidden;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.card img{ height: 220px; width: 100%; object-fit: cover; }
.card__body{ padding: 16px; }
.card__body h3{ margin:0 0 6px; }
.card__body p{ margin:0; color: var(--muted); }

/* Video */
.video{
  border-radius: var(--radius2);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.2);
  box-shadow: var(--shadow);
}
.video iframe{
  width: 100%;
  aspect-ratio: 16/9;
  display:block;
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.gitem{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  overflow:hidden;
  padding: 0;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.gitem:hover{ transform: translateY(-2px); filter: brightness(1.02); }
.gitem img{ width:100%; height: 100%; object-fit: cover; }
.gitem:nth-child(1){ grid-column: span 6; }
.gitem:nth-child(2){ grid-column: span 6; }
.gitem:nth-child(3){ grid-column: span 4; }
.gitem:nth-child(4){ grid-column: span 4; }
.gitem:nth-child(5){ grid-column: span 4; }
.gitem:nth-child(6){ grid-column: span 4; }
.gitem:nth-child(7){ grid-column: span 4; }
.gitem:nth-child(8){ grid-column: span 4; }
.gitem:nth-child(9){ grid-column: span 12; }
@media (max-width: 900px){
  .gallery{ grid-template-columns: repeat(6, 1fr); }
  .gitem:nth-child(1),
  .gitem:nth-child(2){ grid-column: span 6; }
  .gitem:nth-child(9){ grid-column: span 6; }
}
@media (max-width: 520px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .gitem{ grid-column: span 2 !important; }
}

/* Lightbox */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.82);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 9999;
}
.lightbox.is-open{ display:flex; }
.lightbox img{
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.06);
}
.lightbox__close{
  position: absolute;
  top: 14px; right: 14px;
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 26px;
  cursor:pointer;
}

/* Locations */
.loc{
  border-radius: var(--radius2);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.loc__head{ padding: 16px; border-bottom: 1px solid rgba(255,255,255,.10); }
.loc__head h3{ margin:0 0 4px; }
.loc__head p{ margin:0 0 12px; color: var(--muted); }
.loc__actions{ display:flex; gap: 10px; flex-wrap: wrap; }
.map iframe{ width:100%; height: 320px; border:0; display:block; }

/* Embeds */
.embedcard{
  border-radius: var(--radius2);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.embedcard__top{
  padding: 14px 16px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.embedcard__top h3{ margin:0; }
.embed iframe{ width:100%; height: 520px; border:0; display:block; }
.embed--center{
  min-height: 520px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 18px;
}
.embed__logo{
  width: 64px; height: 64px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  object-fit: cover;
}

/* Contact */
.contact{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items:start; }
.contact__info{ display:grid; gap: 12px; }
.infoCard{
  border-radius: var(--radius2);
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.infoCard h3{ margin:0 0 6px; }
.biglink{ font-size: 1.2rem; font-weight: 900; display:inline-block; margin-bottom: 6px; }
.muted{ color: var(--muted); margin: 0; }
.tiny{ font-size: .86rem; }

.form{
  border-radius: var(--radius2);
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
label{ display:grid; gap:6px; margin-bottom: 12px; font-weight: 700; color: rgba(255,255,255,.86); }
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: #fff;
  outline: none;
}
input:focus, textarea:focus{ border-color: rgba(42,163,111,.55); box-shadow: 0 0 0 4px rgba(42,163,111,.18); }

/* Footer */
.footer{
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(10, 18, 15, .62);
}
.footer__inner{ display:flex; align-items:center; justify-content:space-between; gap: 14px; flex-wrap: wrap; }
.footer__left{ display:flex; align-items:center; gap: 10px; }
.footer__logo{ width:42px; height:42px; border-radius: 12px; border:1px solid rgba(255,255,255,.14); object-fit: cover; }
.credit{ margin: 0; color: var(--muted); }
.footer__right{ display:flex; align-items:center; gap: 14px; flex-wrap: wrap; }
.footer__right a:hover{ text-decoration: underline; }

/* WhatsApp floating */
.wafloat{
  position: fixed; right: 16px; bottom: 16px;
  display:flex; align-items:center; gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(42,163,111,1), rgba(27,106,74,1));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  z-index: 60;
}
.wafloat svg{ width: 22px; height: 22px; fill: #fff; }
.wafloat span{ font-weight: 900; }
@media (max-width: 520px){
  .wafloat span{ display:none; }
}

/* Reveal animations */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
