/* ============================================================
   CÁMARA DE COMERCIO, SERVICIOS Y TURISMO DE AUTLÁN
   Hoja de estilos principal · Mobile first · 2026
   ------------------------------------------------------------
   Paleta base provisional (azul institucional + acento cálido).
   >>> Ajustar las variables de marca al LOGOTIPO OFICIAL <<<
   ============================================================ */

/* ---------- 1. TOKENS / VARIABLES ---------- */
:root {
    /* Marca — sustituir por colores del logo oficial */
    --brand-primary:      #0e3a5f;   /* Azul institucional */
    --brand-primary-600:  #0b3050;
    --brand-primary-700:  #082740;
    --brand-secondary:    #c8912f;   /* Acento cálido (dorado) */
    --brand-secondary-600:#b07d22;
    --brand-dark:         #0a2236;   /* Fondo oscuro secciones */
    --brand-light:        #eef4f9;   /* Fondo claro suave */

    /* Superficies y texto */
    --surface:      #ffffff;
    --surface-2:    #f6f9fc;
    --text:         #172532;
    --muted:        #5c6b7a;
    --border:       #e1e8ef;
    --border-fuerte:#cdd8e2;

    /* Estados */
    --success:      #1f8a52;
    --success-bg:   #e7f6ee;
    --error:        #c0392b;
    --error-bg:     #fdecea;

    /* Tipografía */
    --font-titulo:  "Georgia", "Times New Roman", serif;
    --font-cuerpo:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Escala tipográfica fluida */
    --fs-xs:   .8125rem;
    --fs-sm:   .9rem;
    --fs-base: 1rem;
    --fs-md:   clamp(1.05rem, 1rem + .3vw, 1.2rem);
    --fs-lg:   clamp(1.25rem, 1.1rem + .8vw, 1.6rem);
    --fs-xl:   clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem);
    --fs-2xl:  clamp(2rem, 1.5rem + 2.6vw, 3.4rem);

    /* Espaciado */
    --sp-1: .25rem; --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
    --sp-5: 1.5rem; --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4rem;
    --sp-9: 6rem;

    /* Radios y sombras (discretas) */
    --radio:    12px;
    --radio-sm: 8px;
    --radio-lg: 20px;
    --sombra:    0 1px 2px rgba(16,42,66,.06), 0 4px 16px rgba(16,42,66,.06);
    --sombra-md: 0 8px 30px rgba(16,42,66,.10);

    --contenedor: 1180px;
    --header-h: 72px;
    --transicion: .2s ease;
}

