/*
 * Estilos CSS principales para el sitio web de Grupo Kowalski.

 ________  _______   ________   ___  ________           _________  ________  ________  ________  ________   ________  ________     
|\   ___ \|\  ___ \ |\   ___  \|\  \|\   ____\         |\___   ___\\   __  \|\   __  \|\   __  \|\   ___  \|\_____  \|\   __  \    
\ \  \_|\ \ \   __/|\ \  \\ \  \ \  \ \  \___|_        \|___ \  \_\ \  \|\  \ \  \|\  \ \  \|\  \ \  \\ \  \\|___/  /\ \  \|\  \   
 \ \  \ \\ \ \  \_|/_\ \  \\ \  \ \  \ \_____  \            \ \  \ \ \  \\\  \ \   _  _\ \   __  \ \  \\ \  \   /  / /\ \  \\\  \  
  \ \  \_\\ \ \  \_|\ \ \  \\ \  \ \  \|____|\  \            \ \  \ \ \  \\\  \ \  \\  \\ \  \ \  \ \  \\ \  \ /  /_/__\ \  \\\  \ 
   \ \_______\ \_______\ \__\\ \__\ \__\____\_\  \            \ \__\ \ \_______\ \__\\ _\\ \__\ \__\ \__\\ \__\\________\ \_______\
    \|_______|\|_______|\|__| \|__|\|__|\_________\            \|__|  \|_______|\|__|\|__|\|__|\|__|\|__| \|__|\|_______|\|_______|
                                       \|_________|                                                                                
                                                                                                                                   
                                                                                                                                   
💻 Código escrito con aguita en mano y khea de fondo
🧠 Si tocás esto... sabé que estás tocando código bendecido por DENIS
🌐 www.grupokowalski.com (o en proceso, dame tiempo 😅)
📍 Hecho en Argentina, con amor y unos bugs de regalo

 * Estilos CSS principales para el sitio web de Grupo Kowalski.
 * Desarrollado con dedicación para una experiencia de usuario óptima.
 */

/* ===== VARIABLES CSS: Definición de colores, tipografías, espaciados y sombras. ===== */
:root {
    /* Colores de la paleta principal. */
    --primary-color: #005f99;
    --primary-dark: #004466;
    --primary-light: #0077cc;
    --secondary-color: #ffc107;
    --secondary-dark: #e6b007;
    --accent-color: #00b4d8;
    --accent-light: #90e0ef;
    --cargando-color: #ffffff;

    /* Colores neutros para fondos y textos. */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --darker-gray: #343a40;
    --black: #000000;

    /* Degradados utilizados en elementos clave. */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #ff8f00 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0,95,153,0.8) 0%, rgba(0,180,216,0.6) 100%);

    /* Familias tipográficas para diferentes elementos de texto. */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-accent: 'Anton', sans-serif;

    /* Espaciados para márgenes y paddings. */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem; /* Ajustado para mayor espacio en general. */
    --spacing-xl: 2rem;
    --spacing-xxl: 1rem;

    /* Sombras para dar profundidad a los elementos. */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.37);

    /* Radios de borde para esquinas redondeadas. */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Transiciones para animaciones suaves. */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index para el orden de apilamiento de elementos. */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* ===== ESTILOS BASE: Reseteo y estilos generales del documento. ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Tamaño de fuente base para unidades rem. */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--darker-gray);
    background-color: var(--light-gray);
    overflow-x: hidden; /* Evita el scroll horizontal no deseado. */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg); /* Espaciado horizontal del contenedor. */
}

/* Ajustes responsive para pantallas más pequeñas. */
@media (max-width: 768px) {
    html {
        font-size: 14px; 
    }
    .container {
        padding: 0 var(--spacing-md); 
    }
    :root {
        --spacing-lg: 1rem; 
        --spacing-xl: 1.5rem;
        --spacing-xxl: 2rem;
    }
}

/* =================================================================
   ESTILOS PREMIUM v2.0 - PANTALLA DE CARGA INOLVIDABLE
   ================================================================= */

/* --- Contenedor Principal con Toque Sutil --- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: linear-gradient(135deg, #00395d 0%, #005285 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    opacity: 1;
    visibility: visible;
    /* ¡NUEVO! Un pulso sutil para dar vida al fondo */
    animation: background-pulse 8s infinite ease-in-out;
}

