/* ===========================
   RESQ-TEAM — Hoja de estilos
   =========================== */

:root {
  --red: #e11d2a;
  --red-dark: #b30f1b;
  --bg: #0d0d0f;
  --bg-alt: #131418;
  --surface: #1a1c22;
  --surface-2: #22252d;
  --text: #f4f5f7;
  --muted: #a4a8b3;
  --border: #2b2e37;
  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .7, .3, 1);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

h1, h2, h3 { font-family: "Barlow Condensed", "Inter", sans-serif; line-height: 1.05; letter-spacing: .3px; }

/* ===== Barra de progreso ===== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--red), #ff6b3d); z-index: 100; transition: width .1s linear; }

/* ===== Botones ===== */
.btn {
  --pad-y: .7rem; --pad-x: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  font-weight: 600; font-size: .95rem;
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(225, 29, 42, .35); }
.btn--primary:hover { background: var(--red-dark); box-shadow: 0 10px 28px rgba(225, 29, 42, .5); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .3); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--light { background: #fff; color: var(--red-dark); }
.btn--light:hover { background: #f1f1f1; transform: translateY(-1px); }
.btn--lg { --pad-y: .95rem; --pad-x: 1.8rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ===== Topbar ===== */
.topbar {
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  color: #fff; font-size: .82rem; font-weight: 500;
  text-align: center; padding: 7px 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.topbar__link { font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .6); }
.topbar__pulse, .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(225, 29, 42, .7); animation: pulse 1.8s infinite; display: inline-block; }
.topbar__pulse { background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 15, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.header.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: "Barlow Condensed", sans-serif; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(225, 29, 42, .4); transition: transform .3s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__img { height: 40px; width: auto; object-fit: contain; transition: transform .3s var(--ease); }
.logo:hover .logo__img { transform: scale(1.05); }
.logo--footer .logo__img { height: 48px; }
.logo__text { font-size: 1.45rem; font-weight: 700; letter-spacing: 1px; }
.logo__text span { color: var(--red); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav > a { font-weight: 500; font-size: .92rem; color: var(--muted); transition: color .2s; position: relative; }
.nav > a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--red); transition: width .25s var(--ease); }
.nav > a:not(.nav__cta):hover::after, .nav > a.active::after { width: 100%; }
.nav > a:hover, .nav > a.active { color: var(--text); }
.nav__cta { color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; isolation: isolate;
  min-height: 88vh; display: flex; align-items: center;
  padding: clamp(70px, 12vw, 130px) 0 clamp(60px, 9vw, 100px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.08); will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(110% 90% at 75% 10%, rgba(225, 29, 42, .35), transparent 55%),
    linear-gradient(90deg, rgba(10,10,12,.95) 10%, rgba(10,10,12,.7) 55%, rgba(10,10,12,.45) 100%),
    linear-gradient(180deg, rgba(10,10,12,.4), rgba(10,10,12,.85));
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; font-size: .78rem; margin-bottom: 1.1rem; background: rgba(225,29,42,.18); border: 1px solid rgba(225,29,42,.5); padding: .4rem .9rem; border-radius: 999px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero__title span { color: #d8dbe2; display: inline-block; }
.hero__sub { max-width: 600px; color: #d3d6dd; font-size: clamp(1rem, 2.5vw, 1.18rem); margin: 1.4rem 0 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.6rem; }
.hero__meta span { color: var(--muted); font-size: .9rem; }
.hero__meta strong { display: block; color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: 1.7rem; line-height: 1; }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: #fff; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ===== Stats ===== */
.stats { background: linear-gradient(90deg, var(--red-dark), var(--red)); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.4rem 22px; text-align: center; }
.stat__num { display: block; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: #fff; line-height: 1; }
.stat__label { color: rgba(255, 255, 255, .9); font-size: .85rem; }

/* ===== Secciones genéricas ===== */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section__eyebrow { color: var(--red); font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem; }
.section__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; text-transform: uppercase; }
.section__lead { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ===== Cards (Operaciones) ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .28s var(--ease), border-color .28s, box-shadow .28s;
}
.card:hover { transform: translateY(-8px); border-color: var(--red); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); filter: brightness(.85); }
.card:hover .card__media img { transform: scale(1.08); filter: brightness(1); }
.card__icon { position: absolute; left: 16px; bottom: -22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(225,29,42,.5); }
.card__body { padding: 2rem 1.6rem 1.7rem; }
.card__body h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.card__body p { color: var(--muted); font-size: .96rem; }

/* ===== Misión ===== */
.section--mission { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.mission { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem; align-items: center; }
.mission__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mission__media > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.mission__quote {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(20,21,26,.85); backdrop-filter: blur(6px); border-left: 4px solid var(--red);
  border-radius: 12px; padding: 1.4rem 1.3rem 1.2rem;
  font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; line-height: 1.15; font-weight: 600;
}
.mission__quote span { color: var(--red); font-size: 2.4rem; margin-right: .2rem; line-height: 0; }
.mission__quote cite { display: block; margin-top: .6rem; font-size: .9rem; font-style: normal; color: var(--muted); font-family: "Inter", sans-serif; }
.mission__content p { color: var(--muted); margin: 1rem 0 1.4rem; }
.mission__content .section__title { margin-top: .4rem; text-align: left; }
.checklist { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.8rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--muted); }
.checklist li strong { color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='m9 16.2-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='m9 16.2-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ===== Galería ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item { position: relative; border: 0; padding: 0; cursor: pointer; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; background: var(--surface); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; filter: grayscale(.2) brightness(.85); }
.gallery__item::after { content: "🔍"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; opacity: 0; background: rgba(225,29,42,.35); transition: opacity .3s; }
.gallery__item:hover img { transform: scale(1.1); filter: none; }
.gallery__item:hover::after { opacity: 1; }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.feature { padding: 1.8rem 1.5rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s; }
.feature:hover { transform: translateY(-5px); border-color: var(--red); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(225,29,42,.14); color: var(--red); margin-bottom: 1rem; }
.feature h3 { color: var(--text); font-size: 1.25rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .94rem; }

/* ===== FAQ ===== */
.faq { max-width: 820px; }
.accordion__item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .8rem; background: var(--surface); overflow: hidden; }
.accordion__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; background: none; border: 0; color: var(--text); font: 600 1.08rem "Barlow Condensed", sans-serif; letter-spacing: .5px; text-align: left; cursor: pointer; }
.accordion__head i { position: relative; width: 16px; height: 16px; flex: none; }
.accordion__head i::before, .accordion__head i::after { content: ""; position: absolute; background: var(--red); border-radius: 2px; transition: transform .3s var(--ease); }
.accordion__head i::before { top: 7px; left: 0; width: 16px; height: 2px; }
.accordion__head i::after { left: 7px; top: 0; width: 2px; height: 16px; }
.accordion__head[aria-expanded="true"] i::after { transform: rotate(90deg); opacity: 0; }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion__panel p { padding: 0 1.4rem 1.2rem; color: var(--muted); }

/* ===== Reel / Carrusel ===== */
.carousel { position: relative; max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.carousel__track { display: flex; transition: transform .55s var(--ease); }
.slide { position: relative; min-width: 100%; margin: 0; }
.slide img { width: 100%; height: clamp(320px, 56vw, 560px); object-fit: cover; display: block; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.6rem 1.4rem; color: #fff; font-size: 1.05rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(8,8,10,.88));
}
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(8,8,10,.5); color: #fff; font-size: 1.8rem; line-height: 1;
  backdrop-filter: blur(4px); transition: background .2s;
}
.carousel__btn:hover { background: var(--red); }
.carousel__prev { left: 14px; } .carousel__next { right: 14px; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; gap: .4rem; justify-content: center; }
.carousel__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.45); transition: background .2s, width .2s; padding: 0; }
.carousel__dots button.active { background: var(--red); width: 26px; border-radius: 5px; }

/* ===== Logos de socios ===== */
.partners { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; align-items: stretch; }
.partner {
  display: grid; place-items: center; min-width: 220px; min-height: 96px;
  padding: 1.2rem 1.8rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; transition: border-color .25s, transform .25s;
}
.partner:hover { border-color: var(--red); transform: translateY(-3px); }
.partner img { max-height: 56px; width: auto; object-fit: contain; }
.partner-video { max-width: 760px; margin: 2.4rem auto 0; }
.partner-video video { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); background: #000; }
.partner-video__caption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: .8rem; }

