/* Google Fonts loaded via index.html link tags for performance optimization */

/* ==========================================================================
   Variables y Sistema de Diseño
   ========================================================================== */
:root {
    /* Paleta de Colores (Extraída del Logo) */
    --color-primary: #4A895C;        /* Verde Matayoshi */
    --color-primary-dark: #376544;   /* Verde Oscuro */
    --color-primary-light: #EBF3ED;  /* Verde Pálido / Fondos */
    --color-secondary: #D4542B;      /* Naranja/Terracota */
    --color-secondary-dark: #B53F1D; /* Naranja Oscuro */
    --color-secondary-light: #FCEFEA;/* Naranja Pálido */
    --color-gold: #E4B13B;           /* Amarillo Dorado */
    --color-maroon: #8C232C;         /* Bordó/Maroon */
    
    /* Neutros */
    --color-bg: #FAFAF9;             /* Fondo general cálido */
    --color-bg-white: #FFFFFF;
    --color-text-main: #2C3531;      /* Gris muy oscuro / casi negro */
    --color-text-muted: #6B7280;    /* Gris medio para descripciones */
    --color-text-light: #9CA3AF;    /* Gris claro */
    --color-border: #E5E7EB;
    
    /* Estados */
    --color-success: #10B981;
    --color-danger: #EF4444;
    
    /* Tipografía */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Sombras (Shadows) */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(74, 137, 92, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px -10px rgba(44, 53, 49, 0.12), 0 10px 15px -3px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 30px 60px -15px rgba(74, 137, 92, 0.18), 0 15px 25px -10px rgba(0, 0, 0, 0.05);
    
    /* Bordes y Transiciones */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Altura Header */
    --header-height: 80px;
}

/* ==========================================================================
   Reset y Estilos Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SEO Visually Hidden Class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

ul {
    list-style: none;
}

/* Contenedor Max Width */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sección Base */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background-color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Header y Navegación
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(250, 250, 249, 0.85); /* Glassmorphism background matching page bg */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

.header.scrolled .logo-img {
    height: 42px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Menu Hamburguesa */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-main);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* Hamburguesa Activa */
.burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section (Carrusel/Slider)
   ========================================================================== */
.hero {
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    min-height: 550px;
    max-height: 850px;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow) ease-in-out, visibility var(--transition-slow);
    display: flex;
    align-items: flex-end;
    padding-bottom: 90px;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(250, 250, 249, 0.95) 0%, rgba(250, 250, 249, 0.5) 40%, rgba(250, 250, 249, 0) 75%);
    z-index: 2;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: transform var(--transition-slow) var(--transition-fast), opacity var(--transition-slow) var(--transition-fast);
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.slide-tag i {
    font-size: 1rem;
}

.slide-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(250, 250, 249, 0.8), 0 0 20px rgba(250, 250, 249, 0.4);
}

.slide-title span {
    color: #d3592c;
}

.slide-desc {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

.slide-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Controles Slider */
.slider-nav {
    position: absolute;
    bottom: 40px;
    right: 24px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    font-size: 1.2rem;
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: scale(1.05);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 24px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition-normal);
}

.slider-dot.active {
    background-color: var(--color-primary);
    width: 32px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Turneras del Mes (Flyers de Guardia)
   ========================================================================== */
.turneras {
    background-color: var(--color-primary-light);
}

.turneras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.turnera-card {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid rgba(74, 137, 92, 0.1);
}

.turnera-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.turnera-img-wrapper {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    cursor: pointer;
}

.turnera-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.turnera-card:hover .turnera-img {
    transform: scale(1.05);
}

.turnera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 53, 49, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.turnera-card:hover .turnera-overlay {
    opacity: 1;
}

.turnera-overlay-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: var(--transition-normal);
}

.turnera-card:hover .turnera-overlay-icon {
    transform: scale(1);
}

.turnera-info {
    padding: 24px;
    text-align: center;
}

.turnera-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.turnera-date {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==========================================================================
   Servicios (8 Servicios)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--color-bg-white);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.8rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon-box {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: rotateY(180deg);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Destacados (Carrusel de Flyers 3:4)
   ========================================================================== */
.destacados {
    background-color: var(--color-bg);
    padding: 80px 0;
    overflow: hidden;
}

.destacados-marquee {
    width: 100%;
    overflow: hidden;
    display: flex;
    padding: 20px 0;
    /* Fading gradient mask for smooth edges at the borders */
    mask-image: linear-gradient(to right, transparent, rgba(0,0,0,1) 4%, rgba(0,0,0,1) 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,1) 4%, rgba(0,0,0,1) 96%, transparent);
}

.destacados-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scroll-destacados 35s linear infinite;
}

.destacados-marquee:hover .destacados-track {
    animation-play-state: paused;
}

.destacado-card {
    position: relative;
    aspect-ratio: 3 / 4;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    background-color: var(--color-bg-white);
}

.destacado-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.destacado-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.destacado-card:hover .destacado-img {
    transform: scale(1.06);
}