@keyframes background-pulse {
    0% { background-color: #00395d; }
    50% { background-color: #004a75; }
    100% { background-color: #00395d; }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Logo con Animación Mejorada --- */
.loading-logo img {
    width: 380px;
    height: auto;
    margin-bottom: 2rem;
    animation: logo-fade-in 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes logo-fade-in {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- Barra de Progreso (Sin cambios, ya era elegante) --- */
.progress-container {
    width: 250px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    animation: progress-load 2s ease-in-out infinite;
}

@keyframes progress-load {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* --- ¡NUEVO! Estilos para el Texto Dinámico --- */
.loading-text {
    position: relative; /* Contenedor para las frases */
    height: 25px; /* Altura fija para evitar saltos */
    width: 100%;
}

.loading-text .quote {
    color: #ffffff;
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0; /* Todas las frases empiezan invisibles */
    /* Animación de entrada y salida */
    animation: quote-fade 3s ease-in-out forwards;
}

/* Aplicamos un retraso diferente a cada frase para que aparezcan en secuencia */
#quote-1 { animation-delay: 0s; }
#quote-2 { animation-delay: 3s; }
#quote-3 { animation-delay: 6s; }

@keyframes quote-fade {
    0% { opacity: 0; transform: translateY(15px); } /* Empieza abajo e invisible */
    15% { opacity: 1; transform: translateY(0); }  /* Sube y se hace visible */
    85% { opacity: 1; transform: translateY(0); }  /* Se mantiene visible */
    100% { opacity: 0; transform: translateY(-15px); } /* Se va hacia arriba y desaparece */
}


/* --- Barra de Progreso Elegante --- */
.progress-container {
    width: 250px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden; /* Clave para que la barra de progreso se vea bien */
}

.progress-bar {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    /* Animación de la barra de progreso */
    animation: progress-load 2s ease-in-out infinite;
}

@keyframes progress-load {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* --- Texto con Impacto --- */
.loading-text p {
    color: #ffffff;
    font-family: 'Figtree', sans-serif; /* Usamos la fuente de tu proyecto */
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    /* Animación de aparición del texto */
    animation: text-fade-in 1s ease-in 0.5s forwards;
    opacity: 0;
}

@keyframes text-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Círculo de carga animado. */
.fuentecargando{
    font-family: var(--font-primary);
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--cargando-color);
    margin-bottom: var(--spacing-md);
    position: relative;
}
.frame {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -200px; /* Ajuste para centrar en responsive. */
  margin-left: -200px; /* Ajuste para centrar en responsive. */
}

.center {
  position: absolute;
  width: 140px;
  height: 140px;
  top: 270px;
  left: 90px;
}

.dot-1 {
  position: absolute;
  z-index: 3;
  width: 20px;
  height: 20px;
  top: 92px;
  left: 92px;
  background: #fff;
  border-radius: 50%;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: jump-jump-1 2s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
  animation: jump-jump-1 2s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
}

.dot-2 {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  top: 78px;
  left: 78px;
  background: #F0BE00;
  border-radius: 50%;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: jump-jump-2 2s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
  animation: jump-jump-2 2s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
}

.dot-3 {
  position: absolute;
  z-index: 1;
  width: 75px;
  height: 75px;
  top: 65px;
  left: 65px;
  background: #D33100;
  border-radius: 50%;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: jump-jump-3 2s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
  animation: jump-jump-3 2s cubic-bezier(0.21, 0.98, 0.6, 0.99) infinite alternate;
}

/* Keyframes para la animación de los puntos de carga. */
@keyframes jump-jump-1 {
  0%, 70% {
    box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.2);
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  100% {
    box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes jump-jump-2 {
  0%, 40% {
    box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.2);
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  100% {
    box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes jump-jump-3 {
  0%, 10% {
    box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.2);
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  100% {
    box-shadow: 10px 10px 15px 0 rgba(0, 0, 0, 0.3);
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

.loading-content p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: var(--spacing-md);
}

/* Ajustes responsive para la pantalla de carga. */
@media (max-width: 768px) {
    .loading-logo img {
        height: 200px; /* Reduce la altura del logo en móviles. */
        width: auto;
    }
    .frame {
        margin-top: -100px; /* Ajuste para centrar en móviles. */
        margin-left: -100px;
        transform: scale(0.7); /* Escala el círculo de carga. */
    }
}

/* ===== ENCABEZADO: Estilos para la barra de navegación superior. ===== */
.header {
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,95,153,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg); /* Espaciado del contenedor del encabezado. */
    min-height: 70px; /* Altura mínima del encabezado. */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 50px;
    width: 170px;
    transition: transform var(--transition-normal);
}

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

.logo-text {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
}

.nav {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    margin: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    width: auto;
}


.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(0,95,153,0.1);
}

.nav-link i {
    font-size: 0.9rem;
}

.menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 4px;
    background: rgba(255,255,255,0.98) ; 
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    z-index: var(--z-fixed) + 1; 
    position: relative; 
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* Media queries para el encabezado y navegación. */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: -300px; 
        width: 280px;
        height: 100%;
        background: var(--white); 
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding-top: 80px;
        transition: right var(--transition-normal);
        z-index: var(--z-fixed); 
    }

    .nav.open {
        right: 0; /* Muestra el menú. */
    }

    .nav-links {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .nav-link {
        padding: var(--spacing-md);
        justify-content: flex-start;
    }

    .menu-toggle {
        display: flex; 
    }

    .header-container {
        padding: var(--spacing-sm) var(--spacing-md); 
        min-height: 60px; 
    }

    .logo-img {
        height: 40px; 
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 30px; 
    }
    .header-container {
        min-height: 50px;
    }
}

/* ===== SECCIÓN HERO: Estilos para la sección principal de bienvenida. ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 800px;
    padding: var(--spacing-xl);
}

.hero-text {
    margin-bottom: var(--spacing-xxl);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
}

/* REEMPLAZO: forzar color sólido en el highlight (desktop + mobile) */
.hero-title .title-line.highlight {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  -webkit-text-stroke: 0px transparent !important;
  text-decoration: none !important;
}



.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 300;
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 4;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-controls {
    position: absolute;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.hero-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.hero-nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.hero-indicators {
    display: flex;
    gap: var(--spacing-sm);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Ajustes responsive para la sección Hero. */
@media (max-width: 768px) {
    .hero {
        min-height: 500px; /* Menor altura en móviles. */
    }
    .hero-content {
        padding: var(--spacing-md);
    }
    .hero-text {
        margin-bottom: var(--spacing-xl);
    }
    .hero-buttons {
        flex-direction: column; /* Botones apilados en móviles. */
        gap: var(--spacing-md);
    }
    .hero-stats {
        grid-template-columns: 1fr; /* Una columna en móviles. */
        gap: var(--spacing-md);
        margin-top: var(--spacing-xl);
    }
    .stat-number {
        font-size: 2rem; /* Menor tamaño de fuente. */
    }
    .hero-controls {
        flex-direction: column; /* Controles apilados. */
        right: var(--spacing-md);
        bottom: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    .hero-nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* ===== BOTONES: Estilos generales para los botones. ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Efecto de onda al hacer click. */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:active::after {
    width: 300px;
    height: 300px;
}

/* ===== SECCIONES: Estilos generales para los encabezados de sección. ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    opacity: 0;
    transform: translateY(30px);
}

.section-header.animate {
    animation: fadeInUp 1s ease forwards;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Ajustes responsive para los encabezados de sección. */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .section-subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-sm); /* Ajuste de padding. */
    }
}

/* ===== SECCIÓN EMPRENDIMIENTOS: Estilos para la sección de proyectos. ===== */
.emprendimientos-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--light-gray);
}
.filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}
/* From Uiverse.io by mrhyddenn */ 
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
    padding: 0 20px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 2px solid transparent;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
}

.filter-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #0056b3;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
}

.filter-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.filter-btn:hover i {
    transform: scale(1.1);
}

.filter-btn.active i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .filters {
        gap: 8px;
        margin: 20px 0;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .filter-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        justify-content: center;
    }
}


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

.emprendimientos-slider {
    position: relative;
}
.slider-container {
    position: relative;
}
.slides-wrapper {
    overflow: hidden;
}
.slides {
    display: flex;
    gap: var(--spacing-xl);
    transition: transform 0.5s ease;
    padding-bottom: var(--spacing-md);
}

/* --- TARJETA DE PROYECTO: Estilos para cada tarjeta individual de loteo. --- */
.project-card {
    flex: 0 0 350px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card-image {
    position: relative;
    height: 200px;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    padding: var(--spacing-md);
}
.card-status {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.card-status.disponible {
    background: rgba(40, 167, 69, 0.9);
}
.card-status.vendido {
    background: rgba(220, 53, 69, 0.9);
}
.card-status.proximamente {
    background: rgba(255, 193, 7, 0.9);
    color: var(--darker-gray);
}
.card-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-sm);
}
.loteo-logo {
    height: 30px;
    width: 30px;
    object-fit: contain;
    flex-shrink: 0;
}
.card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}
.card-location {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 5px;
}
.card-description {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}
/* =================================================================
   ESTILOS PREMIUM v3.0 - ETIQUETAS DE CARACTERÍSTICAS
   ================================================================= */

.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* 8px */
    margin-top: 1rem; /* Espacio arriba */
}

.property-feature {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem; /* 6px 12px */
    background-color: #eef2f9; /* Un azul/gris muy claro, más sofisticado */
    border-radius: 50px; /* Píldora perfectamente redondeada */
    font-size: 0.75rem; /* 12px */
    font-weight: 500; /* Un poco más de peso */
    color: #495057; /* Texto gris oscuro para legibilidad */
    line-height: 1;
    transition: all 0.2s ease-in-out;
}

.property-feature i {
    margin-right: 0.375rem; /* 6px */
    color: #5c677d; /* Un tono ligeramente más oscuro para el ícono */
}

/* Opcional: un pequeño efecto al pasar el mouse */
.property-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.card-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: auto; /* ¡Esta es la línea mágica que empuja los botones al final! */
    padding-top: 1rem; /* Añade un poco de aire entre las características y los botones */
}

/* ✅ NUEVO CSS - BOTONES 100% CLICKEABLES: */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 18px;
    font-weight: bold;
    
    /* ESTO HACE QUE TODO EL BOTÓN SEA CLICKEABLE */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    outline: none;
    user-select: none;
    
    /* Sombra sutil */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-btn.prev {
    left: -25px;
}

.slider-btn.next {
    right: -25px;
}

/* ICONOS DENTRO DEL BOTÓN - NO INTERCEPTAN CLICS */
.slider-btn i {
    pointer-events: none;
    font-size: inherit;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RESPONSIVE - AJUSTES PARA PANTALLAS PEQUEÑAS */
@media (max-width: 1200px) {
    .slider-btn.prev {
        left: 10px;
    }
    .slider-btn.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background: var(--white); 
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 80px var(--spacing-lg) var(--spacing-lg);
        transition: right 0.4s ease;
        z-index: var(--z-fixed) - 1; 
    }
    .nav.open {
        right: 0; 
    }
    .nav-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .menu-toggle {
        display: flex; 
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: var(--z-fixed); 
    }
    .hamburger-line {
        width: 25px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    .menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .header-container {
        min-height: 60px;
    }
    .logo-img {
        height: 40px;
    }
}
@media (max-width: 768px) {
    .slides {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        scrollbar-width: none;
    }
    .slides::-webkit-scrollbar {
        display: none;
    }
    .project-card {
        flex: 0 0 90%;
        scroll-snap-align: center;
    }
    .slider-btn {
        display: none;
    }
}

/* Estilos para el cartel de estado de los loteos. */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-md);
}

