/* public_html/css/style.css */
/* Este archivo contiene todos los estilos CSS para el diseño y las animaciones de la landing page. */

/* 1. Reset Básico y Propiedades Generales */
* {
    box-sizing: border-box; /* Asegura que padding y border se incluyan en el ancho/alto total */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif; /* Fuente para el cuerpo del texto */
    -webkit-font-smoothing: antialiased; /* Suavizado de fuentes para WebKit */
    -moz-osx-font-smoothing: grayscale; /* Suavizado de fuentes para Firefox en macOS */
    color: var(--color-text-dark); /* Color de texto base */
    line-height: 1.6; /* Espaciado de línea por defecto */
    overflow-x: hidden; /* Evita el scroll horizontal */
    background-color: var(--color-light-gray); /* Fondo general muy claro */
}

/* Estilos para los títulos basados en Google Fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif; /* Fuente para los títulos */
    font-weight: 800; /* Peso de fuente en negrita */
    line-height: 1.2; /* Espaciado de línea para títulos */
    color: var(--color-dark-blue); /* Usar variable CSS para el color principal */
}

/* 2. Variables CSS para Colores (Fácil de cambiar la paleta) */
:root {
    --color-dark-blue: #293043; /* Gris oscuro casi negro */
    --color-green-accent: #a4ce46; /* Verde vibrante */
    --color-pink-accent: #ec4f92; /* Rosa vibrante */
    --color-purple-accent: #781bff; /* Morado vibrante */
    --color-yellow-accent: #ffc700; /* Amarillo vibrante */
    --color-red-accent: #f05336; /* Rojo/Naranja de acento */
    --color-teal-accent: #20c997; /* Verde azulado */
    --color-light-gray: #f8f8f8; /* Fondo de secciones claras */
    --color-white: #ffffff;
    --color-text-dark: #333333;
    --color-text-medium: #555555;
    --color-komi-dark: #1a1a1a; /* Fondo oscuro principal */
    --color-komi-purple-glow: #6a0dad; /* Violeta para el brillo */
}

/* 3. Clases de Utilidad Básicas y Componentes */