/* ---------- 2. RESET LIGERO ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
    margin: 0;
    font-family: var(--font-cuerpo);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-titulo); line-height: 1.2; color: var(--text); margin: 0 0 var(--sp-4); font-weight: 700; }
h1 { font-size: var(--fs-2xl); letter-spacing: -.01em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p  { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
strong { font-weight: 700; }

/* Accesibilidad: foco visible */
:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 2px; border-radius: 3px; }
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--brand-primary); color: #fff; padding: .75rem 1.25rem;
    border-radius: 0 0 var(--radio-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. LAYOUT ---------- */
.contenedor { width: 100%; max-width: var(--contenedor); margin-inline: auto; padding-inline: var(--sp-5); }
.seccion { padding-block: var(--sp-8); }
.seccion--compacta { padding-block: var(--sp-7); }
.seccion--oscura { background: var(--brand-dark); color: #dde7f0; }
.seccion--oscura h1, .seccion--oscura h2, .seccion--oscura h3 { color: #fff; }
.seccion--clara { background: var(--brand-light); }
.seccion--suave { background: var(--surface-2); }

.eyebrow {
    display: inline-block; font-family: var(--font-cuerpo); font-weight: 700;
    font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-secondary-600); margin-bottom: var(--sp-3);
}
.seccion--oscura .eyebrow { color: var(--brand-secondary); }
.encabezado-seccion { max-width: 720px; margin-bottom: var(--sp-6); }
.encabezado-seccion--centro { margin-inline: auto; text-align: center; }
.lead { font-size: var(--fs-md); color: var(--muted); }
.seccion--oscura .lead { color: #b9c8d6; }
.text-muted { color: var(--muted); }

/* ---------- 4. BOTONES ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-cuerpo); font-weight: 700; font-size: var(--fs-sm);
    line-height: 1; text-align: center; cursor: pointer;
    padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
    transition: var(--transicion); text-decoration: none; min-height: 48px;
}
.btn:hover { text-decoration: none; }
.btn--primario { background: var(--brand-secondary); color: #241a05; border-color: var(--brand-secondary); }
.btn--primario:hover { background: var(--brand-secondary-600); border-color: var(--brand-secondary-600); transform: translateY(-1px); }
.btn--secundario { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.btn--secundario:hover { background: var(--brand-primary-600); border-color: var(--brand-primary-600); transform: translateY(-1px); }
.btn--contorno { background: transparent; color: var(--brand-primary); border-color: var(--border-fuerte); }
.btn--contorno:hover { border-color: var(--brand-primary); background: var(--brand-light); }
.btn--fantasma { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--fantasma:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn--bloque { display: flex; width: 100%; }
.btn--grande { padding: 1.1rem 2rem; font-size: var(--fs-base); }

/* Botón WhatsApp */
.btn-wa {
    display: inline-flex; align-items: center; gap: .5rem; font-weight: 700;
    color: #128c3e; padding: .6rem .9rem; border-radius: 999px; font-size: var(--fs-sm);
    transition: var(--transicion);
}
.btn-wa:hover { background: #e7f6ec; text-decoration: none; }

/* ---------- 5. CABECERA ---------- */
.cabecera {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
    backdrop-filter: saturate(150%) blur(6px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transicion);
}
.cabecera.is-scrolled { box-shadow: var(--sombra); }
.cabecera__inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
.cabecera__logo { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.cabecera__logo:hover { text-decoration: none; }
.cabecera__logo-img { width: 48px; height: 48px; object-fit: contain; }
.cabecera__logo-fallback {
    display: none; width: 46px; height: 46px; border-radius: 10px; align-items: center; justify-content: center;
    background: var(--brand-primary); color: #fff; font-family: var(--font-titulo); font-weight: 700; font-size: 1.1rem;
}
.cabecera__logo-texto { display: flex; flex-direction: column; line-height: 1.1; }
.cabecera__logo-texto strong { font-family: var(--font-titulo); font-size: 1.02rem; color: var(--brand-primary); }
.cabecera__logo-texto em { font-style: normal; font-size: .72rem; color: var(--muted); letter-spacing: .01em; }

.cabecera__nav { margin-left: auto; }
.cabecera__menu { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.cabecera__menu a {
    display: inline-block; padding: .55rem .7rem; border-radius: var(--radio-sm);
    color: var(--text); font-weight: 600; font-size: .93rem; transition: var(--transicion);
}
.cabecera__menu a:hover { background: var(--brand-light); color: var(--brand-primary); text-decoration: none; }
.cabecera__menu a[aria-current="page"] { color: var(--brand-primary); background: var(--brand-light); }

.cabecera__acciones { display: flex; align-items: center; gap: .5rem; }
.cabecera__toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border: 1px solid var(--border-fuerte); border-radius: 10px;
    background: #fff; cursor: pointer;
}
.cabecera__toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin-inline: auto; transition: var(--transicion); }
.cabecera__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cabecera__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cabecera__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Cabecera responsive */
@media (max-width: 1080px) {
    .cabecera__wa span { display: none; }
    .cabecera__menu a { padding: .5rem .5rem; font-size: .88rem; }
}
@media (max-width: 960px) {
    .cabecera__toggle { display: flex; }
    .cabecera__nav {
        position: fixed; inset: var(--header-h) 0 0 auto; width: min(84vw, 340px);
        background: #fff; border-left: 1px solid var(--border);
        transform: translateX(100%); transition: transform .25s ease;
        overflow-y: auto; padding: var(--sp-5); box-shadow: var(--sombra-md);
    }
    .cabecera__nav.is-open { transform: translateX(0); }
    .cabecera__menu { flex-direction: column; gap: .15rem; }
    .cabecera__menu a { display: block; padding: .85rem .75rem; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
    .cabecera__cta { padding: .8rem 1.1rem; }
    body.menu-abierto { overflow: hidden; }
}
@media (max-width: 420px) {
    .cabecera__logo-texto em { display: none; }
    .cabecera__cta { padding: .7rem .9rem; font-size: .82rem; }
}

/* ---------- 6. HERO ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--brand-primary) 0%, var(--brand-primary-700) 55%, var(--brand-dark) 100%);
    color: #fff;
}
.hero__inner {
    display: grid; gap: var(--sp-6); align-items: center;
    padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero__contenido { max-width: 620px; }
.hero .eyebrow { color: var(--brand-secondary); }
.hero h1 { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--sp-4); }
.hero__texto { font-size: var(--fs-md); color: #cddcea; margin-bottom: var(--sp-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hero__micro { font-size: var(--fs-sm); color: #9fb6cb; letter-spacing: .02em; }
.hero__media { position: relative; }
.hero__figura {
    border-radius: var(--radio-lg); overflow: hidden; box-shadow: var(--sombra-md);
    aspect-ratio: 4 / 3; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
}
.hero__figura img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-foto {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; width: 100%; text-align: center; padding: var(--sp-5);
    color: rgba(255,255,255,.7); font-size: var(--fs-sm); gap: .5rem;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, rgba(255,255,255,.06) 12px 24px);
}
.placeholder-foto svg { opacity: .6; }
@media (min-width: 860px) {
    .hero__inner { grid-template-columns: 1.1fr .9fr; }
}

/* ---------- 7. FRANJA DE CONFIANZA ---------- */
.franja { background: var(--surface-2); border-block: 1px solid var(--border); }
.franja__lista {
    display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-6);
    list-style: none; margin: 0; padding-block: var(--sp-5); text-align: center;
}
.franja__lista li {
    font-family: var(--font-titulo); font-weight: 700; font-size: var(--fs-sm);
    letter-spacing: .08em; text-transform: uppercase; color: var(--brand-primary);
    display: flex; align-items: center; gap: .5rem;
}
.franja__lista li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-secondary); }

/* ---------- 8. GRIDS Y TARJETAS ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.tarjeta {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radio);
    padding: var(--sp-5); transition: var(--transicion); height: 100%;
}
.tarjeta:hover { border-color: var(--border-fuerte); box-shadow: var(--sombra); transform: translateY(-2px); }
.tarjeta__num {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 10px; background: var(--brand-light); color: var(--brand-primary);
    font-family: var(--font-titulo); font-weight: 700; margin-bottom: var(--sp-3);
}
.tarjeta__icono {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border-radius: 12px; background: var(--brand-light); color: var(--brand-primary); margin-bottom: var(--sp-3);
}
.tarjeta h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.tarjeta p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 0; }

/* Aliado / bloque a dos columnas */
.dos-col { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 860px) { .dos-col { grid-template-columns: 1fr 1fr; } .dos-col--texto-der > :first-child { order: 2; } }
.figura {
    border-radius: var(--radio-lg); overflow: hidden; box-shadow: var(--sombra);
    aspect-ratio: 4 / 3; background: var(--brand-light); border: 1px solid var(--border);
}
.figura img { width: 100%; height: 100%; object-fit: cover; }
.figura .placeholder-foto { color: var(--muted); background: repeating-linear-gradient(45deg, #eef4f9 0 12px, #e6eef5 12px 24px); }

/* ---------- 9. SECCIÓN IMPACTO ---------- */
.impacto__lista { list-style: none; margin: 0 auto var(--sp-6); padding: 0; max-width: 640px; }
.impacto__lista li {
    font-family: var(--font-titulo); font-size: var(--fs-lg); padding: var(--sp-3) 0;
    border-bottom: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: .75rem; color: #fff;
}
.impacto__lista li::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-secondary); }
.impacto__cierre { font-size: var(--fs-md); color: #cddcea; max-width: 620px; margin-inline: auto; }

/* ---------- 10. ACORDEÓN ---------- */
.acordeon { max-width: 820px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.acordeon__item { border: 1px solid var(--border); border-radius: var(--radio); background: #fff; overflow: hidden; }
.acordeon__boton {
    width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
    padding: 1.1rem 1.25rem; font-family: var(--font-cuerpo); font-weight: 700; font-size: var(--fs-base);
    color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px;
}
.acordeon__boton:hover { background: var(--surface-2); }
.acordeon__icono { flex: 0 0 auto; width: 22px; height: 22px; position: relative; transition: transform var(--transicion); }
.acordeon__icono::before, .acordeon__icono::after { content: ""; position: absolute; background: var(--brand-primary); border-radius: 2px; }
.acordeon__icono::before { top: 10px; left: 3px; right: 3px; height: 2px; }
.acordeon__icono::after { left: 10px; top: 3px; bottom: 3px; width: 2px; transition: transform var(--transicion); }
.acordeon__boton[aria-expanded="true"] .acordeon__icono::after { transform: scaleY(0); }
.acordeon__panel { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acordeon__panel-inner { padding: 0 1.25rem 1.25rem; color: var(--muted); }

/* ---------- 11. EVENTOS ---------- */
.evento-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radio); overflow: hidden; height: 100%; transition: var(--transicion);
}
.evento-card:hover { box-shadow: var(--sombra); transform: translateY(-2px); }
.evento-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--brand-light); overflow: hidden; }
.evento-card__media img { width: 100%; height: 100%; object-fit: cover; }
.evento-card__fecha {
    position: absolute; top: .75rem; left: .75rem; background: #fff; border-radius: 10px;
    padding: .35rem .55rem; text-align: center; box-shadow: var(--sombra); line-height: 1;
}
.evento-card__fecha .d { display: block; font-family: var(--font-titulo); font-weight: 700; font-size: 1.25rem; color: var(--brand-primary); }
.evento-card__fecha .m { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.evento-card__body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.evento-card__tipo, .badge {
    display: inline-block; align-self: flex-start; font-size: var(--fs-xs); font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em; padding: .25rem .6rem; border-radius: 999px;
    background: var(--brand-light); color: var(--brand-primary); margin-bottom: var(--sp-2);
}
.badge--finalizado { background: #eef0f2; color: var(--muted); }
.badge--cancelado { background: var(--error-bg); color: var(--error); }
.evento-card__titulo { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.evento-card__titulo a { color: var(--text); }
.evento-card__meta { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-3); display: grid; gap: .25rem; }
.evento-card__meta span { display: flex; align-items: center; gap: .4rem; }
.evento-card__foot { margin-top: auto; }

/* ---------- 12. RESEÑAS ---------- */
.resena {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radio);
    padding: var(--sp-5); height: 100%; display: flex; flex-direction: column;
}
.estrellas { display: inline-flex; gap: 2px; color: var(--brand-secondary); margin-bottom: var(--sp-3); }
.estrellas svg { width: 20px; height: 20px; }
.estrellas .vacia { color: var(--border-fuerte); }
.resena__texto { font-size: var(--fs-base); color: var(--text); margin-bottom: var(--sp-4); }
.resena__texto::before { content: "\201C"; }
.resena__texto::after { content: "\201D"; }
.resena__autor { margin-top: auto; display: flex; align-items: center; gap: .75rem; }
.resena__avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--brand-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-family: var(--font-titulo); font-weight: 700; flex: 0 0 auto;
}
.resena__nombre { font-weight: 700; font-size: var(--fs-sm); }
.resena__empresa { font-size: var(--fs-xs); color: var(--muted); }
.resenas-vacio {
    text-align: center; max-width: 560px; margin-inline: auto; padding: var(--sp-6);
    border: 1px dashed var(--border-fuerte); border-radius: var(--radio); background: var(--surface-2);
}

/* ---------- 13. GALERÍA + LIGHTBOX ---------- */
.galeria-filtros { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: var(--sp-6); }
.galeria-filtro {
    border: 1px solid var(--border-fuerte); background: #fff; color: var(--text);
    padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; min-height: 44px;
}
.galeria-filtro:hover { border-color: var(--brand-primary); }
.galeria-filtro.is-activo { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

.galeria {
    display: grid; gap: var(--sp-3);
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .galeria { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .galeria { grid-template-columns: repeat(4, 1fr); } }
.galeria__item {
    position: relative; display: block; border: 0; padding: 0; margin: 0; cursor: pointer;
    aspect-ratio: 1 / 1; border-radius: var(--radio-sm); overflow: hidden; background: var(--brand-light);
}
.galeria__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.galeria__item:hover img { transform: scale(1.05); }
.galeria__item figcaption {
    position: absolute; inset: auto 0 0 0; padding: .9rem .7rem .6rem;
    background: linear-gradient(transparent, rgba(10,34,54,.82)); color: #fff;
    font-size: var(--fs-xs); text-align: left; opacity: 0; transition: opacity var(--transicion);
}
.galeria__item:hover figcaption, .galeria__item:focus-visible figcaption { opacity: 1; }
.galeria__item .badge { position: absolute; top: .5rem; left: .5rem; margin: 0; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 300; display: none;
    background: rgba(6,20,33,.92); align-items: center; justify-content: center; padding: var(--sp-4);
}
.lightbox.is-open { display: flex; }
.lightbox__fig { max-width: 1000px; width: 100%; text-align: center; }
.lightbox__img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--radio-sm); box-shadow: var(--sombra-md); }
.lightbox__cap { color: #dbe6f0; margin-top: var(--sp-3); font-size: var(--fs-sm); }
.lightbox__cerrar, .lightbox__nav {
    position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer;
    width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
}
.lightbox__cerrar { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__cerrar:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
@media (max-width: 560px) { .lightbox__nav { width: 44px; height: 44px; } }

/* ---------- 14. FORMULARIOS ---------- */
.form { max-width: 640px; }
.form--ancho { max-width: 100%; }
.campo { margin-bottom: var(--sp-4); }
.campo label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: .35rem; }
.campo .req { color: var(--error); }
.campo input, .campo textarea, .campo select {
    width: 100%; font-family: inherit; font-size: var(--fs-base); color: var(--text);
    padding: .8rem .9rem; border: 1px solid var(--border-fuerte); border-radius: var(--radio-sm);
    background: #fff; transition: var(--transicion); min-height: 48px;
}
.campo textarea { min-height: 130px; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px rgba(14,58,95,.12); }
.campo__ayuda { font-size: var(--fs-xs); color: var(--muted); margin-top: .3rem; }
.campo--fila { display: grid; gap: var(--sp-4); }
@media (min-width: 620px) { .campo--fila { grid-template-columns: 1fr 1fr; } }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.check {
    display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted);
}
.check input { width: auto; min-height: auto; margin-top: .2rem; flex: 0 0 auto; }

/* Estrellas interactivas */
.rating { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { cursor: pointer; color: var(--border-fuerte); padding: 0 2px; line-height: 1; }
.rating label svg { width: 34px; height: 34px; }
.rating input:checked ~ label,
.rating label:hover, .rating label:hover ~ label { color: var(--brand-secondary); }
.rating__valor { margin-left: .5rem; font-weight: 700; color: var(--text); align-self: center; }

/* Alertas */
.alerta { padding: 1rem 1.15rem; border-radius: var(--radio-sm); margin-bottom: var(--sp-5); font-size: var(--fs-sm); border: 1px solid transparent; }
.alerta--ok { background: var(--success-bg); color: #14663c; border-color: #b6e0c8; }
.alerta--error { background: var(--error-bg); color: #922; border-color: #f0c3bd; }

/* ---------- 15. CTA DESTACADO ---------- */
.cta-bloque { text-align: center; }
.cta-bloque .btn { margin: .35rem; }

/* ---------- 16. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }

/* ---------- 17. CONTACTO ---------- */
.contacto-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .contacto-grid { grid-template-columns: 1fr 1fr; } }
.contacto-datos { display: grid; gap: var(--sp-4); }
.contacto-datos__item { display: flex; gap: .9rem; align-items: flex-start; }
.contacto-datos__item .ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-light); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; }
.contacto-datos__item h3 { font-size: var(--fs-base); margin: 0 0 .15rem; }
.contacto-datos__item p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.contacto-botones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--sp-4); }
.mapa { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--brand-light); }
.mapa iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 18. HISTORIA ---------- */
.historia-doc {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radio); padding: var(--sp-4);
    box-shadow: var(--sombra);
}
.historia-doc figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: .6rem; text-align: center; }