.card-status {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ajustes responsive para el slider de emprendimientos. */
@media (max-width: 1024px) {
    .emprendimientos-slider .slides {
        flex-wrap: wrap; /* Permite que las tarjetas se envuelvan en múltiples filas. */
        justify-content: center; /* Centra las tarjetas cuando se envuelven. */
        padding: var(--spacing-md) 0; /* Ajuste de padding. */
    }

    .project-card {
        flex: 0 0 45%; /* Dos tarjetas por fila en tablets. */
        max-width: 400px; /* Limita el ancho máximo. */
    }

    .slider-btn {
        display: none; /* Ocultar los botones del deslizador en pantallas más pequeñas si se utiliza ajuste WRAP. */
    }
}

@media (max-width: 768px) {
    .filters {
        gap: var(--spacing-sm); /* Menor espacio entre filtros. */
        margin-bottom: var(--spacing-xl);
    }
    .filter-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    .project-card {
        flex: 0 0 90%; /* Una tarjeta por fila en móviles. */
        max-width: 100%; /* Ocupa todo el ancho disponible. */
    }
    .card-content {
        padding: var(--spacing-lg); /* Menor padding en el contenido de la tarjeta. */
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card-description {
        font-size: 0.9rem;
    }
    .card-features {
        gap: var(--spacing-xs);
    }
    .feature {
        font-size: 0.75rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* ===== SECCIÓN QUIÉNES SOMOS: Estilos para la sección de información de la empresa. ===== */
.about-section {
    padding: var(--spacing-xxl) 0;
    background: var(--light-gray);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xxl);
    justify-content: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}

.about-intro {
    margin-bottom: var(--spacing-xl);
}

.about-intro .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--darker-gray);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.value-content h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.value-content p {
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.about-timeline {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: var(--white);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.about-timeline h4 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--medium-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-left: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    border: 2px solid var(--white);
    z-index: 1;
}

.timeline-year {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.timeline-content h5 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--darker-gray);
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Ajustes responsive para la sección Quiénes Somos. */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Apila las columnas en móviles. */
        gap: var(--spacing-xl);
    }
    .about-text {
        min-width: unset; /* Elimina el min-width fijo. */
        max-width: 100%;
    }
    .about-intro .lead {
        font-size: 1rem;
    }
    .about-values {
        grid-template-columns: 1fr; /* Una columna en móviles. */
        gap: var(--spacing-md);
    }
    .value-item {
        padding: var(--spacing-lg);
    }
    .value-icon {
        font-size: 1.8rem;
    }
    .value-content h4 {
        font-size: 1.1rem;
    }
    .value-content p {
        font-size: 0.9rem;
    }
    .about-timeline {
        min-width: unset; /* Elimina el min-width fijo. */
        max-width: 100%;
        padding: var(--spacing-xl);
        margin-top: var(--spacing-xl); /* Ajuste de margen. */
    }
    .about-timeline h4 {
        font-size: 1.3rem;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline::before {
        left: 5px;
    }
    .timeline-item {
        padding-left: var(--spacing-lg);
    }
    .timeline-item::before {
        left: 0;
    }
    .timeline-year {
        font-size: 1rem;
    }
    .timeline-content h5 {
        font-size: 0.95rem;
    }
    .timeline-content p {
        font-size: 0.85rem;
    }
}

/* ===== SECCIÓN CONTACTO: Estilos para el formulario de contacto y la información. ===== */
.contact-section {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}
.contact-details {
    flex: 1;
    padding: 0 var(--spacing-md);
}

.contact-details:not(:last-child) {
    border-right: 1px solid var(--medium-gray);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xxl);
    justify-content: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: grid;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: var(--light-gray);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-details h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
}

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

.contact-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    background: var(--light-gray);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--darker-gray);
    margin-bottom: var(--spacing-xs);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--darker-gray);
    transition: border-color var(--transition-normal);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,95,153,0.2);
}

