/* Variables para colores */
:root {
    --primario: #9c27b0;
    --secundario: #2196f3;
    --claro: #e1bee7;
    --claroSecundario: #bbdefb;
    --oscuro: #6a1b9a;
    --oscuroSecundario: #1565c0;
    --fondo: #f5f5f5;
    --texto: #424242;
    --blanco: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    color: var(--texto);
    background-color: var(--fondo);
    line-height: 1.6;
}

.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--oscuro);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.3rem;
    color: var(--primario);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secundario);
    transition: color 0.3s ease;
}

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

section {
    padding: 4rem 1rem;
}

.centrado {
    text-align: center;
    margin: 2rem 0;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--claro) 0%, var(--claroSecundario) 100%);
    padding: 1rem;
    border-bottom: 3px solid var(--primario);
}

.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo-svg {
    width: 200px;
    height: 50px;
}

.banner {
    text-align: center;
    padding: 3rem 1rem;
}

.subtitulo {
    font-size: 1.2rem;
    color: var(--oscuro);
    max-width: 800px;
    margin: 0 auto;
}

/* Navegación */
.menu-principal ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu-principal a {
    color: var(--oscuro);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.menu-principal a:hover {
    color: var(--primario);
}

.menu-principal a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primario);
    transition: width 0.3s ease;
}

.menu-principal a:hover::after {
    width: 100%;
}

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

.boton-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--oscuro);
    margin: 5px 0;
    transition: transform 0.3s ease;
}

/* Sección Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 2rem 1rem;
    gap: 2rem;
}

.hero-content {
    flex: 1 1 400px;
}

.hero-imagen {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.hero-svg {
    width: 100%;
    max-width: 400px;
}

.boton-principal {
    display: inline-block;
    background-color: var(--primario);
    color: var(--blanco);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.boton-principal:hover {
    background-color: var(--oscuro);
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Características */
.caracteristicas {
    background-color: var(--blanco);
}

.tarjetas {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.tarjeta {
    background-color: var(--fondo);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 250px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primario);
}

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

.icono {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

/* Ventajas */
.ventajas {
    background: linear-gradient(135deg, var(--oscuro) 0%, var(--oscuroSecundario) 100%);
    color: var(--blanco);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    padding: 3rem 1rem;
}

.ventaja {
    flex: 1 1 300px;
    text-align: center;
    padding: 1rem;
}

.ventaja h3 {
    color: var(--blanco);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Funcionamiento */
.funcionamiento {
    background-color: var(--fondo);
}

.pasos {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.paso {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background-color: var(--blanco);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.numero-paso {
    width: 60px;
    height: 60px;
    background-color: var(--primario);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Preguntas Frecuentes */
.preguntas {
    background-color: var(--blanco);
}

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

.pregunta {
    background-color: var(--fondo);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border-left: 5px solid var(--secundario);
    transition: transform 0.3s ease;
}

.pregunta:hover {
    transform: translateX(10px);
}

.pregunta h3 {
    color: var(--oscuro);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--oscuro);
    color: var(--blanco);
    padding: 3rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    flex: 1 1 200px;
}

.logo-pie {
    width: 120px;
    height: 30px;
}

.footer-info {
    flex: 2 1 300px;
}

.keywords {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-enlaces {
    flex: 1 1 200px;
}

.footer-enlaces ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-enlaces a {
    color: var(--claroSecundario);
}

.footer-enlaces a:hover {
    color: var(--blanco);
}

/* Responsivo */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .menu-principal ul {
        display: none;
    }
    
    .menu-principal ul.activo {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--blanco);
        padding: 2rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 100;
    }
    
    .boton-menu {
        display: block;
    }
    
    .boton-menu.activo span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .boton-menu.activo span:nth-child(2) {
        opacity: 0;
    }
    
    .boton-menu.activo span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .paso {
        flex-direction: column;
        text-align: center;
    }
}

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

.hero, .tarjeta, .paso, .pregunta {
    animation: fadeIn 0.8s ease forwards;
}

.tarjeta:nth-child(2) {
    animation-delay: 0.2s;
}

.tarjeta:nth-child(3) {
    animation-delay: 0.4s;
}

.paso:nth-child(2) {
    animation-delay: 0.2s;
}

.paso:nth-child(3) {
    animation-delay: 0.4s;
}