/* ---------- 19. BREADCRUMBS ---------- */
.migas { font-size: var(--fs-sm); color: var(--muted); padding-block: var(--sp-4); }
.migas ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.migas li::after { content: "/"; margin-left: .4rem; color: var(--border-fuerte); }
.migas li:last-child::after { content: ""; }

/* ---------- 20. PIE ---------- */
.pie { background: var(--brand-dark); color: #b8c8d6; padding-top: var(--sp-8); margin-top: var(--sp-9); }
.pie__grid { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-7); }
@media (min-width: 680px) { .pie__grid { grid-template-columns: 1.4fr 1fr; } }
@media (min-width: 1000px) { .pie__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; } }
.pie a { color: #cdd9e4; }
.pie a:hover { color: #fff; }
.pie__logo { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--sp-3); }
.pie__logo:hover { text-decoration: none; }
.pie__logo-fallback { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-secondary); color: #241a05; display: flex; align-items: center; justify-content: center; font-family: var(--font-titulo); font-weight: 700; flex: 0 0 auto; }
.pie__logo strong { display: block; font-family: var(--font-titulo); color: #fff; font-size: 1rem; }
.pie__logo em { font-style: normal; font-size: .72rem; color: #94a9ba; }
.pie__lema { font-size: var(--fs-sm); max-width: 34ch; }
.pie__redes { display: flex; gap: .75rem; margin-top: var(--sp-3); font-size: var(--fs-sm); }
.pie__titulo { font-size: var(--fs-base); color: #fff; margin-bottom: var(--sp-3); font-family: var(--font-cuerpo); }
.pie__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: var(--fs-sm); }
.pie__contacto { font-style: normal; font-size: var(--fs-sm); display: grid; gap: .5rem; }
.pie__horario { color: #94a9ba; }
.pie__col--cta .btn { margin-bottom: .5rem; width: 100%; }
.pie__legal { border-top: 1px solid rgba(255,255,255,.12); }
.pie__legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: var(--sp-4); font-size: var(--fs-xs); color: #94a9ba; }
.pie__legal-inner p { margin: 0; color: #94a9ba; }

/* ---------- 21. WHATSAPP FLOTANTE ---------- */
.wa-flotante {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--sombra-md);
    transition: transform var(--transicion);
}
.wa-flotante:hover { transform: scale(1.06); text-decoration: none; }

/* ---------- 22. UTILIDADES ---------- */
.centro { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--sp-6); }
.oculto { display: none !important; }
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.chips li { background: var(--brand-light); color: var(--brand-primary); border-radius: 999px; padding: .45rem .9rem; font-size: var(--fs-sm); font-weight: 600; }

/* Animación de entrada discreta */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