/* Contenedor principal para centrar el contenido */
.container {
    max-width: 1200px; /* Ancho máximo para un diseño limpio */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Flexbox utilities */
.flex-display { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-grow { flex-grow: 1; }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Text colors */
.text-white { color: var(--color-white); }
.text-gray-900 { color: var(--color-dark-blue); }
.text-gray-700 { color: var(--color-text-medium); }

/* Background colors */
.bg-white { background-color: var(--color-white); }
.bg-light-gray { background-color: var(--color-light-gray); }
.bg-gray-dark { background-color: var(--color-dark-blue); } /* Usado en el footer */
.bg-green-accent { background-color: var(--color-green-accent); }
.bg-purple-accent { background-color: var(--color-purple-accent); }
.bg-pink-accent { background-color: var(--color-pink-accent); }
.bg-yellow-accent { background-color: var(--color-yellow-accent); }
.bg-red-accent { background-color: var(--color-red-accent); }
.bg-teal-accent { background-color: var(--color-teal-accent); }


/* Spacing utilities */
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-large { margin-bottom: 5rem; } /* Nueva clase para más espacio */

/* Font size utilities */
.text-sm { font-size: 0.875rem; margin-top: 2em;} /* 14px */
.text-base { font-size: 1rem; } /* 16px */
.text-lg { font-size: 1.125rem; } /* 18px */
.text-xl { font-size: 1.25rem; } /* 20px */
.text-2xl { font-size: 1.5rem; } /* 24px */
.text-3xl { font-size: 1.875rem; } /* 30px */
.text-4xl { font-size: 2.25rem; } /* 36px */

/* Border radius utilities */
.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: 0.375rem; } /* 6px */
.rounded-lg { border-radius: 0.5rem; } /* 8px */

/* Shadow utilities */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Positioning utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-5 { top: 1.25rem; }
.right-5 { right: 1.25rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:scale-105:hover { transform: scale(1.05); }

/* --- Language Switcher --- */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}
.lang-button {
    background-color: rgba(255, 255, 255, 0.2); /* Transparencia para que se vea bien en cualquier fondo */
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white; /* Texto blanco para mejor contraste */
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Efecto de desenfoque detrás del botón */
    -webkit-backdrop-filter: blur(5px);
}
.lang-button.active {
    background-color: var(--color-dark-blue); /* Color de tu marca */
    color: var(--color-white);
    border-color: var(--color-dark-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 1rem; /* py-20 px-4 */
    color: var(--color-white);
    text-align: center;
}

.hero-background-gradient {
    position: absolute;
    inset: 0;
    /* Degradado oscuro metálico con toques violetas, inspirado en Komi.io */
   background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%), radial-gradient(circle at top right, #a30dad 0%, transparent 50%), radial-gradient(circle at bottom left, var(--color-komi-purple-glow) 0%, transparent 50%);
    background-blend-mode: overlay, screen, normal; /* Para superponer los brillos */
    z-index: 0;
}

.hero-header {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 1rem; /* py-4 */
    display: flex;
    justify-content: flex-start; /* Logo a la izquierda */
    align-items: center;
    z-index: 20; /* Por encima del contenido del hero */
}

.header-logo {
    width: 170px; /* Logo más pequeño en la cabecera */
    height: auto;
    margin: 1em;
    /* Filter para mantener el color original del logo si es oscuro y el fondo es oscuro */
    /* Si el logo es blanco o claro, quita este filtro o ajústalo */
    /* filter: brightness(0) invert(1); */ 
}

.hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 2.5rem; /* text-4xl */
    line-height: 1.2;
    margin-bottom: 1.5rem; /* mb-6 */
    margin-top: 2.5em;
}

.hero-subtitle {
    font-size: 1.25rem; /* text-xl */
    margin-bottom: 2rem; /* mb-8 */
    max-width: 700px;
    opacity: 0.9;
}

.hero-button {
    background-color: var(--color-green-accent); /* Color verde de tu marca */
    color: var(--color-white);
    font-weight: 700;
    padding: 1rem 2.5rem; /* py-4 px-10 */
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 10;
}

.hero-button:hover {
    transform: scale(1.05);
    background-color: #8bb437; /* Tono más oscuro al hacer hover */
}

.hero-illustration {
    position: relative;
    margin-top: 3rem;
    width: 100%;
    /*max-width: 400px;*/
    z-index: 10;
}

.hero-mockup {
    width: 100%;
    height: auto;
    border-radius: 1rem; /* Bordes más suaves para el mockup */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}


/* Ilustraciones flotantes en Hero (más sutiles) */
@keyframes floatAnimation {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-10px) rotate(3deg); opacity: 0.3; }
    100% { transform: translateY(0px) rotate(0deg); opacity: 0.2; }
}

@keyframes floatAnimationReverse {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(10px) rotate(-3deg); opacity: 0.3; }
    100% { transform: translateY(0px) rotate(0deg); opacity: 0.2; }
}

.illustration {
    position: absolute;
    pointer-events: none;
    opacity: 0.2; /* Más sutil */
    filter: blur(2px); /* Ligeramente desenfocadas */
}

.illustration-1 {
    top: 10%;
    left: 8%;
    width: 120px; /* Tamaño base */
    height: auto;
    animation: floatAnimation 7s ease-in-out infinite;
}

.illustration-2 {
    bottom: 10%;
    right: 8%;
    width: 120px; /* Tamaño base */
    height: auto;
    animation: floatAnimationReverse 8s ease-in-out infinite;
}

/* Formas abstractas difusas en Hero (más sutiles) */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05; /* Muy sutil */
    filter: blur(60px); /* Más desenfoque */
    pointer-events: none;
    z-index: 0;
}

