/* Estilos específicos para index.html */

/* Sección de Introducción */
.intro-section {
    padding: clamp(3rem, 6vw, 6rem) 0;
    text-align: center;
    background: linear-gradient(180deg, #f8faf9 0%, #ffffff 100%);
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(3,93,55,0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* Sección Quiénes Somos - Estilo Split */
.conocenos-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 6rem 2rem;
    background-color: #ffffff;
}

.conocenos-split-container {
    display: grid;
    grid-template-columns: 3fr 9fr; /* 3 columnas para imagen, 9 para contenido */
    align-items: center;
    gap: 3rem; /* Reducir gap ya que la imagen es más pequeña */
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.conocenos-image-wrapper {
    border-radius: 1rem; /* Bordes más sutiles para imagen pequeña */
    overflow: hidden;
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.2); /* Sombra más sutil */
    transform: perspective(1000px) rotateY(3deg); /* Efecto 3D más sutil */
    transition: transform 0.4s ease;
    width: 100%;
    max-width: 300px; /* Limitar tamaño máximo */
}

.conocenos-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.conocenos-image {
    width: 100%;
    height: 100%;
    min-height: 250px; /* Reducir altura mínima */
    max-height: 300px; /* Limitar altura máxima */
    object-fit: cover;
    display: block;
    aspect-ratio: 1; /* Forzar aspecto cuadrado */
}

.conocenos-text-content {
    text-align: left;
    padding: 2rem 0;
}

.conocenos-text-content .section-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: var(--font-buttons);
    font-size: var(--text-button, 0.875rem);
    font-weight: 600;
    margin-bottom: 2rem;
}

.conocenos-text-content .section-title {
    font-family: var(--font-headings);
    font-size: var(--text-h2, 2.5rem);
    font-weight: 700;
    color: var(--color-text, #111827);
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: var(--letter-spacing);
}

.conocenos-description {
    font-family: var(--font-base);
    font-size: var(--text-base, 1.125rem);
    color: var(--color-text-secondary, #374151);
    line-height: var(--line-height, 1.8);
    margin: 0;
}

/* Responsive para la sección Quiénes Somos */
@media (max-width: 992px) {
    .conocenos-section {
        padding: 4rem 1.5rem;
        min-height: auto;
    }
    
    .conocenos-split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .conocenos-text-content {
        order: 2;
        text-align: center;
    }
    
    .conocenos-image-wrapper {
        order: 1;
        transform: perspective(1000px) rotateY(0deg);
        margin: 0 auto 1rem auto; /* Centrar la imagen */
        max-width: 250px; /* Tamaño más pequeño en móvil */
    }
    
    .conocenos-image {
        min-height: 200px; /* Altura más pequeña en móvil */
        max-height: 250px;
    }
    
    .conocenos-text-content .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .conocenos-image-wrapper {
        max-width: 200px; /* Aún más pequeña en móviles pequeños */
    }
    
    .conocenos-image {
        min-height: 180px;
        max-height: 200px;
    }
    
    .conocenos-text-content .section-title {
        font-size: 1.75rem;
    }
    
    .conocenos-description {
        font-size: 1rem;
    }
}

/* Sección de Productos */
.products-section {
    padding: clamp(3rem, 6vw, 6rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(3,93,55,0.02) 0%, transparent 100%);
    pointer-events: none;
}


.products-grid {
    /* Grid layout: 4 columns on desktop, 2 columns on smaller screens */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* mobile default: 2 columns */
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
    align-items: stretch; /* make children stretch to equal height */
    grid-auto-rows: 1fr;   /* force rows to be equal height so cards match */
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        padding: 0 3rem;
    }
}

/* Tablet: 3 columns for mid-sized screens (optional) */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
        padding: 0 2rem;
    }
}

/* Ensure cards fill grid cells and inner content stretches so all cards are same size */
.products-grid > .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* push button to bottom */
    height: 100%;
    min-height: 400px; /* Set minimum height for consistency */
}