/* ===== Redes sociales ===== */
.socials { display: flex; gap: .7rem; justify-content: center; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.socials a:hover { transform: translateY(-3px); color: #fff; background: var(--red); border-color: var(--red); }

/* ===== Instagram / Historias ===== */
.ig-handle { color: var(--red); font-weight: 700; }
.ig-handle:hover { text-decoration: underline; }
.stories { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; }
.story { background: none; border: 0; cursor: pointer; display: grid; justify-items: center; gap: .6rem; padding: 0; color: var(--text); text-decoration: none; }
.story__ring {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: conic-gradient(from 45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75);
  padding: 3px; transition: transform .2s var(--ease);
}
.story:hover .story__ring { transform: scale(1.06); }
.story__img { width: 100%; height: 100%; border-radius: 50%; background-size: cover; background-position: center; border: 3px solid var(--bg); }
.story__ring--plus { font-size: 2.2rem; font-weight: 300; color: #fff; background: var(--surface-2); border: 2px dashed var(--border); }
.story--follow:hover .story__ring--plus { border-color: var(--red); color: var(--red); }
.story__label { font-size: .85rem; font-weight: 600; color: var(--muted); }

/* Visor de historias (modal) */
.story-viewer { position: fixed; inset: 0; z-index: 210; display: none; align-items: center; justify-content: center; gap: 1rem; background: rgba(5,5,7,.94); padding: 20px; }
.story-viewer.open { display: flex; }
.story-viewer__frame {
  position: relative; width: min(400px, 94vw); height: min(82vh, 720px);
  border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: zoomin .3s var(--ease);
}
.story-viewer__frame iframe { width: 100%; height: 100%; border: 0; }
.story-viewer__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; font-size: 1.9rem; line-height: 1; }
.story-viewer__close, .story-viewer__nav { background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 999px; transition: background .2s; }
.story-viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 2rem; flex: none; }
.story-viewer__prev { left: 14px; } .story-viewer__next { right: 14px; }
.story-viewer__close:hover, .story-viewer__nav:hover { background: var(--red); }
@media (max-width: 560px) { .story-viewer__nav { top: auto; bottom: 18px; transform: none; width: 44px; height: 44px; } }

/* ===== Opiniones / Comentarios ===== */
.reviews { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2.4rem; align-items: start; }
.review-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1rem; position: sticky; top: 90px; }
.review-form h3 { font-size: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.stars { display: inline-flex; gap: .25rem; }
.star { background: none; border: 0; cursor: pointer; font-size: 1.9rem; line-height: 1; color: #3a3d47; transition: color .15s, transform .15s; padding: 0; }
.star:hover { transform: scale(1.15); }
.star.is-on { color: #ffc63d; }

.reviews__list { display: grid; gap: 1rem; }
.reviews__loading, .reviews__empty { color: var(--muted); text-align: center; padding: 1.5rem; }
.comment { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.comment__top { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.comment__avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--red), #ff6b3d); }
.comment__meta { display: grid; }
.comment__name { font-weight: 700; font-family: "Barlow Condensed", sans-serif; font-size: 1.15rem; letter-spacing: .3px; }
.comment__date { color: var(--muted); font-size: .8rem; }
.comment__stars { color: #ffc63d; font-size: .95rem; letter-spacing: 1px; margin-left: auto; }
.comment__body { color: var(--muted); }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(90deg, var(--red-dark), var(--red)); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2.6rem 22px; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ===== Contacto ===== */
.section--contact { background: var(--bg-alt); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact__info > p { color: var(--muted); margin: 1rem 0 1.6rem; }
.contact__info .section__title { text-align: left; }
.contact__list { list-style: none; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 10px; background: rgba(225,29,42,.14); color: var(--red); }
.contact__list a:hover { color: var(--red); }

.contact__form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: .75rem .9rem; color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 29, 42, .2); }
.field textarea { resize: vertical; }
.form__note { font-size: .88rem; min-height: 1.2em; }
.form__note.ok { color: #36d399; }
.form__note.err { color: #ff6b6b; }

/* ===== Footer ===== */
.footer { background: #08080a; border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.footer__inner { display: grid; gap: 1rem; text-align: center; justify-items: center; }
.logo--footer .logo__text { font-size: 1.3rem; }
.footer__tag { color: var(--muted); font-style: italic; }
.footer__nav { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.footer__nav a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer__nav a:hover { color: var(--red); }
.footer__visits { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .85rem; background: var(--surface); border: 1px solid var(--border); padding: .4rem .9rem; border-radius: 999px; }
.footer__visits span { color: var(--text); font-weight: 700; }
.footer__copy { color: #6b7080; font-size: .82rem; }

/* ===== Flotantes ===== */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25d366;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: transform .2s var(--ease), box-shadow .2s;
}
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse-wa 2s infinite; }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37, 211, 102, .6); }

.back-to-top {
  position: fixed; right: 20px; bottom: 86px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--surface-2); border: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--red); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(5,5,7,.92); padding: 30px; }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: zoomin .3s var(--ease); }
@keyframes zoomin { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 999px; transition: background .2s; }
.lightbox__close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lightbox__prev { left: 18px; } .lightbox__next { right: 18px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }

/* ===== Pop-up de bienvenida (Instagram) ===== */
.welcome { position: fixed; inset: 0; z-index: 220; display: none; align-items: center; justify-content: center; background: rgba(5,5,7,.9); padding: 20px; }
.welcome.open { display: flex; }
.welcome__box { position: relative; width: min(420px, 94vw); animation: zoomin .35s var(--ease); }
.welcome__frame { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.welcome__frame iframe { width: 100%; height: min(74vh, 600px); border: 0; display: block; background: #fff; }
.welcome__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--red); color: #fff; font-size: 1.7rem; line-height: 1; box-shadow: var(--shadow); transition: background .2s; }
.welcome__close:hover { background: var(--red-dark); }
.welcome__cta { display: block; text-align: center; margin-top: 1rem; color: #fff; font-weight: 700; font-family: "Barlow Condensed", sans-serif; font-size: 1.2rem; letter-spacing: .5px; }
.welcome__cta:hover { color: var(--red); }
@media (max-width: 480px) { .welcome__close { top: 6px; right: 6px; } }

/* ===== Animaciones de scroll ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .mission { grid-template-columns: 1fr; }
  .mission__media > img { aspect-ratio: 16/10; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: .5rem 22px 1.2rem;
    transform: translateY(-135%); transition: transform .32s var(--ease); box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: .85rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav > a::after { display: none; }
  .nav__cta { margin-top: .8rem; border: 0; text-align: center; }
  .nav-toggle { display: flex; }
  .contact { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .review-form { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__meta { gap: 1.4rem; }
  .cta-band__inner { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .lightbox__nav { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