.shape-1 {
    width: 350px;
    height: 350px;
    top: -100px;
    left: -100px;
    background-color: var(--color-yellow-accent);
    animation: floatAnimation 10s ease-in-out infinite;
}

.shape-2 {
    width: 450px;
    height: 450px;
    bottom: -150px;
    right: -150px;
    background-color: var(--color-pink-accent);
    animation: floatAnimationReverse 11s ease-in-out infinite;
}

/* --- Estilos Generales de Secciones de Contenido --- */
.content-section {
    padding: 5rem 1rem; /* py-20 px-4 */
    position: relative;
    overflow: hidden;
    text-align: center;
}

.section-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 800;
    margin-bottom: 1.5rem; /* mb-6 */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    font-size: 1.125rem; /* text-lg */
    color: var(--color-text-medium);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem; /* mb-12 */
}

/* --- Sección "¿Qué Ofrece tipsto.me?" (Offer Grid) --- */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0 auto;
}

.offer-card {
    background-color: var(--color-white);
    padding: 2.5rem; /* Aumentado el padding para hacerlos más grandes */
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.offer-icon {
    font-size: 3.5rem; /* Iconos más grandes */
    margin-bottom: 1.5rem;
}
.offer-icon.icon-blue { color: #3b82f6; }
.offer-icon.icon-green { color: var(--color-green-accent); }
.offer-icon.icon-purple { color: var(--color-purple-accent); }
.offer-icon.icon-pink { color: var(--color-pink-accent); }

.offer-title {
    font-size: 1.375rem; /* Ligeramente más grande */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-dark-blue);
}

.offer-text {
    font-size: 1.05rem; /* Ligeramente más grande */
    color: var(--color-text-medium);
}


/* --- Sección Carrusel de Usuarios --- */
.user-swiper {
    width: 100%;
    padding-bottom: 3rem; /* Espacio para paginación */
}

.user-card {
    /*background-color: var(--color-white);*/
    padding: 1.5rem;
    border-radius: 1rem;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);*/
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura en el carrusel */
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 100%; /* Imagen más grande */
    height: auto; /* Imagen más grande */
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    /*border: 3px solid var(--color-green-accent); /* Borde de acento */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Sombra para la foto */
}

.user-name {
    font-size: 1.375rem; /* Nombre más grande */
    font-weight: 700;
    color: var(--color-dark-blue);
    margin-bottom: 0.25rem;
}

.user-description {
    font-size: 1rem; /* Descripción más grande */
    color: var(--color-text-medium);
    margin-bottom: 0; /* Eliminar margen inferior si no hay botón */
}

.user-profile-link {
    display: none; /* Ocultar el botón "Ver Perfil" */
}

/* Swiper overrides for custom styling */
.swiper-container {
    padding-bottom: 2.5rem; /* Espacio para la paginación */
}

.swiper-pagination-bullet {
    background: var(--color-dark-blue) !important; /* Color de los puntos de paginación */
    opacity: 0.4 !important;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--color-purple-accent) !important; /* Color del punto activo */
}

.swiper-button-next, .swiper-button-prev {
    color: var(--color-dark-blue) !important; /* Color de las flechas */
    opacity: 0.6 !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}


/* --- Sección "Cero Comisiones" (Benefit Grid) --- */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem; /* gap-8 */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--color-white);
    padding: 2.5rem; /* p-8 */
    border-radius: 1rem; /* Más redondeado */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem; /* Iconos grandes */
    color: var(--color-white);
}

.benefit-icon.icon-red { background-color: var(--color-red-accent); }
.benefit-icon.icon-purple { background-color: var(--color-purple-accent); }
.benefit-icon.icon-yellow { background-color: var(--color-yellow-accent); }
.benefit-icon.icon-yellow i { color: var(--color-dark-blue); } /* Icono amarillo en fondo amarillo */


.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.benefit-description {
    color: var(--color-text-medium);
    font-size: 1rem;
}