.contact-form textarea {
    resize: vertical;
}

.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
    display: block;
}
/* Estilos para mensajes de éxito o error en formularios. */
.message {
    padding: var(--spacing-md) var(--spacing-xl);
    margin-top: var(--spacing-lg); /* Espacio arriba del mensaje. */
    margin-bottom: var(--spacing-lg); /* Espacio abajo del mensaje. */
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    opacity: 0; /* Por defecto oculto. */
    transform: translateY(10px); /* Ligeramente desplazado. */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    display: none; /* Asegura que no ocupe espacio cuando está oculto. */
}

.message.success {
    background-color: #e6ffed; /* Verde claro. */
    color: #28a745; /* Verde oscuro. */
    border: 1px solid #28a745;
    opacity: 1; /* Visible. */
    transform: translateY(0); /* Posición normal. */
    display: block; /* Muestra el bloque. */
}

.message.error {
    background-color: #ffe6e6; /* Rojo claro. */
    color: #dc3545; /* Rojo oscuro. */
    border: 1px solid #dc3545;
    opacity: 1; /* Visible. */
    transform: translateY(0); /* Posición normal. */
    display: block; /* Muestra el bloque. */
}

/* Estilos para listas de errores dentro del mensaje. */
.message ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.message ul li {
    margin-bottom: 5px;
}