/* Indicadores de scroll para móviles */
@media (max-width: 767px) {
    .products-section::after {
        content: "← Desliza para ver más productos →";
        display: block;
        text-align: center;
        color: #6b7280;
        font-size: 0.875rem;
        font-weight: 500;
        margin-top: 1rem;
        animation: fadeInOut 3s ease-in-out infinite;
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.product-card {
    /* Outer green framed container to match the design in the mock */
    background: transparent;
    border-radius: 20px;
    padding: 8px; /* gap between outer border and inner white card */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 3px solid var(--color-primary); /* green outer border */
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: visible;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card-inner {
    background: #ffffff;
    border-radius: 14px;
    padding: 1rem 1rem 1.25rem; /* Padding reducido para cards más compactas */
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

@media (min-width: 1400px) {
    .product-card-inner {
        padding: 0.875rem 0.875rem 1rem; /* Aún más compacto en pantallas grandes */
    }
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border-color: var(--color-secondary);
}

.product-card:hover .product-card-inner {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.product-card-image {
    width: 100%;
    height: 160px; /* Altura reducida para cards más compactas */
    object-fit: contain;
    margin: 0 0 0.75rem 0;
    border-radius: 12px;
    transition: transform 0.5s ease, filter 0.45s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    display: block;
    background: #f9fafb; /* Fondo suave para imágenes con transparencia */
}

/* Ajustar altura de imagen según tamaño de pantalla */
@media (min-width: 1400px) {
    .product-card-image {
        height: 140px; /* Más compacta en pantallas grandes donde hay 5 cards */
    }
}

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

.product-card-title {
    font-family: var(--font-headings);
    font-size: clamp(1rem, 2.5vw, 1.25rem); /* Tamaño de fuente reducido */
    font-weight: 800;
    color: var(--color-primary);
    margin: 0.25rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing, -0.5px);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 2.5rem; /* Altura mínima reducida */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.product-card-type {
    font-family: var(--font-buttons);
    font-size: clamp(0.65rem, 1.3vw, 0.8rem); /* Tamaño reducido */
    font-weight: 700;
    color: var(--color-primary);
    margin: 0.25rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--color-accent);
    padding: 0.35rem 0.85rem; /* Padding reducido */
    border-radius: 50px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.product-card:hover .product-card-type {
    background: var(--color-primary);
    color: white;
}

.product-card-description {
    font-family: var(--font-base);
    font-size: clamp(0.75rem, 1.3vw, 0.85rem); /* Tamaño reducido */
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.5;
    margin: 0.25rem 0 1rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Reducir a 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem; /* Altura mínima reducida */
}

/* Botón Ver Todos los Productos */
.btn-ver-todos-productos {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-buttons);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.1rem);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(11,139,58,0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-ver-todos-productos:hover {
    background: var(--color-secondary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(11,139,58,0.35);
}

/* Make sure direct children of product-card-inner fill width unless explicitly smaller */
.product-card-inner > * {
    width: 100%;
}

/* Use box-sizing so padding doesn't change perceived widths */
.product-card, .product-card-inner, .product-card * {
    box-sizing: border-box;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #1a8a8a 0%, #2d9f5f 50%, #7bc142 100%);
    color: white;
    padding: 2.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    align-items: start;
}

.footer-col .footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    letter-spacing: 0.02em;
}

/* Columna de marca/logo */
.footer-brand-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    padding: 5px;
}

.footer-brand-text {
    text-align: left;
}

.footer-brand-name {
    font-family: var(--font-headings);
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    display: block;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-family: var(--font-base);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

/* Columna de certificaciones */
.footer-certifications {
    text-align: center;
}

.footer-cert-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-cert-logo {
    max-width: 140px;
    height: auto;
    filter: brightness(1.1);
}

/* Columna de contacto */
#footer-contact {
    text-align: center;
}

#footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
}

#footer-contact p i {
    color: white;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Columna de redes sociales */
.footer-social-col {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.social-icons a {
    color: white;
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    background: transparent;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-family: var(--font-base);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */

/* Mobile — footer compacto */
@media (max-width: 767px) {
    .footer {
        padding: 0.9rem 0 0.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem 1rem;
        text-align: left;
    }

    /* Columna marca ocupa todo el ancho arriba */
    .footer-brand-col {
        grid-column: 1 / -1;
        justify-content: center;
        padding-bottom: 0.3rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .footer-logo {
        width: 32px;
        height: 32px;
        padding: 3px;
    }

    .footer-brand-name {
        font-size: 0.95rem;
    }

    .footer-tagline {
        font-size: 0.65rem;
        margin-top: 0.1rem;
    }

    .footer-brand-wrapper {
        gap: 0.6rem;
    }

    .footer-col .footer-heading {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    /* Certificaciones: ocultar imagen en mobile, solo texto breve */
    .footer-cert-logo {
        display: none;
    }

    .footer-cert-text {
        font-size: 0.68rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    #footer-contact p {
        font-size: 0.68rem;
        margin-bottom: 0.2rem;
        gap: 0.3rem;
    }

    #footer-contact p i {
        width: 14px;
    }

    .social-icons {
        gap: 0.4rem;
        justify-content: flex-start;
    }

    .social-icons a {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .footer-bottom {
        margin-top: 0.6rem;
        padding-top: 0.5rem;
        font-size: 0.62rem;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .products-grid {
        gap: 2rem;
        padding: 0 2rem;
    }

    .product-card {
        width: 100%; /* Card ocupa toda la columna del grid */
    }

    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1.3fr 0.8fr;
        text-align: left;
        gap: 1.5rem;
    }
    
    .footer-brand-col {
        justify-content: flex-start;
    }
    
    .footer-certifications {
        text-align: left;
    }
    
    #footer-contact {
        text-align: left;
    }
    
    #footer-contact p {
        justify-content: flex-start;
    }
    
    .footer-social-col {
        text-align: left;
    }

    .social-icons {
        justify-content: flex-start;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .products-grid {
        gap: 2.5rem;
        padding: 0 3rem;
    }

    .product-card {
        width: 100%; /* Card ocupa toda la columna del grid */
    }
}

/* === HERO con video === */
.hero-section.hero-video { position:relative; min-height:72vh; display:flex; align-items:center; justify-content:center; color:#fff; overflow:hidden; text-align:center; }
.hero-video-bg { position:absolute; inset:0; z-index:-2; }
.hero-video-bg video { width:100%; height:100%; object-fit:cover; }
.hero-video-overlay { position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35)); z-index:-1; }
.hero-lema { font-family: var(--font-headings); font-size:clamp(var(--text-h1, 2rem), 4vw, calc(var(--text-h1, 3rem) * 1.2)); font-weight:700; letter-spacing:var(--letter-spacing, .3px); margin-bottom:.75rem; }
.hero-lema em { font-style:normal; }
.hero-sublema { font-family: var(--font-base); font-size:clamp(var(--text-base, 1rem), 1.8vw, calc(var(--text-base, 1.15rem) * 1.15)); opacity:.95; margin:0 auto 1.25rem; max-width:900px; }
.hero-cta .cta-button { margin-top:.5rem; }

/* === Conócenos === */
.conocenos-section .lead { max-width:900px; margin:0 auto; font-size:1.1rem; }

/* === Valores === */
.valores-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:1rem; max-width:1000px; margin:2rem auto 0; }
.valor-card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:1rem 1.25rem; box-shadow:0 4px 10px rgba(0,0,0,.04); }
.valor-card b { color: var(--color-primary); }

/* === Qué nos diferencia === */
.diff-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem; 
    max-width: 1100px; 
    margin: 3rem auto 0; 
}

.diff-card { 
    background: #fff; 
    border: 3px solid var(--color-primary);
    border-radius: 16px; 
    padding: 2rem; 
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
    position: relative;
}

.diff-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.diff-card:first-child {
    display: flex;
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
}

.diff-card-icon {
    flex-shrink: 0;
}

.diff-icon-circle {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.diff-icon-content {
    color: white;
    text-align: center;
}

.diff-icon-text {
    font-family: var(--font-buttons);
    font-size: var(--text-button, 0.9rem);
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diff-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diff-card h3 { 
    margin: 0 0 1rem 0; 
    font-family: var(--font-headings);
    font-size: var(--text-h3, 1.3rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    letter-spacing: var(--letter-spacing);
}

.diff-card:first-child h3 {
    margin-bottom: 1rem;
}

.diff-card p { 
    margin: 0; 
    font-family: var(--font-base);
    color: var(--color-text-secondary, #374151);
    line-height: var(--line-height, 1.6);
    font-size: var(--text-base, 1rem);
}

/* === Servicios === */
.servicios-section { background:#f9fafb; padding:3.5rem 1rem; }
.servicios-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:1.25rem; max-width:1200px; margin:2rem auto 0; }
.serv-card { background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:1.25rem; display:flex; gap:.9rem; box-shadow:0 6px 16px -6px rgba(0,0,0,.08); }
.serv-ico { flex:0 0 42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; background: var(--color-accent); border:1px solid var(--color-accent); }
.serv-ico i { color: var(--color-primary); }
.serv-card h4 { margin:.1rem 0 .25rem; font-family: var(--font-headings); font-size: var(--text-h3, 1.05rem); letter-spacing: var(--letter-spacing); }
.serv-card p { margin:0; font-family: var(--font-base); color: var(--color-text-secondary, #4b5563); font-size: calc(var(--text-base, 1rem) * 0.98); }

/* === Social + Contacto breve === */
.social-contact { padding:2.5rem 1rem; }
.social-row { display:flex; gap:1rem; flex-wrap:wrap; align-items:center; justify-content:center; margin-top:1rem; }
.social-row a { display:inline-flex; align-items:center; gap:.5rem; padding:.6rem .9rem; border-radius:9999px; text-decoration:none; background:#111827; color:#fff; font-weight:600; }
.social-row a.inst { background:#e1306c; }
.social-row a.fb { background:#1877f2; }
.contact-mini { text-align:center; margin-top:1.25rem; color:#374151; }

/* === Responsive === */
@media (max-width: 992px){
  .servicios-grid, .diff-grid { grid-template-columns:1fr 1fr; }
  
  .diff-card:first-child {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .diff-icon-circle {
    width: 120px;
    height: 120px;
  }
  
  .diff-icon-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 640px){
  .valores-grid, .servicios-grid, .diff-grid { grid-template-columns:1fr; }
  .hero-section.hero-video { min-height:64vh; }
  
  .diff-card {
    min-height: 200px;
    padding: 1.5rem;
  }
  
  .diff-card:first-child {
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .diff-icon-circle {
    width: 100px;
    height: 100px;
  }
  
  .diff-icon-text {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  
  .diff-card h3 {
    font-size: 1.1rem;
  }
  
  .diff-card p {
    font-size: 0.9rem;
  }
}

/* Estilos para la Barra de Navegación */
/* NOTA: Los estilos de fondo, colores y tamaños ahora son dinámicos desde el admin */
/* Solo se mantienen aquí los estilos de posicionamiento y estructura base */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    /* Fondo, blur, sombra y altura controlados desde admin */
}

/* Asegurar que el contenido no quede oculto detrás del navbar */
.main-content {
    padding-top: 0; /* Eliminado para que el hero quede pegado al navbar */
}

@media screen and (max-width: 768px) {
    .main-content {
        padding-top: 0;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Altura controlada desde admin */
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-headings);
    font-weight: bold;
    font-size: calc(var(--text-h1, 3rem) * 1.0);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Color controlado desde admin */
}

.navbar.scrolled .nav-logo {
    font-size: calc(var(--text-h2, 2.2rem) * 1.1);
}

.nav-logo-img {
    margin-right: 8px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.6));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Altura controlada desde admin */
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.nav-item {
    margin-left: 35px;
}

.nav-link {
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 8px 15px;
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    /* Color y tamaño controlados desde admin */
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    /* Color hover controlado desde admin */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
    /* Color controlado desde admin */
}

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

.nav-toggle {
    display: none;
    font-size: var(--text-h2, 1.8rem);
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    /* Color controlado desde admin */
}

/* === DROPDOWNS DEL NAVBAR === */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown .nav-link i {
    font-size: 0.75rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(3, 93, 55, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    z-index: 1000;
    margin-top: 10px;
    list-style: none;
    padding: 10px 0;
}

.nav-item.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    margin: 0;
    padding: 0;
}

.nav-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown li a:hover {
    background: rgba(112, 178, 62, 0.2);
    border-left-color: #70b23e;
    color: #70b23e;
}

/* Triángulo superior del dropdown */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(3, 93, 55, 0.95);
}

/* Estilos para el menú en móviles */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 5px 0;
    }
    
    .navbar.scrolled {
        padding: 3px 0;
    }
    
    .nav-container {
        height: 70px;
        padding: 0 15px;
        position: relative;
    }
    
    .navbar.scrolled .nav-container {
        height: 55px;
    }
    
    .nav-logo {
        font-size: 1.5rem;
        max-width: calc(100% - 60px);
    }
    
    .nav-logo span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar.scrolled .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-logo-img {
        height: 50px;
        min-width: 50px;
        margin-right: 8px;
    }
    
    .navbar.scrolled .nav-logo-img {
        height: 40px;
        min-width: 40px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background: linear-gradient(135deg, rgba(3, 93, 55, 0.98) 0%, rgba(6, 78, 59, 0.98) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        overflow: hidden;
        transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-menu.active {
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar.scrolled .nav-menu {
        top: 55px;
    }
    
    .navbar.scrolled .nav-menu.active {
        height: calc(100vh - 55px);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 1.5rem 0;
        align-items: stretch;
    }

    .nav-item {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 1.5rem;
        width: 100%;
        color: #ffffff;
        font-size: 1.1rem;
        text-shadow: none;
        background: transparent;
        transition: background 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Dropdowns en móvil */
    .nav-item.has-dropdown .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-item.has-dropdown .nav-link i {
        transition: transform 0.3s ease;
    }
    
    .nav-item.has-dropdown.active .nav-link i {
        transform: rotate(180deg);
    }
    
    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        backdrop-filter: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
        padding: 0;
        min-width: 100%;
    }
    
    .nav-dropdown::before {
        display: none;
    }
    
    .nav-item.has-dropdown.active .nav-dropdown {
        max-height: 500px;
    }
    
    .nav-dropdown li a {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        border-left: none;
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .nav-dropdown li a:hover {
        background: rgba(112, 178, 62, 0.3);
        padding-left: 1.5rem;
        color: #a7f3d0;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        padding: 8px;
        cursor: pointer;
        color: white;
        z-index: 1002;
    }
}


/* Map and Calculator Styles */
.contact-map-section {
    padding: 4rem 1rem 6rem;
    background-color: #f9fafb;
}

.map-container {
    max-width: 700px;
    margin: 2rem auto 0;
    position: relative;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 1000;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.map-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Logo del mapa */
.map-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.map-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.map-logo:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1001;
    display: flex;
    gap: 10px;
}

.map-control-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-control-btn:hover {
    background-color: var(--color-secondary);
}

.map-control-btn.close-btn {
    background-color: #dc2626;
}

.map-control-btn.close-btn:hover {
    background-color: #b91c1c;
}

/* Estilos para el SVG del mapa */
.map-container svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Estilo base para cada provincia (path) */
.map-container svg #features path {
    fill: #6f9c76; /* El color verde base de tu SVG */
    stroke: #ffffff;
    stroke-width: 2px; /* Un borde un poco más grueso */
    transition: fill 0.2s ease-in-out;
    cursor: pointer;
}

/* Efecto HOVER para resaltar la provincia */
.map-container svg #features path:hover {
    fill: var(--color-primary); /* Un verde más brillante al pasar el mouse */
}

/* Estilos para la Ventana Modal (Pop-up) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 700px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #9ca3af;
    cursor: pointer;
}

.modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.modal-content p {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1rem;
}

.modal-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.modal-content .cta-button:hover {
    background-color: #1fb854;
    color: white;
    text-decoration: none;
}

.modal-content .cta-button i {
    font-size: 1.2rem;
}

/* Indicador para móviles */
.mobile-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    margin: 1rem auto;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    animation: pulseHint 2s infinite;
    max-width: 300px;
}

.mobile-hint i {
    font-size: 1.1rem;
    animation: pointingFinger 1.5s ease-in-out infinite;
}

@keyframes pulseHint {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes pointingFinger {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .mobile-hint {
        display: flex;
    }

    .contact-map-section {
        padding: 2rem 1rem 4rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .map-container {
        max-width: 100%;
        margin: 1rem 0;
    }

    .map-container.expanded {
        transform: translate(-50%, -50%) scale(1.2);
        max-width: 95vw;
        max-height: 95vh;
    }

    .map-logo {
        top: 10px;
        left: 10px;
        padding: 6px;
    }

    .map-logo img {
        height: 32px;
    }

    .map-controls {
        top: 5px;
        right: 5px;
    }

    .map-control-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 85vh;
        padding: 1.5rem;
        margin: 0 10px;
    }

    .modal-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .modal-content p {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .modal-content .cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .map-container.expanded {
        transform: translate(-50%, -50%) scale(1.1);
        max-width: 98vw;
        max-height: 98vh;
    }

    .map-logo {
        top: 8px;
        left: 8px;
        padding: 4px;
    }

    .map-logo img {
        height: 28px;
    }

    .modal-content {
        max-width: 98vw;
        max-height: 90vh;
        padding: 1.25rem;
    }

    .modal-content h3 {
        font-size: 1.25rem;
    }

    .modal-content p {
        font-size: 0.9rem;
    }
}

/* Filter controls removed: styles deleted to disable product filtering UI */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card.filtered-out {
    opacity: 0.3;
    transform: scale(0.95);
    pointer-events: none;
    filter: grayscale(50%);
}

.calc-section {
    padding: clamp(3rem, 6vw, 6rem) 1rem;
    background: linear-gradient(180deg, #f8faf9 0%, #ffffff 100%);
    position: relative;
}

.calc-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(3,93,55,0.02) 0%, transparent 100%);
    pointer-events: none;
}

.calculator-card {
    max-width: 850px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: clamp(16px, 3vw, 24px);
    padding: clamp(1.75rem, 4vw, 3rem);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.08), 0 8px 16px -8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.calculator-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 12px 24px -8px rgba(0, 0, 0, 0.06);
}

#form-calc {
    margin-top: 1.5rem;
}

.calc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 1.75rem);
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.6rem;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background-color: #fafbfc;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.input-wrapper select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(3, 93, 55, 0.1);
    background-color: #fff;
}

.input-wrapper:focus-within i {
    color: var(--color-primary);
}

.input-wrapper input:hover,
.input-wrapper select:hover {
    border-color: #d1d5db;
    background-color: #fff;
}

.cta-button-calc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px -2px rgba(3, 93, 55, 0.3);
}

.cta-button-calc:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -4px rgba(3, 93, 55, 0.4);
}

.cta-button-calc:active {
    transform: translateY(-1px);
}

.calc-result {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(var(--color-accent-rgb, 168, 224, 99), 0.15) 0%, rgba(var(--color-primary-rgb), 0.08) 100%);
    border: 1px solid rgba(3, 93, 55, 0.15);
    border-radius: 16px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
}

.calc-result.visible {
    max-height: 250px;
    opacity: 1;
    padding: 1.75rem;
}

.calc-result #texto-resultado {
    color: #1f2937;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    margin: 0;
}

.calc-result #texto-resultado strong {
    font-weight: 700;
    color: var(--color-primary);
}

/* Responsive para la calculadora */
@media (max-width: 768px) {
    .calculator-card {
        padding: 1.75rem;
        border-radius: 16px;
    }
    .calc-form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .input-wrapper input,
    .input-wrapper select {
        padding: 0.85rem 1rem 0.85rem 2.75rem;
    }
}

@media (max-width: 480px) {
    .calc-section {
        padding: 2.5rem 0.75rem;
    }
    .calculator-card {
        padding: 1.5rem;
        border-radius: 14px;
    }
    .cta-button-calc {
        padding: 0.9rem 1.25rem;
    }
    .calc-result.visible {
        padding: 1.25rem;
    }
}

/* Estilos mejorados para la tabla de comercios en el modal */
.comercios-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
    table-layout: fixed;
}

/* Estilos personalizados para la barra de desplazamiento del modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

.comercios-table th,
.comercios-table td {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comercios-table th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.comercios-table td {
    background: #f8f9fa;
}

.comercios-table tr:nth-child(even) td {
    background: #ffffff;
}

.comercios-table .comercio-mapa-cell {
    text-align: center;
    width: 120px;
}

.comercios-table .comercio-mapa iframe {
    width: 100%;
    max-width: 120px;
    height: 90px;
    border: none;
    border-radius: 4px;
}

/* Responsive para la tabla en móviles */
@media (max-width: 768px) {
    .comercios-table {
        font-size: 0.8rem;
    }

    .comercios-table th,
    .comercios-table td {
        padding: 0.4rem 0.3rem;
    }

    .comercios-table .comercio-mapa-cell {
        width: 100px;
    }

    .comercios-table .comercio-mapa iframe {
        max-width: 100px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    .comercios-table {
        font-size: 0.75rem;
    }

    .comercios-table th,
    .comercios-table td {
        padding: 0.3rem 0.2rem;
    }

    .comercios-table .comercio-mapa-cell {
        width: 80px;
    }

    .comercios-table .comercio-mapa iframe {
        max-width: 80px;
        height: 60px;
    }
}

/* === HERO SECTION SPLIT === */
.hero-section-split {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 93, 55, 0.40) 0%, rgba(112, 178, 62, 0.30) 100%);
    z-index: 1;
}

.hero-split-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

.hero-text-content {
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    padding: 1rem 0 1rem 1rem;
}

.hero-section-split .hero-lema {
    font-family: var(--font-headings);
    /* Título grande y destacado */
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    margin-left: 0;
    padding-left: 0;
    text-shadow: 0 3px 15px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
}

.hero-section-split .hero-sublema {
    font-family: var(--font-base);
    /* Subtítulo más grande y legible */
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 2rem;
    margin-left: 0;
    padding-left: 0;
    max-width: 580px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.hero-video-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

.hero-video-text {
    font-family: var(--font-headings);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem; /* Pegadito al video */
    margin-left: 2rem; /* Un poco metido hacia adentro */
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.hero-video-wrapper {
    position: relative;
    border-radius: 20px;
    /* Border radius específico para parecerse a la foto (arriba-izq redondeado, abajo-der redondeado) */
    border-radius: 50px 0 50px 50px; 
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
    width: 100%;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive para hero split */
@media (max-width: 992px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-text-content {
        text-align: center;
        align-items: center;
    }
    
    .hero-section-split .hero-lema {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }
    
    .hero-section-split .hero-sublema {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
        max-width: 100%;
    }
    
    .hero-video-column {
        align-items: center;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-video-text {
        margin-left: 0;
        text-align: center;
    }
    
    .hero-video-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section-split {
        min-height: auto;
        padding: 6rem 0;
    }
    
    .hero-split-container {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    .hero-section-split .hero-lema {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    
    .hero-section-split .hero-sublema {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }
}

/* Ajustes para el Hero Section con el nuevo navbar */
.hero-section {
    min-height: 100vh;
    padding-top: 0;
}

.hero-content {
    padding: 2rem 1rem !important; /* Ajustar padding del contenido */
    max-width: 70rem !important; /* Aumentar ancho máximo para mejor uso del espacio */
}

.hero-title {
    font-size: 3.5rem !important; /* Aumentar tamaño del título */
    margin-bottom: 2rem !important;
}

.hero-subtitle {
    font-size: 1.3rem !important; /* Aumentar tamaño del subtítulo */
    max-width: 40rem !important; /* Aumentar ancho máximo */
    margin-bottom: 2.5rem !important;
}

/* Ajustes responsive para hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 110px) !important; /* Ajustar para móvil */
    }
    
    .hero-title {
        font-size: 2.5rem !important; /* Tamaño ajustado para móvil */
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important; /* Tamaño ajustado para móvil */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem !important; /* Tamaño intermedio para tablets */
    }
}