/* --- Secciones de Contenido con Imagen y Texto (Layout de 2 columnas) --- */
.content-image-layout {
    display: grid;
    grid-template-columns: 1fr; /* Una columna por defecto (móvil) */
    gap: 3rem; /* Espacio entre columnas */
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Centrado por defecto */
}

.content-image-layout.reverse-layout {
    /* En móvil, el orden no cambia por defecto. En desktop, se invierte. */
}

.text-content {
    /* Ya centrado por defecto */
}

.image-content {
    display: flex;
    justify-content: center; /* Centrar imagen en móvil */
}

.device-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /*padding: 2rem; /* Espacio alrededor del mockup para las burbujas */
}

.device-mockup {
    max-width: 100%;
    height: auto;
    /*border-radius: 1rem; /* rounded-lg */
    /*box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    transition: transform 0.3s ease;
}

.device-mockup:hover {
    transform: scale(1.02);
}

.chat-bubble {
    position: absolute;
    padding: 0.75rem 1rem; /* p-3 px-4 */
    border-radius: 0.75rem; /* rounded-lg */
    font-size: 1.2rem; /* text-sm */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* shadow-md */
    color: var(--color-white);
    white-space: nowrap; /* Evita que el texto se rompa */
}

/* Posicionamiento específico de burbujas */
.bubble-top-left {
    top: 1%;
    left: 1%;
    transform: rotate(-5deg);
}

.bubble-bottom-right {
    bottom: 10%;
    right: 5%;
    transform: rotate(5deg);
}


/* --- Botones de Llamada a la Acción (CTA) --- */
.button-group {
    display: flex;
    flex-direction: column; /* Apilados en móvil */
    gap: 1rem; /* space-y-4 */
    justify-content: center;
    align-items: center; /* Centrar botones en móvil */
    margin-top: 2rem; /* Espacio superior */
}

.cta-button {
    display: inline-block;
    font-weight: 700; /* font-bold */
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-lg */
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    color: var(--color-white); /* Color de texto por defecto para botones CTA */
    width: 100%; /* Ocupa todo el ancho en móvil */
    max-width: 300px; /* Ancho máximo para botones */
}

.cta-button:hover {
    transform: translateY(-3px); /* Efecto de elevación al hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.button-blue { background-color: #3b82f6; border: none; text-align: center;} /* bg-blue-600 */
.button-blue:hover { background-color: #2563eb; } /* hover:bg-blue-700 */
.button-dark { background-color: var(--color-dark-blue); } /* bg-gray-800 */
.button-dark:hover { background-color: #1f2937; } /* hover:bg-gray-700 */


/* --- Sección FAQ --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem; /* gap-8 */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
}

.faq-card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 1rem; /* Más redondeado */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.12);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-dark-blue);
}

.faq-answer {
    font-size: 1rem;
    color: var(--color-text-medium);
}

/* --- Sección CTA Final (Registro) --- */
.cta-section {
    background-color: var(--color-pink-accent);
    color: var(--color-white);
    text-align: center;
}

.cta-form {
    max-width: 600px; /* Más ancho para el formulario */
    margin-left: auto;
    margin-right: auto;
    /*background-color: var(--color-white);*/
    border-radius: 9999px;
    /*box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);*/
    display: flex;
    flex-direction: column;
    /*overflow: hidden;*/
    padding: 0.5rem; /* Añadir padding para que el input no toque los bordes */
}

.cta-input {
    flex-grow: 1;
    padding: 1rem 1.5rem; /* Más padding */
    color: var(--color-text-dark);
    outline: none;
    border: none;
    font-size: 1.125rem;
    border-radius: 9999px; /* Para que sea redondeado en móvil */
    margin-bottom: 0.5rem; /* Espacio entre input y botón en móvil */
}

.cta-input:focus {
    box-shadow: 0 0 0 2px #3b82f6; /* Borde de enfoque azul */
}

.cta-submit-button {
    background-color: var(--color-purple-accent);
    color: var(--color-white);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.125rem;
    white-space: nowrap; /* Evita que el texto se rompa */
}