/* Ajustes responsive para la sección de Contacto. */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column; /* Apila las columnas en móviles. */
        gap: var(--spacing-xl);
    }
    .contact-info {
        min-width: unset;
        max-width: 100%;
        grid-template-columns: 1fr; /* Una columna en móviles. */
        gap: var(--spacing-md);
    }
    .contact-item {
        padding: var(--spacing-lg);
    }
    .contact-icon {
        font-size: 1.5rem;
    }
    .contact-details h4 {
        font-size: 1.1rem;
    }
    .contact-details p {
        font-size: 0.9rem;
    }
    .contact-form-container {
        min-width: unset;
        max-width: 100%;
        padding: var(--spacing-xl);
    }
    .contact-form label {
        font-size: 0.95rem;
    }
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }
    .message {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
}

/* ===== FOOTER: Estilos para el pie de página. ===== */
.footer {
    background: var(--darker-gray);
    color: var(--light-gray);
    padding: var(--spacing-xxl) 0 var(--spacing-md) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* Logo + Emprendimientos + Servicios + Contacto */
    align-items: start;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    font-family: var(--font-primary);
    font-size: 15px; /* opcional: hacerlo un poquito más chico */
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 80px;
}

.footer-logo h3 {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    color: var(--light-gray);
    font-size: 1.5rem;
    transition: color var(--transition-normal);
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 4px;
}

