/* Variables de colores y estilos */
:root {
    --color-primario: #7D3C98; /* Púrpura como color principal */
    --color-secundario: #16A085; /* Verde azulado como acento */
    --color-terciario: #F39C12; /* Naranja para destacados */
    --color-alerta: #C0392B; /* Rojo para alertas */
    --texto-oscuro: #2C3E50;
    --texto-claro: #FFFFFF;
    --fondo-claro: #F5F5F5;
    --fondo-oscuro: #34495E;
    --fondo-tarjeta: #FFFFFF;
    --sombra: 0 5px 15px rgba(0, 0, 0, 0.1);
    --borde-radio: 10px;
    --transicion: all 0.3s ease;
}

/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--texto-oscuro);
    background-color: var(--fondo-claro);
    overflow-x: hidden;
}

.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-primario);
}

a {
    text-decoration: none;
    color: var(--color-primario);
    transition: var(--transicion);
}

a:hover {
    color: var(--color-secundario);
}

img, svg {
    max-width: 100%;
    height: auto;
}

.boton-accion {
    display: inline-block;
    background-color: var(--color-primario);
    color: var(--texto-claro);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: var(--transicion);
    border: 2px solid var(--color-primario);
}

.boton-accion:hover {
    background-color: transparent;
    color: var(--color-primario);
    transform: translateY(-3px);
    box-shadow: var(--sombra);
}

.boton-accion span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

/* Header */
header {
    background-color: var(--texto-claro);
    box-shadow: var(--sombra);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icono {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: var(--color-primario);
}

.logo h1 span {
    color: var(--color-alerta);
    font-weight: 400;
}

header .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 25px;
}

nav a {
    color: var(--texto-oscuro);
    font-weight: 500;
    position: relative;
}

nav a:hover {
    color: var(--color-primario);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primario);
    transition: var(--transicion);
}

nav a:hover::after {
    width: 100%;
}

nav .boton-accion {
    color: var(--texto-claro);
}

nav .boton-accion:hover {
    color: var(--color-primario);
}

nav .boton-accion::after {
    display: none;
}

.menu-movil {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
}

.menu-movil span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primario);
    margin: 5px 0;
    transition: var(--transicion);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #F0F0F0 0%, #E0E0E0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(125, 60, 152, 0.1) 0%, rgba(125, 60, 152, 0) 50%);
    z-index: 1;
}

.hero .contenedor {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-texto {
    padding-right: 20px;
}

.hero-texto h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-texto h2 span {
    color: var(--color-primario);
    position: relative;
    display: inline-block;
}

.hero-texto h2 span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: var(--color-terciario);
}

.hero-texto p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
    max-width: 500px;
}

.hero-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Características */
.caracteristicas {
    padding: 100px 0;
    background-color: var(--texto-claro);
    position: relative;
}

.caracteristicas::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(245,245,245,1) 100%);
}

.caracteristicas h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.4rem;
}

.tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.tarjeta {
    background-color: var(--fondo-tarjeta);
    border-radius: var(--borde-radio);
    padding: 30px;
    box-shadow: var(--sombra);
    transition: var(--transicion);
    border-top: 4px solid var(--color-primario);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tarjeta::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(125, 60, 152, 0.1) 0%, rgba(125, 60, 152, 0) 100%);
    transition: var(--transicion);
}

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

.tarjeta:hover::before {
    top: 0;
}

.icono {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
}

.tarjeta h3 {
    margin-bottom: 15px;
    color: var(--color-primario);
}

/* Como Funciona */
.como-funciona {
    padding: 100px 0;
    background-color: var(--fondo-claro);
    position: relative;
}

.como-funciona h2 {
    text-align: center;
    margin-bottom: 70px;
    font-size: 2.4rem;
}

.pasos {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
}

.pasos::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25px;
    width: 2px;
    background-color: var(--color-primario);
    opacity: 0.3;
}

.paso {
    display: flex;
    gap: 30px;
    position: relative;
}

.numero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-primario);
    color: var(--texto-claro);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(125, 60, 152, 0.2);
}