.cta-submit-button:hover {
    background-color: #6d28d9;
}

/* --- Footer (Inspirado en Komi.io) --- */
.footer-section {
    background-color: var(--color-komi-dark); /* Fondo oscuro como Komi.io */
    color: var(--color-white);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-section .container {
    display: flex;
    flex-direction: column; /* Columna en móvil */
    justify-content: space-between;
    align-items: center;
}

.footer-logo-wrapper {
    margin-bottom: 1.5rem; /* Espacio debajo del logo */
}

.footer-logo {
    width: 100px; /* Logo pequeño como en Komi.io */
    height: auto;
    filter: brightness(0) invert(1); /* Para hacer el logo blanco si es oscuro */
}

.copyright-text {
    font-size: 0.875rem;
    margin-bottom: 1.5rem; /* Espacio debajo del copyright */
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1.5rem; /* Más espacio entre iconos */
    font-size: 1.5rem; /* Iconos más grandes */
}

.social-icon {
    color: var(--color-white);
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--color-green-accent); /* Color de acento al hover */
    transform: translateY(-3px); /* Pequeña elevación */
}


/* 4. Responsive Design (Media Queries) */

/* Para pantallas pequeñas (sm: 640px y arriba) */
@media (min-width: 640px) {
    .hero-logo { width: 350px; }
    .hero-title { font-size: 3rem; } /* sm:text-5xl */
    .hero-subtitle { font-size: 1.125rem; } /* sm:text-lg */

    .section-title { font-size: 2.25rem; } /* sm:text-4xl */
    .section-description { font-size: 1.125rem; } /* sm:text-lg */

    .feature-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en sm */
    }
    .offer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en sm */
    }
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en sm */
    }
    .faq-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en sm */
    }

    .cta-form {
        flex-direction: row; /* Fila en sm */
        padding: 0.75rem; /* Más padding para el formulario */
    }
    .cta-input {
        border-radius: 9999px 0 0 9999px;
        margin-bottom: 0;
    }
    .cta-submit-button {
        border-radius: 0 9999px 9999px 0;
    }

    .button-group {
        flex-direction: row; /* Fila en sm */
        gap: 1rem;
    }
    .cta-button {
        width: auto; /* Ancho auto en sm */
    }
}

/* Para pantallas medianas (md: 768px y arriba) */
@media (min-width: 768px) {
    .hero-logo { width: 450px; } /* Logo más grande en md */
    .hero-title { font-size: 3.75rem; } /* md:text-6xl */
    .hero-subtitle { font-size: 1.25rem; } /* md:text-xl */

    .section-title { font-size: 3rem; } /* md:text-5xl */
    .section-description { font-size: 1.25rem; } /* md:text-xl */

    .content-image-layout {
        grid-template-columns: 1fr 1fr; /* 2 columnas */
        text-align: left; /* Alinear texto a la izquierda */
        gap: 4rem; /* Más espacio entre columnas */
    }
    .content-image-layout.reverse-layout .image-content {
        order: 1; /* Cambiar orden de columna */
    }
    .content-image-layout.reverse-layout .text-content {
        order: 2; /* Cambiar orden de columna */
        padding-left: 3rem; /* md:pl-12 */
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en md */
    }
    .offer-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en md */
    }
    .benefit-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en md */
    }
    .faq-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en md */
    }

    .footer-section .container {
        flex-direction: row; /* Fila en md */
    }
    .copyright-text {
        margin-bottom: 0; /* md:mb-0 */
    }
}

/* Para pantallas grandes (lg: 1024px y arriba) */
@media (min-width: 1024px) {
    .hero-logo { width: 500px; } /* Logo aún más grande en lg */
    .hero-title { font-size: 4.5rem; } /* lg:text-7xl */
    .hero-subtitle { font-size: 1.5rem; } /* lg:text-2xl */

    .illustration-1 { width: 200px; }
    .illustration-2 { width: 200px; }
    .shape-1 { width: 400px; height: 400px; }
    .shape-2 { width: 500px; height: 500px; }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en lg */
    }
    .offer-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en lg */
    }
    .benefit-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en lg */
    }
    .faq-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en lg */
    }
}