.footer-section ul li a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-normal);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-contact i {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
}

.footer-links a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Ajustes responsive para el pie de página. */
@media (max-width: 768px) {
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    }
    .footer-content {
        grid-template-columns: 1fr;
    text-align: center; /* Una columna en móviles. */
        gap: var(--spacing-xl);
        text-align: center;
    }
    .footer-logo,
    .social-links,
    .footer-section ul,
    .footer-contact {
        justify-content: center; /* Centra el contenido. */
    }
    .footer-section ul {
        padding: 0; /* Elimina padding si lo hay. */
    }
    .footer-section h4 {
        font-size: 1.1rem;
    }
    .footer-section p,
    .footer-section ul li a,
    .footer-contact p {
        font-size: 0.9rem;
    }
    .social-links a {
        font-size: 1.3rem;
    }
    .footer-bottom {
        font-size: 0.8rem;
    }
    .footer-links {
        flex-direction: column; /* Enlaces apilados. */
        gap: var(--spacing-sm);
    }
      /* Centrar elementos de contacto en móviles */
    .footer-contact .elemento-contacto {
        display: flex;
        justify-content: center; /* Icono + texto centrados */
        text-align: center;
    }

    .footer-contact .elemento-contacto i {
        margin-right: 6px; /* Mantiene un poco de separación con el texto */
    }
    /* Centrar textos de contacto en móviles */
.footer-contact p {
    justify-content: center;   /* Centra ícono + texto en línea */
    text-align: center;        /* Centra el contenido de texto */
}

}

/* ===== VENTANAS EMERGENTES: Estilos para modales y pop-ups. ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.modal-content {
    background: var(--white);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    width: 90%;
    position: relative;
    transform: translateY(-50px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: color var(--transition-normal);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body h4 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.modal-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--darker-gray);
    margin-bottom: var(--spacing-lg);
}

.modal-body ul {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.modal-body ul li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--darker-gray);
}

.modal-body ul li i {
    color: var(--accent-color);
}

/* Ajustes responsive para las ventanas emergentes. */
@media (max-width: 768px) {
    .modal-content {
        padding: var(--spacing-xl);
        width: 95%; /* Ocupa más ancho en móviles. */
    }
    .modal-close {
        font-size: 1.3rem;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }
    .modal-body h4 {
        font-size: 1.3rem;
    }
    .modal-body p {
        font-size: 0.9rem;
    }
    .modal-body ul li {
        font-size: 0.9rem;
    }
}

/* ===== BOTÓN VOLVER ARRIBA: Estilos para el botón de scroll al inicio de la página. ===== */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-8px) scale(1.05);
}