.destacado-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 137, 92, 0.25); /* Verde Matayoshi translúcido */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 2;
}

.destacado-card:hover .destacado-overlay {
    opacity: 1;
}

.destacado-overlay i {
    width: 54px;
    height: 54px;
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.destacado-card:hover .destacado-overlay i {
    transform: scale(1);
}

@keyframes scroll-destacados {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .destacados {
        padding: 60px 0;
    }
    .destacado-card {
        height: 300px;
    }
    .destacados-track {
        gap: 16px;
    }
}

/* ==========================================================================
   Sucursales (3 Sucursales)
   ========================================================================== */
.branches {
    background-color: var(--color-primary-light);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.branch-card {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(74, 137, 92, 0.1);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.branch-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.branch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.branch-card:hover .branch-img {
    transform: scale(1.05);
}

.branch-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.branch-status.open {
    background-color: rgba(16, 185, 129, 0.95);
    color: #FFFFFF;
}

.branch-status.closed {
    background-color: rgba(239, 68, 68, 0.95);
    color: #FFFFFF;
}

.branch-status-dot {
    width: 8px;
    height: 8px;
    background-color: #FFFFFF;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.branch-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.branch-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.branch-meta-list {
    margin-bottom: 24px;
}

.branch-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.branch-meta-item i {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 2px;
    width: 20px;
    text-align: center;
}

.branch-meta-item strong {
    color: var(--color-text-main);
    display: block;
}

.branch-meta-item span {
    color: var(--color-text-muted);
}

.branch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
}

/* ==========================================================================
   Obras Sociales (30 Obras Sociales)
   ========================================================================== */
.obras-sociales-box {
    background-color: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 48px;
    border: 1px solid var(--color-border);
}

.obras-search-wrapper {
    max-width: 600px;
    margin: 0 auto 40px auto;
    position: relative;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-full);
}

.obras-search-input {
    width: 100%;
    padding: 16px 28px 16px 56px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.obras-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(74, 137, 92, 0.15);
    background-color: var(--color-bg-white);
}

.obras-search-wrapper i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    transition: var(--transition-normal);
}

.obra-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-white);
    transition: var(--transition-normal);
    cursor: default;
    text-align: center;
    min-height: 110px;
}

.obra-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.obra-logo-img {
    height: 72px;
    width: auto;
    max-width: 95%;
    object-fit: contain;
    margin-bottom: 8px;
    transition: var(--transition-fast);
    filter: none;
    opacity: 1;
}

.obra-card:hover .obra-logo-img {
    transform: scale(1.06);
}

.obra-logo-txt {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-text-main);
    transition: var(--transition-fast);
    line-height: 1.2;
}

.obra-card:hover .obra-logo-txt {
    color: var(--color-primary);
}

.obra-card.hidden {
    display: none;
}

.obras-no-results {
    text-align: center;
    padding: 30px 0;
    color: var(--color-text-muted);
    display: none;
}

/* ==========================================================================
   Formas de Pago
   ========================================================================== */
.pagos {
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    padding: 80px 0;
    overflow: hidden;
}

.pagos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.pagos-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.pagos-subtitle {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 600px;
}

/* Marquee / Carrusel Infinito */
.pagos-marquee {
    width: 100%;
    overflow: hidden;
    display: flex;
    padding: 20px 0;
    /* Fading gradient mask for smooth edges at the very borders of the screen */
    mask-image: linear-gradient(to right, transparent, rgba(0,0,0,1) 4%, rgba(0,0,0,1) 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,1) 4%, rgba(0,0,0,1) 96%, transparent);
}

.pagos-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scroll-marquee 30s linear infinite;
}

.pagos-marquee:hover .pagos-track {
    animation-play-state: paused;
}

/* Pago Card */
.pago-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--color-bg-white);
    padding: 18px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    min-width: 270px;
    user-select: none;
}

.pago-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pago-brand-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.pago-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.pago-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-text-main);
}

