/* Dany Taquería - Estilos y temas */
/* Variables por defecto (puedes editarlas para cambiar el aspecto del sitio) */
:root {
    --color-primary: #8b1538;
    --color-primary-dark: #5c0e26;
    --color-primary-light: #a61d45;
    --color-gold: #c9a227;
    --color-text: #2d2d2d;
    --color-text-light: #555;
    --color-bg: #faf8f5;
    --color-bg-section: #fff;
    --color-topbar: #2d2d2d;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', system-ui, sans-serif;
    --max-width: 1200px;
    --section-padding: 4rem 1.5rem;
}

/* ========== Tema 4T (respaldo – no modificar; usar en config "theme": "4t" para revertir) ========== */
html.theme-4t {
    --color-primary: #8b1538;
    --color-primary-dark: #5c0e26;
    --color-primary-light: #a61d45;
    --color-gold: #c9a227;
    --color-text: #2d2d2d;
    --color-text-light: #555;
    --color-bg: #faf8f5;
    --color-bg-section: #fff;
    --color-topbar: #2d2d2d;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', system-ui, sans-serif;
    --max-width: 1200px;
    --section-padding: 4rem 1.5rem;
}

/* ========== Tema Naranja (inspirado en Soriana: naranja, fondos claros, tipografía limpia) ========== */
html.theme-naranja {
    --color-primary: #e85d00;
    --color-primary-dark: #c04e00;
    --color-primary-light: #ff6f1a;
    --color-gold: #f59e0b;
    --color-text: #1f2937;
    --color-text-light: #4b5563;
    --color-bg: #f9fafb;
    --color-bg-section: #ffffff;
    --color-topbar: #ea580c;
    --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
    --section-padding: 4rem 1.5rem;
}

html.theme-naranja .site-footer {
    color: #fff;
}

html.theme-naranja .site-footer a,
html.theme-naranja .site-footer a:visited {
    color: #fff;
}

html.theme-naranja .site-footer a:hover,
html.theme-naranja .site-footer a:active {
    color: #fff;
    opacity: 0.9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Barra superior - dirección y teléfono */
.top-bar {
    background: var(--color-topbar);
    color: #e0e0e0;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
}

.top-bar .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--color-gold);
}

/* Cabecera principal - logo y menú */
.site-header {
    background: var(--color-bg-section);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.site-logo {
    max-height: 65px;
    width: auto;
    display: block;
}

.site-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin: 0;
    font-weight: 600;
}

/* Navegación */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
}