/* Ajustes responsive para el botón de volver arriba. */
@media (max-width: 768px) {
    .back-to-top {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* ===== ANIMACIONES: Definición de keyframes para animaciones. ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

.heartBeat {
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animación para las partículas de fondo. */
@keyframes particle-anim {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 1; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px) scale(0.5); opacity: 0; }
}

/* ===== DISEÑO RESPONSIVO: Media queries generales. ===== */
/* Media queries generales para ajustes de layout. */
@media (max-width: 1024px) {
    /* Ajustes ya definidos en secciones específicas. */
}

@media (max-width: 768px) {
    /* Ajustes ya definidos en secciones específicas. */
}

@media (max-width: 480px) {
    /* Ajustes para pantallas muy pequeñas. */
    .hero-controls {
        flex-direction: column;
        right: var(--spacing-md);
        bottom: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero-indicators {
        flex-direction: column;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Animaciones para revelar elementos al hacer scroll. */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo de las partículas de fondo. */
.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particle-anim 10s infinite ease-in-out;
}

/* ===== BOTONERA SOCIAL FLOTANTE: Estilos para los iconos de redes sociales flotantes. ===== */

/* Contenedor principal de la botonera flotante. */
.social-float-container {
    position: fixed;
    right: 20px; /* Distancia desde el borde izquierdo. */
    bottom: 20px; /* Distancia desde el borde inferior. */
    z-index: 1000; /* Asegura que esté por encima de otros elementos. */
    display: flex;
    flex-direction: column; /* Apila los botones verticalmente. */
    gap: 12px; /* Espacio entre los botones. */
}

/* Estilos para cada contenedor de icono social. */
.socialContainer {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--dark-gray); /* Color de fondo inicial. */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease; /* Transición suave para hover. */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Sombra sutil. */
    position: relative; /* Necesario para posicionar el tooltip. */
}

/* Iconos SVG. */
.socialSvg {
    width: 24px;
    height: 24px;
}

.socialSvg path {
    fill: var(--white); /* Color inicial de los iconos. */
    transition: fill 0.3s ease; /* Transición para el color del icono. */
}

/* Colores de hover específicos para cada red social. */
.socialContainer.linktree:hover {
    background-color: #00bbff;
}
.socialContainer.twitter:hover {
    background-color: #1DA1F2;
}
.socialContainer.linkedin:hover {
    background-color: #0A66C2;
}
.socialContainer.whatsapp:hover {
    background-color: #25D366;
}
.socialContainer.facebook:hover {
    background-color: #1877F2;
}

/* Color del icono al pasar el ratón. */
.socialContainer:hover .socialSvg path {
    fill: var(--white); /* Mantener blanco o cambiar si se desea. */
}

/* Animación de escala al hacer click. */
.socialContainer:active {
    transform: scale(0.9);
}

/* Estilos del Tooltip. */
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: auto; /* Ancho automático según el contenido. */
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas. */
    background-color: var(--darker-gray); /* Fondo del tooltip. */
    color: var(--white); /* Color del texto. */
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    position: absolute;
    z-index: 1001; /* Asegura que esté por encima de todo. */
    right: calc(100% + 15px); /* Posiciona a la derecha del botón + margen. */
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Transición suave. */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Sombra para el tooltip. */
}


/* Mostrar tooltip al pasar el ratón. */
.socialContainer:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Ajustes responsive para la botonera social flotante. */
@media (max-width: 768px) {
    .social-float-container {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }
    .socialContainer {
        width: 45px;
        height: 45px;
    }
    .socialSvg {
        width: 20px;
        height: 20px;
    }
    .tooltip-text {
        font-size: 0.8rem;
        padding: 6px 10px;
        left: calc(100% + 10px);
    }
    .tooltip-text::before {
        margin-top: -5px;
        border-width: 5px;
    }
}
/* =================================================================
   ESTILOS PREMIUM v2.0 - MENÚ DE USUARIO
   ================================================================= */

/* Contenedor del dropdown */
.nav-item.dropdown {
    position: relative;
}

.nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #e9ecef; /* Un fondo gris claro para que contraste */
    border-radius: 50px;
    transition: background-color 0.3s ease;
    color: #343a40; /* ¡COLOR OSCURO PARA EL TEXTO! */
    text-decoration: none;
    font-weight: 600; /* Hacemos el nombre un poco más notorio */
}

.nav-link.dropdown-toggle:hover {
    background-color: #dee2e6; /* Un gris un poco más oscuro al pasar el mouse */
}


.nav-link.dropdown-toggle .user-icon {
    margin-right: 8px;
}