/* 5. Animaciones CSS */

/* Animación de fade-in y ligera escala para elementos iniciales */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Animación de fade-in y slide-up para elementos que aparecen al hacer scroll */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Clases para aplicar animaciones con retraso */
.animate-fade-in-up {
    opacity: 0; /* Oculto por defecto */
    transform: translateY(20px); /* Ligeramente desplazado */
    animation: fadeInUp 0.8s ease-out forwards; /* Aplicar animación */
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }

/* Animación de entrada al hacer scroll (gestionada por JS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px); /* Empieza más abajo */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Curva más suave */
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animación de flotación para mockups de dispositivos */
@keyframes floatDevice {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-1px) rotate(-8deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float {
    animation: floatDevice 5s ease-in-out infinite;
}

/* Ocultar elementos de idioma por defecto (gestionado por JS y body class) */
.lang-es, .lang-en {
    display: none;
}
body.lang-active-es .lang-es {
    display: block !important; /* Forzar a block para títulos y párrafos */
}
body.lang-active-en .lang-en {
    display: block !important; /* Forzar a block para títulos y párrafos */
}
/* Asegurar que los elementos inline dentro de los spans se comporten correctamente */
body.lang-active-es .lang-es b,
body.lang-active-en .lang-en b {
    display: inline !important;
}

/* --- NUEVOS ESTILOS PARA EL MODAL DE MENSAJES --- */

/* Overlay para oscurecer el fondo */
.modal-overlay {
    position: fixed; /* Fijo en el viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Negro semitransparente */
    backdrop-filter: blur(3px); /* Ligero desenfoque para efecto moderno */
    -webkit-backdrop-filter: blur(3px);
    z-index: 10000; /* Asegura que esté por encima de casi todo */
    display: flex; /* Para centrar el modal con flexbox */
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    opacity: 0; /* Oculto por defecto */
    visibility: hidden; /* Oculto por defecto */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Transición suave */
}

/* Estado visible del overlay */
.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Contenedor del mensaje flotante (el "response-message-container") */
.response-message-container {
    background-color: var(--color-white); /* Fondo blanco para el mensaje */
    color: var(--color-text-dark); /* Color de texto predeterminado */
    padding: 2.5rem; /* Más padding para un modal más grande */
    border-radius: 1rem; /* Bordes más redondeados */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Sombra pronunciada */
    max-width: 500px; /* Ancho máximo para el modal */
    width: 90%; /* Ocupa el 90% del ancho disponible */
    text-align: center;
    position: relative; /* Para posibles iconos o botones de cierre */
    transform: translateY(-20px); /* Ligeramente hacia arriba para el efecto de entrada */
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Transición suave */
}

/* Estado visible del modal (con efecto de entrada) */
.modal-overlay.is-visible .response-message-container {
    opacity: 1;
    transform: translateY(0); /* Vuelve a la posición original */
}

/* Estilos para mensajes de éxito y error dentro del modal */
.response-message-container.success {
    background-color: #d4edda; /* Verde claro */
    color: #155724; /* Verde oscuro */
    border: 1px solid #c3e6cb;
}

.response-message-container.error {
    background-color: #f8d7da; /* Rojo claro */
    color: #721c24; /* Rojo oscuro */
    border: 1px solid #f5c6cb;
}

/* Estilos para el párrafo del mensaje */
.response-message-container p {
    margin: 0;
    font-size: 1.125rem; /* Un poco más grande para visibilidad */
    line-height: 1.5;
}

/* Media query para pantallas más pequeñas (opcional, para asegurar que el modal no sea demasiado grande en móviles) */
@media (max-width: 600px) {
    .response-message-container {
        padding: 1.5rem;
        width: 95%;
    }
}