.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Botón hamburguesa: oculto en escritorio, visible en móvil */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s, color 0.2s;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover,
.nav-toggle:focus {
    background: rgba(139, 21, 56, 0.08);
    color: var(--color-primary);
    outline: none;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.menu-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header.menu-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.site-header.menu-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero - pantalla completa con carrusel e overlay consistente */
.hero {
    position: relative;
    min-height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: var(--color-primary-dark);
}

/* Carrusel: capas de fondo (imágenes a tamaño completo, sin bajar opacidad) */
.hero-slides {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Overlay para unificar paleta: tinte de la marca sin apagar la imagen */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(92, 14, 38, 0.35) 0%,
        rgba(139, 21, 56, 0.45) 50%,
        rgba(92, 14, 38, 0.5) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
}

.hero .hero-line1 {
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin: 0 0 0.5rem;
    opacity: 0.95;
}

.hero .hero-line2 {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin: 0 0 0.25rem;
    font-style: italic;
}

.hero .hero-line3 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Secciones genéricas */
.section {
    padding: var(--section-padding);
    background: var(--color-bg-section);
}

.section:nth-child(even) {
    background: var(--color-bg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-primary);
    margin: 0 0 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

/* Quiénes Somos */
.about-block {
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.about-block p {
    margin: 0 0 1rem;
    text-align: justify;
}

.schedule-box {
    max-width: 480px;
    margin: 0 auto 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.schedule-box table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-box th,
.schedule-box td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.schedule-box th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.schedule-box tr:last-child td {
    border-bottom: none;
}

.note-box {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    background: #f8f6f2;
    border-left: 4px solid var(--color-gold);
    border-radius: 0 8px 8px 0;
}

.note-box h4 {
    margin: 0 0 0.5rem;
    color: var(--color-primary);
    font-size: 1rem;
}

.note-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* Menú - grid de ítems */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.menu-item {
    background: var(--color-bg);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    color: var(--color-text);
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.menu-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.15);
}

/* Sucursales */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.branch-card {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.branch-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin: 0 0 0.75rem;
}

.branch-card .address,
.branch-card .phone {
    margin: 0.35rem 0;
    font-size: 0.95rem;
}

.branch-card .phone a {
    color: var(--color-primary);
    text-decoration: none;
}

.branch-card .phone a:hover {
    text-decoration: underline;
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #e8e8e8;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Galería: carrusel (como menú, una imagen a la vez con prev/next) */
.gallery-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #e8e8e8;
    aspect-ratio: 4/3;
}

.gallery-carousel__viewport {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.gallery-carousel__slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-carousel__prev,
.gallery-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-carousel__prev:hover,
.gallery-carousel__next:hover {
    background: rgba(0, 0, 0, 0.75);
}

.gallery-carousel__prev {
    left: 0.75rem;
}

.gallery-carousel__next {
    right: 0.75rem;
}

.gallery-carousel__dots {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.gallery-carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.gallery-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.gallery-carousel__dot.active {
    background: #fff;
    transform: scale(1.2);
}

.gallery-carousel--paused .gallery-carousel__viewport::after {
    content: 'Pausado';
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Menú: las imágenes son clicables para abrir lightbox */
.menu-gallery .gallery-item {
    cursor: pointer;
}

/* Lightbox / diálogo a pantalla completa para el menú */
.menu-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.menu-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.menu-lightbox__backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.menu-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.menu-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.menu-lightbox__inner {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-lightbox__img {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Encuéntranos en - logos con enlaces */
.media-section {
    background: var(--color-bg);
}

.encuentranos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.encuentranos-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.encuentranos-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.2);
}

.encuentranos-link img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.encuentranos-link .encuentranos-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    padding: 0 6px;
    line-height: 1.2;
}

/* Facturación */
.facturacion-lead {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 auto 1.5rem;
    max-width: 640px;
}

.facturacion-block {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.facturacion-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.facturacion-text p {
    margin: 0 0 1rem;
}

.facturacion-cta {
    margin: 1.5rem 0 0;
}

.facturacion-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--color-primary);
    border: none;
    font: inherit;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.facturacion-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 21, 56, 0.35);
}

.facturacion-btn--disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Contacto */
.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info .address {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.contact-info .phone {
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-info .phone a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-info .email {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.contact-info .email a {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-events {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-events h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin: 0 0 0.5rem;
}

.contact-form-wrap {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form-wrap label {
    display: block;
    margin: 0.75rem 0 0.25rem;
    font-weight: 500;
}

.contact-form-wrap input,
.contact-form-wrap textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form-wrap textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-wrap button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form-wrap button:hover {
    background: var(--color-primary-dark);
}

/* Pie */
.site-footer {
    background: var(--color-topbar);
    color: #b0b0b0;
    text-align: center;
    padding: 1.5rem 1.5rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.site-footer a {
    color: #d4c4a8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.site-footer a:visited {
    color: #d4c4a8;
}

.site-footer a:visited:hover {
    color: var(--color-gold);
}

.site-footer a:active {
    color: var(--color-gold);
}

/* Diálogo Política de Privacidad (pantalla completa, contenido de politica.php en iframe) */
.politica-dialog {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.politica-dialog.is-open {
    opacity: 1;
    visibility: visible;
}

.politica-dialog__backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.politica-dialog__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.politica-dialog__close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.politica-dialog__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.politica-dialog__inner iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* Diálogo Facturación (pantalla completa, sitio en iframe; solo se cierra con el botón Cerrar) */
.factura-dialog {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.factura-dialog.is-open {
    opacity: 1;
    visibility: visible;
}

.factura-dialog__backdrop {
    position: absolute;
    inset: 0;
    cursor: default;
}

.factura-dialog__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.factura-dialog__close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.factura-dialog__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    height: 90vh;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.factura-dialog__inner iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== Animaciones y efectos ========== */
/* Entrada del hero al cargar (se suma a .hero-content existente) */
.hero .hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroEnter 1s ease-out 0.2s forwards;
}
@keyframes heroEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elementos que aparecen al hacer scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso escalonado para hijos (menú, sucursales, galería) */
.stagger-children .animate-on-scroll.is-visible:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(6) { transition-delay: 0.4s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(7) { transition-delay: 0.48s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(8) { transition-delay: 0.56s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(9) { transition-delay: 0.64s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(10) { transition-delay: 0.72s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(11) { transition-delay: 0.8s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(12) { transition-delay: 0.88s; }
.stagger-children .animate-on-scroll.is-visible:nth-child(n+13) { transition-delay: 0.96s; }

/* Efecto hover más visible en tarjetas */
.branch-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--color-primary);
}

.gallery-item {
    transition: transform 0.35s ease;
    overflow: hidden;
}
.gallery-item:hover {
    transform: scale(1.03);
}
.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}

/* Botón con efecto */
.contact-form-wrap button {
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.contact-form-wrap button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 21, 56, 0.35);
}
.contact-form-wrap button:active {
    transform: translateY(0);
}

/* Inputs con transición al enfocar */
.contact-form-wrap input,
.contact-form-wrap textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.15);
}

/* Cabecera con sombra al hacer scroll (se aplica con JS) */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Responsive - móvil */
@media (max-width: 768px) {
    .top-bar .wrap {
        flex-direction: column;
        gap: 0.5rem;
    }
    .site-header .wrap {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .nav-toggle {
        display: flex;
        order: 2;
    }
    .logo-link {
        order: 1;
    }
    .main-nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }
    .site-header.menu-open .main-nav {
        max-height: 320px;
        opacity: 1;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(0,0,0,0.06);
        margin-top: 0.5rem;
    }
    .main-nav li {
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .main-nav a {
        display: block;
        padding: 0.85rem 0.5rem;
        border-bottom: none;
    }
    .main-nav a:hover,
    .main-nav a.active {
        border-bottom: none;
        background: rgba(139, 21, 56, 0.06);
    }
    .hero {
        min-height: 70vh;
    }
}

/* Ajustes extra en pantallas muy pequeñas */
@media (max-width: 380px) {
    .site-header .wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .site-logo {
        max-height: 52px;
    }
    .site-name {
        font-size: 1.4rem;
    }
}