.nav-link.dropdown-toggle .dropdown-arrow {
    margin-left: 12px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

/* Menú desplegable */
.dropdown-menu {
    display: block; /* Siempre está en el DOM */
    position: absolute;
    top: 120%; /* Un poco más abajo para que no se pegue */
    right: 0;
    background-color: #ffffff;
    border: none;
    border-radius: 0.75rem; /* Bordes más pronunciados */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 220px; /* Más ancho para que no se vea apretado */
    padding: 0.5rem 0;
    z-index: 1000;
    list-style: none;
    
    /* --- La Magia de la Animación --- */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Mostrar el menú al pasar el mouse sobre el contenedor */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Rotar la flecha cuando el menú está abierto */
.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Estilos de los elementos del menú */
.dropdown-item {
    display: flex; /* Para alinear el ícono y el texto */
    align-items: center;
    width: 100%;
    padding: 0.75rem 1.5rem; /* Más espaciado */
    font-weight: 500; /* Un poco más de peso */
    color: #495057;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item i {
    margin-right: 1rem;
    width: 16px; /* Ancho fijo para los íconos */
    text-align: center;
    color: #6c757d;
    transition: color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f0f5ff; /* Un azul muy claro al pasar el mouse */
    color: #0d6efd; /* Azul principal */
}

.dropdown-item:hover i {
    color: #0d6efd;
}

/* Separador */
.dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    background-color: #e9ecef;
    border: none;
}
/* ===================================================================
   FIX PARA HERO EN MÓVILES - NAVBAR TAPANDO CONTENIDO
   Agregar al final del archivo styles.css existente
   ================================================================= */

/* === AJUSTES PARA HERO EN MÓVILES === */

/* Ajuste general para el hero */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px; /* Espacio para el navbar fijo */
        min-height: calc(100vh - 80px); /* Altura ajustada */
    }
    
    .hero-content {
        padding-top: 2rem; /* Espacio adicional desde arriba */
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 120px);
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        margin-top: 1rem; /* Separación del navbar */
        font-size: clamp(1.8rem, 6vw, 2.5rem); /* Tamaño responsive */
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin: 1rem 0;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .stat-item {
        min-width: auto;
        text-align: center;
    }
    
    .stat-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .stat-label {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
}

/* Ajustes específicos para móviles pequeños */
@media (max-width: 480px) {
    .hero {
        padding-top: 70px; /* Navbar más pequeño en móviles */
        min-height: calc(100vh - 70px);
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        min-height: calc(100vh - 100px);
    }
    
    .hero-title {
        margin-top: 0.5rem;
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4.5vw, 1.1rem);
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        margin: 1.5rem 0;
    }
    
    .hero-buttons .btn {
        max-width: 250px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        margin-top: 1.5rem;
        gap: 1rem;
    }
}

/* Ajustes para landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    .hero-content {
        padding: 1rem;
        min-height: calc(100vh - 80px);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .hero-text {
        flex: 1;
        margin-bottom: 0;
        margin-right: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        margin-top: 0;
        gap: 1rem;
        flex: 1;
    }
    
    .hero-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        margin-top: 0;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin: 0.5rem 0;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    .hero-buttons .btn {
        max-width: 150px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Ajuste para el header en móviles */
@media (max-width: 768px) {
    .header {
        height: 70px; /* Altura fija del navbar en móviles */
        padding: 0.5rem 0;
    }
    
    .header-container {
        height: 100%;
        align-items: center;
    }
    
    .logo-img {
        height: 40px; /* Logo más pequeño en móviles */
        width: auto;
    }
}

@media (max-width: 480px) {
    .header {
        height: 60px; /* Navbar aún más pequeño */
    }
    
    .logo-img {
        height: 35px;
    }
}

/* Asegurar que el contenido no se superponga */
@media (max-width: 768px) {
    body {
        padding-top: 0; /* Remover padding si existe */
    }
    
    main {
        margin-top: 0; /* Asegurar que no hay margen extra */
    }
    
    /* Ajustar el overlay del hero para mejor legibilidad */
    .hero-overlay {
        background: rgba(0, 0, 0, 0.4); /* Overlay más oscuro en móviles */
    }
    
    /* Mejorar contraste del texto */
    .hero-title,
    .hero-subtitle {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        color: #ffffff;
    }
}

/* Fix para dispositivos con notch */
@supports (padding-top: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        .hero {
            padding-top: calc(70px + env(safe-area-inset-top));
        }
        
        .header {
            padding-top: env(safe-area-inset-top);
            height: calc(70px + env(safe-area-inset-top));
        }
    }
}

/* LEER MAS PARA TEXTO LOTEOS EN SLIDER*/
.card-description .more {
  display: none;
}
.card-description.expanded .more {
  display: inline; /* Mostrar el texto extra */
}

.card-description.expanded .dots {
  display: none; /* Ocultar los puntos */
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: 4px; /* en lugar de margin-top */
  font-size: 0.95rem;
  display: inline; /* ✅ importante para que quede en la misma línea */
  transition: color 0.3s;
}


.read-more-btn:hover {
  color: var(--secondary-color);
}