.paso-contenido {
    flex: 1;
    background-color: var(--fondo-tarjeta);
    border-radius: var(--borde-radio);
    padding: 25px;
    box-shadow: var(--sombra);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.paso-contenido h3 {
    width: 100%;
    margin-bottom: 5px;
    color: var(--color-primario);
}

.paso-contenido p {
    flex: 1;
    min-width: 200px;
}

.paso-icono {
    width: 80px;
    height: 80px;
}

.centro-accion {
    text-align: center;
    margin-top: 50px;
}

/* Destacado */
.destacado {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(125, 60, 152, 0.05) 0%, rgba(155, 89, 182, 0.1) 100%);
}

.destacado .contenedor {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.destacado-texto h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.destacado-texto p {
    margin-bottom: 30px;
    color: #555;
}

.beneficios {
    list-style: none;
}

.beneficios li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.check-icono {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.destacado-imagen {
    display: flex;
    justify-content: center;
}

/* Preguntas */
.preguntas {
    padding: 100px 0;
    background-color: var(--texto-claro);
}

.preguntas h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.4rem;
}

.acordeon {
    max-width: 800px;
    margin: 0 auto;
}

.pregunta {
    background-color: var(--fondo-tarjeta);
    border-radius: var(--borde-radio);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.pregunta-boton {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: var(--fondo-claro);
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primario);
    transition: var(--transicion);
}

.pregunta-boton:hover {
    background-color: rgba(125, 60, 152, 0.05);
}

.flecha {
    width: 20px;
    height: 20px;
    transition: var(--transicion);
}

.pregunta.activa .flecha {
    transform: rotate(180deg);
}

.respuesta {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transicion);
}

.pregunta.activa .respuesta {
    padding: 20px 30px;
    max-height: 200px;
}

/* CTA Sección */
.cta-seccion {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primario) 0%, #5B2C6F 100%);
    color: var(--texto-claro);
    text-align: center;
}

.cta-seccion h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--texto-claro);
}

.cta-seccion p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-seccion .boton-accion {
    background-color: var(--texto-claro);
    color: var(--color-primario);
    border-color: var(--texto-claro);
}

.cta-seccion .boton-accion:hover {
    background-color: transparent;
    color: var(--texto-claro);
}

/* Footer */
footer {
    background-color: var(--fondo-oscuro);
    color: var(--texto-claro);
    padding: 70px 0 20px;
}

.footer-contenido {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1 1 300px;
    margin-right: 40px;
    margin-bottom: 30px;
}

.footer-logo .logo-icono {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo p {
    margin-top: 10px;
    color: #ddd;
    font-size: 0.9rem;
}

.footer-enlaces {
    flex: 2 1 400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.footer-columna {
    flex: 1 1 150px;
    margin-bottom: 30px;
    margin-right: 20px;
}

.footer-columna h4 {
    color: var(--texto-claro);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-columna h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-terciario);
}

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

.footer-columna li {
    margin-bottom: 12px;
}

.footer-columna a {
    color: #ddd;
    font-size: 0.95rem;
}

.footer-columna a:hover {
    color: var(--texto-claro);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.copyright p:first-child {
    margin-bottom: 5px;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero .contenedor {
        grid-template-columns: 1fr;
    }

    .hero-texto {
        padding-right: 0;
        text-align: center;
        order: 1;
    }

    .hero-texto p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-imagen {
        order: 0;
        margin-bottom: 30px;
    }
    
    .destacado .contenedor {
        grid-template-columns: 1fr;
    }
    
    .destacado-imagen {
        order: 0;
        margin-bottom: 30px;
    }
    
    .destacado-texto {
        order: 1;
    }
}

@media (max-width: 768px) {
    .menu-movil {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--texto-claro);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 5;
    }
    
    nav.activo ul {
        max-height: 300px;
    }
    
    nav li {
        margin: 10px 30px;
    }
    
    .paso {
        flex-direction: column;
    }
    
    .paso-contenido {
        flex-direction: column;
        text-align: center;
    }
    
    .pasos::before {
        display: none;
    }
    
    .numero {
        margin: 0 auto;
        margin-bottom: -25px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem !important;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .tarjetas {
        grid-template-columns: 1fr;
    }
    
    .footer-contenido {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-columna {
        text-align: center;
        margin-right: 0;
    }
    
    .footer-columna h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