.pago-detail {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Colores de Marca Específicos */
.pago-card.efectivo .pago-icon-wrapper { background-color: #E6FDF5; color: #10B981; }
.pago-card.efectivo:hover { border-color: #10B981; box-shadow: 0 15px 30px rgba(16, 185, 129, 0.12); }

.pago-card.transferencias .pago-icon-wrapper { background-color: #F0F9FF; color: #0284C7; }
.pago-card.transferencias:hover { border-color: #0284C7; box-shadow: 0 15px 30px rgba(2, 132, 199, 0.12); }

.pago-card.mercadopago .pago-icon-wrapper { background-color: #E0F2FE; color: #009EE3; }
.pago-card.mercadopago:hover { border-color: #009EE3; box-shadow: 0 15px 30px rgba(0, 158, 227, 0.12); }

.pago-card.cuentadni .pago-icon-wrapper { background-color: #F7FEE7; color: #99CC33; }
.pago-card.cuentadni:hover { border-color: #99CC33; box-shadow: 0 15px 30px rgba(153, 204, 51, 0.12); }

.pago-card.visa .pago-icon-wrapper { background-color: #EEF2FF; color: #1A1F71; }
.pago-card.visa:hover { border-color: #1A1F71; box-shadow: 0 15px 30px rgba(26, 31, 113, 0.12); }

.pago-card.mastercard .pago-icon-wrapper { background-color: #FFF7ED; color: #EA580C; }
.pago-card.mastercard:hover { border-color: #EA580C; box-shadow: 0 15px 30px rgba(234, 88, 12, 0.12); }

.pago-card.amex .pago-icon-wrapper { background-color: #F0F9FF; color: #016FD0; }
.pago-card.amex:hover { border-color: #016FD0; box-shadow: 0 15px 30px rgba(1, 111, 208, 0.12); }

.pago-card.maestro .pago-icon-wrapper { background-color: #F0F4FF; color: #003D82; }
.pago-card.maestro:hover { border-color: #003D82; box-shadow: 0 15px 30px rgba(0, 61, 130, 0.12); }

.pago-card.cabal .pago-icon-wrapper { background-color: #FFF1F2; color: #E11D48; }
.pago-card.cabal:hover { border-color: #E11D48; box-shadow: 0 15px 30px rgba(225, 29, 72, 0.12); }

/* Animaciones al hacer Hover */
.pago-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.pago-card:hover .pago-icon-wrapper {
    transform: scale(1.1) rotate(6deg);
}

/* Keyframes de la animación de scroll */
@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .pagos {
        padding: 60px 0;
    }
    .pagos-title {
        font-size: 1.8rem;
    }
    .pagos-track {
        gap: 16px;
    }
    .pago-card {
        min-width: 240px;
        padding: 14px 20px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #1F2937;
    color: #E5E7EB;
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.8fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo-img {
    height: 55px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1); /* Logo blanco en footer */
}

.footer-desc {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #FFFFFF;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.15rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #9CA3AF;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary-light);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #9CA3AF;
}

.footer-contact-item i {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-contact-item strong {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    color: #9CA3AF;
    text-align: center;
}

.footer-bottom-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.5;
}

.footer-designer-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    transition: transform var(--transition-fast);
}

.footer-designer-link:hover {
    transform: scale(1.08);
}

.designer-logo-img {
    height: 26px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

/* ==========================================================================
   Lightbox / Visualizador de Imágenes
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 16px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #FFFFFF;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

/* ==========================================================================
   Keyframes y Animaciones
   ========================================================================== */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* ==========================================================================
   Media Queries (Responsividad)
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .obras-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation */
    .burger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 24px;
        transition: var(--transition-normal);
        z-index: 1000;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-actions {
        display: none; /* Se oculta o se mueve adentro */
    }
    
    .nav-menu .btn {
        width: 80%;
        margin-top: 16px;
    }
    
    /* Hero */
    .hero {
        height: calc(100vh - var(--header-height));
    }
    .slide {
        padding-bottom: 50px;
    }
    .slide-bg::after {
        background: linear-gradient(to bottom, rgba(250, 250, 249, 0.3) 0%, rgba(250, 250, 249, 0.1) 60%, rgba(250, 250, 249, 0.6) 100%);
    }
    .slide-content {
        background-color: rgba(250, 250, 249, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px 18px;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255, 255, 255, 0.45);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        margin: 0 auto;
        max-width: 360px;
        width: calc(100% - 32px);
    }
    .slide-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }
    .slide-desc {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    .slide-actions {
        flex-direction: column;
        gap: 8px;
    }
    .slide-actions .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    /* Turneras */
    .turneras-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Offers */
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Obras Sociales */
    .obras-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .obras-sociales-box {
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
    .branches-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .obras-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .obra-card {
        padding: 14px 10px;
        min-height: 110px;
    }
    .obra-logo-img {
        height: 44px;
        margin-bottom: 8px;
    }
    .obra-logo-txt {
        font-size: 0.95rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================================================
   Botón Volver Arriba (Back to Top)
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 4px 15px rgba(74, 137, 92, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-dark);
    box-shadow: 0 8px 25px rgba(74, 137, 92, 0.3);
    transform: translateY(-5px) scale(1.05);
}

.back-to-top-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 3px;
    padding-top: 4px; /* Centrado óptico */
}

/* La imagen de la flor del logo */
.back-to-top .flower-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transition: transform var(--transition-normal);
    pointer-events: none;
}

/* Hover: la flor se amplía y rota levemente */
.back-to-top:hover .flower-img {
    transform: scale(1.18) rotate(15deg);
}

/* El chevron en el centro superior */
.back-to-top .arrow-icon {
    font-size: 0.85rem;
    color: var(--color-primary);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.back-to-top:hover .arrow-icon {
    color: var(--color-primary-dark);
    animation: arrowBounce 1.2s infinite;
}

/* Animación del rebote del chevron en hover */
@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        border-width: 1.5px;
    }
    .back-to-top-content {
        gap: 2px;
        padding-top: 3px;
    }
    .back-to-top .flower-img {
        width: 22px;
        height: 22px;
    }
    .back-to-top .arrow-icon {
        font-size: 0.75rem;
    }
}
