/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    background: #f4f7fc;
}

/* === MENÚ (fijo, negro transparente, logo izquierda - menú derecha) === */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    background-color: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
    border-radius: 10px;
}

/* Menú a la derecha */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: #003e8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #1A86FF;
    border-bottom: 2px solid #1A86FF;
}

/* Scroll snapping */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.section,
.hero-section {
    scroll-snap-align: start;
}

/* Secciones */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 2rem;
    color: white;
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.bg-alt {
    background: #e9ecef;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* Títulos de sección */
.section h2 {
    color: #ffffff;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Contenedor para fondo semi-transparente */
.section .container {
    background-color: rgba(0, 24.3, 54.1, 0.6);
    padding: 3rem;
    border-radius: 16px;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

/* Texto dentro de las secciones */
.section p,
.section .about-text p,
.section .resumen {
    color: white;
    line-height: 1.7;
    font-size: 1rem;
}

.section strong {
    color: white;
    font-weight: 600;
}

/* Sección Nosotros */
.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: white;
    font-weight: 400;
}

.resumen {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: white;
}

/* Botón Leer más */
.btn-leer-mas {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-family: inherit;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-leer-mas:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.flecha {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.btn-leer-mas.activo .flecha {
    transform: rotate(180deg);
}

/* Botón Ver video */
.btn-ver-video {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 4px;
}

.btn-ver-video:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
    color: white;
}

.btn-ver-video i {
    font-size: 1rem;
}

.btn-ver-video:hover i {
    color: #ff0000;
}

/* Texto completo */
.texto-completo {
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tarjetas de productos */
.cards {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 16px;
    flex: 1;
    min-width: 250px;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.2rem;
}

.card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

/* Subproductos */
.subproductos {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.subproductos h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.subproductos-lista {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0;
}

.subproductos-lista li {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.2s ease;
}

.subproductos-lista li:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* Grid de tarjetas de iniciativas */
.iniciativas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.iniciativa-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.iniciativa-card:hover {
    background: rgba(0, 60, 138, 0.6);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.4);
}

.iniciativa-card.activa {
    background: rgba(0, 60, 138, 0.3);
    border-color: #1A86FF;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
}

.card-header h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.card-flecha {
    color: white;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.iniciativa-card.activa .card-flecha {
    transform: rotate(180deg);
}

/* Área única de contenido */
.iniciativa-contenido-area {
    margin-top: 2rem;
    background: rgba(0, 60, 138, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.contenido-inner {
    padding: 2rem;
    color: white;
}

.contenido-inner h4 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contenido-inner p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contenido-inner ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.contenido-inner li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.contenido-inner strong {
    color: #D8EAF2;
    font-weight: bold;
    font-size: 22px;
}

.contenido-inner .highlight {
    background: rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    border-left: 3px solid #ffffff;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    display: inline-block;
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(0, 60, 138, 0.8);
    border-color: #1A86FF;
}

.tag.azul {
    background: rgba(0, 60, 138, 0.6);
    border-color: #1A86FF;
    color: #ffffff;
}

.tag.verde {
    background: rgba(40, 167, 69, 0.3);
    border-color: #28a745;
    color: #ffffff;
}

.tag.dorado {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #ffc107;
}

.tag.morado {
    background: rgba(150, 0, 129, 0.2);
    border-color: #960081;
    color: #ffffff;
}

.tag.rojo {
    background: rgba(220, 20, 60, 0.2);
    border-color: #dc143c;
    color: #ffffff;
}

.tag.ambar {
    background: rgba(255, 140, 0, 0.2);
    border-color: #ff8c00;
    color: #ffcc88;
}

/* Lista de productos en columnas */
.lista-productos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.lista-columna h5 {
    color: #ffd966;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lista-columna ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-columna li {
    font-size: 0.75rem;
    padding: 0.3rem 0;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lista-columna li span.color-cuadrito {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .lista-productos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lista-productos {
        grid-template-columns: 1fr;
    }
}

/* Sección Contacto */
.contacto-subtitulo {
    text-align: center;
    color: white;
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contacto-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.contacto-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.contacto-icono {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd966;
}

.contacto-card h3 {
    color: #ffd966;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.contacto-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacto-lista li {
    margin-bottom: 1rem;
    color: white;
}

.contacto-lista li strong {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.contacto-lista li span {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .contacto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

/* Fondos de secciones */
#nosotros {
    background-image: url('../images/nosotros-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

#productos {
    background-image: url('../images/productos-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

#sustentabilidad {
    background-image: url('../images/sustentabilidad-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

#contacto {
    background-image: url('../images/contacto-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ============================================ */
/* IMÁGENES FLOTANTES */
/* ============================================ */

.floating-images {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.floating-img {
    width: 140px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: white;
}

.floating-img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: #1A86FF;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .floating-images {
        right: 15px;
        gap: 15px;
    }
    .floating-img {
        width: 100px;
        height: 85px;
    }
}

@media (max-width: 768px) {
    .floating-images {
        position: fixed;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 10px;
        background: rgba(0, 0, 0, 0.6);
        padding: 12px 8px;
        border-radius: 60px;
        backdrop-filter: blur(5px);
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .floating-img {
        width: 45px;
        height: 40px;
        border-radius: 8px;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .floating-images {
        right: 8px;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 50px;
    }
    .floating-img {
        width: 38px;
        height: 34px;
    }
}

/* Barra de agua */
.barra-container {
    margin-top: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.barra-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ccc;
}

.barra-fondo {
    background-color: rgba(255,255,255,0.2);
    border-radius: 30px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.barra-porcentaje {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    transition: none;
    background-color: #e74c3c;
}

.barra-valor {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.barra-escala {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 10px;
    color: #aaa;
    padding: 0 5px;
}

/* Excedentes del cuero */
.productos-origen-grid {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.producto-origen-card {
    flex: 1;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease;
}

.producto-origen-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.producto-origen-titulo {
    font-weight: bold;
    font-size: 1.1rem;
    padding-left: 12px;
    margin-bottom: 6px;
    border-left-width: 20px;
    border-left-style: solid;
}

.producto-origen-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    padding-left: 14px;
}

/* ============================================ */
/* MENÚ HAMBURGUESA PARA MÓVILES */
/* ============================================ */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2500;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #003e8a;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-container {
        position: relative;
        padding: 0.8rem 1rem;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 2500;
        margin: 0;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.8rem 1rem;
        font-size: 1.2rem;
        border-radius: 8px;
        transition: background 0.2s ease;
        color: #003e8a;
    }
    
    .nav-menu a:hover {
        background: rgba(26, 134, 255, 0.3);
        border-bottom: none;
    }
    
    .floating-images {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 85%;
    }
    .logo img {
        height: 45px;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.8rem;
    margin-left: 1rem;
    align-items: center;
}

.flag-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    opacity: 0.7;
    width: 32px;
    height: 24px;
    object-fit: cover;
}

.flag-icon:hover {
    transform: scale(1.2);
    opacity: 1;
}

@media (max-width: 768px) {
    .language-switcher {
        margin: 1rem 0 0 0;
        justify-content: center;
    }
}

/* ============================================ */
/* ESTILOS DEL HERO - VERSIÓN FINAL */
/* ============================================ */

.animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 85vh;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease-out;
    z-index: 1;
}

/* Overlay de oscurecimiento - VERDE ECOLÓGICO */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 10;
    pointer-events: none;
    transition: background-color 1.2s ease-out;
}

.hero-overlay.dark {
    background-color: rgba(0, 0, 0, 0); /* Verde bosque profundo ecológico */
}

/* CONTADOR - con animación de caída y rebote */
.counter-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    width: auto;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}

/* Animación de caída con rebote */
.counter-card.visible {
    opacity: 1;
    visibility: visible;
    animation: fallWithBounce 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    box-shadow: 0 0 30px rgba(80, 200, 100, 0.4), 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(80, 200, 100, 0.5);
}

@keyframes fallWithBounce {
    0% {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, 75%);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, 78%);
    }
    100% {
        transform: translate(-50%, 80%);
        opacity: 1;
    }
}

.counter-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.leather-icon-title {
    width: 32px;
    height: 32px;
    animation: floatIcon 2s ease-in-out infinite;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(4deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.counter-inside-title {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 2px;
    color: #C0FFD6;
    text-transform: uppercase;
    margin: 0;
}

.counter-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0.25rem 0;
}

.counter-inside-number {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800;
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    color: #FFFFFF;
    line-height: 1.2;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.leather-icon-number {
    width: 45px;
    height: 45px;
    object-fit: contain;
    animation: pulseIcon 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

.counter-inside-subtitle {
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    color: #e0e0e0;
    margin-top: 0.6rem;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

/* Hero section layout */
.hero-section {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.section {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.hero-section .container {
    display: none;
}

/* Ajustes responsive para el contador */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }
    
    .animation-container {
        min-height: 100vh;
    }
    
    .counter-card {
        width: 90%;
        min-width: auto;
        padding: 1rem 1.2rem;
    }
    
    @keyframes fallWithBounce {
        0% {
            transform: translate(-50%, -100%);
            opacity: 0;
        }
        60% {
            transform: translate(-50%, 70%);
            opacity: 1;
        }
        80% {
            transform: translate(-50%, 73%);
        }
        100% {
            transform: translate(-50%, 75%);
            opacity: 1;
        }
    }
}

/* Botones responsive */
.about-text > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-leer-mas,
.btn-ver-video {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .about-text > div {
        flex-direction: column;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .btn-leer-mas,
    .btn-ver-video {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .section .container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .iniciativas-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================ */
/* SLOGAN CENTRAL - NUEVO ESTILO */
/* ============================================ */

.slogan-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-out;
}

.slogan-wrapper.visible {
    opacity: 1;
    visibility: visible;
    animation: sloganFadeInUp 1s ease-out forwards;
}

@keyframes sloganFadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    } 
}

.slogan-text {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    line-height: 1.3;
    font-family: 'Poppins', 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #FFFFFF 0%, #C0FFD6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
}

/* Alternativa más legible (si no quieres gradiente) */
.slogan-text-solid {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    line-height: 1.3;
}

/* ============================================ */
/* CONTADOR EN ESQUINA INFERIOR DERECHA */
/* ============================================ */

.counter-card {
    position: absolute;
    bottom: 30px;
    left: 50%;
    top: auto !important;
    transform: translateX(-50%) !important;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    width: auto;
    min-width: 280px;
    max-width: 350px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(80, 200, 100, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}

/* Animación de entrada centrada */
.counter-card.visible {
    opacity: 1;
    visibility: visible;
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
/* Ajustes responsive para el contador */
@media (max-width: 768px) {
    .counter-card {
        bottom: 20px;
        right: 20px;
        left: auto !important;
        min-width: 240px;
        max-width: 280px;
        padding: 0.8rem 1rem;
    }
    
    .counter-inside-title {
        font-size: 0.8rem;
    }
    
    .counter-inside-number {
        font-size: 1.8rem;
    }
    
    .leather-icon-number {
        width: 30px;
        height: 30px;
    }
    
    .counter-inside-subtitle {
        font-size: 0.65rem;
    }
    
    .slogan-text {
        font-size: clamp(1.2rem, 5vw, 2rem);
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .counter-card {
        min-width: 200px;
        max-width: 240px;
        padding: 0.6rem 0.8rem;
        bottom: 15px;
        right: 15px;
    }
    
    .slogan-text {
        font-size: clamp(1rem, 4vw, 1.5rem);
        white-space: normal;
        max-width: 90vw;
    }
}


/* ============================================ */
/* SLOGAN CON EFECTO MÁQUINA DE ESCRIBIR */
/* ============================================ */

/* ============================================ */
/* SLOGAN CON EFECTO MÁQUINA DE ESCRIBIR - VISIBLE DESDE EL INICIO */
/* ============================================ */

.slogan-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    opacity: 1;  /* CAMBIADO: visible desde el inicio */
    visibility: visible;  /* CAMBIADO: visible desde el inicio */
    width: 90%;
    max-width: 700px;
    pointer-events: none; /* Para no interferir con clicks en el video */
    animation: subtleAppear 0.6s ease-out;
}

/* Animación sutil de aparición al cargar */
@keyframes subtleAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Clase opcional por si se necesita control adicional */
.slogan-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

.hero-card-slogan {
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
   
    overflow: hidden;
}

.leather-stripe-slogan {
    height: 6px;
}

.content-slogan {
    padding: 2rem 2rem;
}

.brand-icon-slogan {
    font-size: 1rem;  /* Aumentado de 0.85rem */
    letter-spacing: 2px;
    font-weight: 300;
    color: #b97f44;
    border-bottom: 2px solid #e2d5b6;
    display: inline-block;
    margin-bottom: 2rem;  /* Aumentado de 1.5rem */
    padding-bottom: 0.4rem;
    font-family: monospace;
    text-transform: uppercase;
}

.dynamic-phrase-slogan {
    font-size: clamp(2.2rem, 7vw, 5rem);  /* Aumentado: antes 1.5rem,5vw,3rem */
    font-weight: 800;  /* Aumentado de 700 */
    line-height: 1.2;
    margin-bottom: 1.5rem;  /* Aumentado de 1.2rem */
    font-family: 'Inter', 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;  /* Aumentado gap para mejor separación */
}

.static-text-slogan {
    color: #2C2B28;
    font-weight: 700;  /* Añadido para más peso */
}

.word-white {
    color: #D9C49C;
    text-shadow: 0 1px 0 rgba(0,0,0,0.05);
    font-weight: 900;  /* Aumentado de 1000 a 900 (rango válido) */
}

.word-blue {
    color: #1F7F7C;
    text-shadow: 0 1px 0 rgba(0,0,0,0.05);
    font-weight: 900;  /* Aumentado de 800 */
}

.static-masverde {
    color: #2F7D32;
    font-weight: 900;  /* Aumentado de 800 */
    background: linear-gradient(135deg, #2F7D32, #1E5A20);
    background-clip: text;
    -webkit-background-clip: text;
    color: #2F7D32;
}

.word-cursor-container {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: pre;
}

.cursor-blink {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #b87c4a;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.85s step-end infinite;
    border-radius: 1px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.sub-belief-slogan {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #4a4238;
    border-left: 4px solid #c6a15b;
    padding-left: 1rem;
    font-weight: 450;
    background: rgba(210, 180, 130, 0.1);
    border-radius: 0 12px 12px 0;
}

.badge-water-slogan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.2rem;
    background: #EADDBB;
    padding: 0.4rem 1rem;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #2b4f4a;
    flex-wrap: wrap;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .slogan-wrapper {
        width: 95%;
    }
    
    .content-slogan {
        padding: 1.2rem;
    }
    
    .dynamic-phrase-slogan {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brand-icon-slogan {
        font-size: 0.7rem;
    }
    
    .sub-belief-slogan {
        font-size: 0.75rem;
    }
    
    .badge-water-slogan {
        font-size: 0.6rem;
        gap: 6px;
    }
}

/* Ajuste para pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero-card-slogan {
        border-radius: 1.5rem;
    }
    
    .content-slogan {
        padding: 1rem;
    }
    
    .brand-icon-slogan {
        font-size: 0.6rem;
        margin-bottom: 1rem;
    }
    
    .dynamic-phrase-slogan {
        font-size: clamp(1.2rem, 4vw, 2rem);
        gap: 0.15rem;
    }
    
    .sub-belief-slogan {
        font-size: 0.65rem;
        margin-top: 0.8rem;
    }
    
    .badge-water-slogan {
        font-size: 0.5rem;
        gap: 4px;
        padding: 0.3rem 0.8rem;
    }
    
    .cursor-blink {
        height: 1em;
        width: 2px;
    }
}


/* Ocultar contador y slogan temporalmente */
.counter-card,
.slogan-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 108%;
    height: 108%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease-out;
    z-index: 1;
    animation: subtleMotion 25s ease-in-out infinite alternate;
}

@keyframes subtleMotion {
    0% {
        transform: translate(-50%, -50%) scale(1) translateX(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.02) translateX(1%);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.02) translateX(-1%);
    }
}



.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease-out;
    z-index: 1;
    animation: morningMist 18s ease-in-out infinite alternate;
}

@keyframes morningMist {
    0% {
        transform: translate(-50%, -50%) scale(1.02);
        filter: brightness(0.9) contrast(1.1) blur(0.5px);
    }
    33% {
        transform: translate(-50%, -50%) scale(1.05) translateX(1%);
        filter: brightness(1) contrast(1.05) blur(0px);
    }
    66% {
        transform: translate(-50%, -50%) scale(1.08) translateX(-1%);
        filter: brightness(1.05) contrast(1) blur(0.3px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.02);
        filter: brightness(0.95) contrast(1.08) blur(0.5px);
    }
}