/* Variables y estilos base */
:root {
    --color-primario: #ff4757;
    --color-secundario: #5352ed;
    --color-acento: #2ed573;
    --color-oscuro: #2f3542;
    --color-claro: #ffffff;
    --color-gris-claro: #f1f2f6;
    --color-texto: #333333;
    --fuente-principal: 'Montserrat', 'Segoe UI', sans-serif;
    --sombra-suave: 0 5px 15px rgba(0, 0, 0, 0.05);
    --sombra-media: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transicion: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--fuente-principal);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--color-texto);
    background-color: var(--color-gris-claro);
    overflow-x: hidden;
    position: relative;
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 90;
    opacity: 0;
    transition: var(--transicion);
}

body.scrolled .blur-overlay {
    height: 80px;
    opacity: 0.9;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--color-primario), var(--color-secundario));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 3.2rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1rem;
    width: 60px;
    height: 4px;
    background: var(--color-primario);
    border-radius: 2px;
}

h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 2rem;
}

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

ul {
    list-style: none;
}

/* Header y Navegación */
header {
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
}

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

.logo {
    width: 200px;
    z-index: 101;
}

.logo-svg {
    width: 100%;
    height: auto;
}

.menu-principal ul {
    display: flex;
    align-items: center;
}

.menu-principal ul li {
    margin-left: 3rem;
}

.menu-principal ul li a {
    color: var(--color-oscuro);
    font-weight: 600;
    position: relative;
}

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

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

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

.boton-menu {
    background: linear-gradient(90deg, var(--color-primario), var(--color-secundario));
    color: var(--color-claro) !important;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: var(--sombra-suave);
}

.boton-menu:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-media);
}

.boton-menu::after {
    display: none;
}

#menu-toggle, .menu-button {
    display: none;
}

/* Sección Portada */
.portada {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: var(--color-claro);
    display: flex;
    align-items: center;
}

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

.portada-contenido {
    width: 55%;
}

.portada-imagen {
    width: 40%;
}

.portada h2 {
    font-size: 2.4rem;
    color: var(--color-secundario);
    margin-bottom: 2rem;
}

.portada h2::after {
    display: none;
}

.portada p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.hero-svg {
    width: 100%;
    height: auto;
}

.boton-principal {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primario), var(--color-secundario));
    color: var(--color-claro);
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.8rem;
    box-shadow: var(--sombra-media);
    transition: var(--transicion);
}

.boton-principal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 71, 87, 0.3);
}

.etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
}

.etiquetas span {
    background-color: var(--color-gris-claro);
    color: var(--color-oscuro);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Sección Ventajas */
.ventajas {
    padding: 100px 0;
    background-color: var(--color-claro);
    text-align: center;
}

.ventajas h2 {
    margin-left: auto;
    margin-right: auto;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 6rem;
}

.ventaja-tarjeta {
    background: var(--color-claro);
    border-radius: 15px;
    padding: 4rem 3rem;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ventaja-tarjeta:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-media);
}

.ventaja-tarjeta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(83, 82, 237, 0.1));
    z-index: -1;
    opacity: 0;
    transition: var(--transicion);
}

.ventaja-tarjeta:hover::before {
    opacity: 1;
}

.icono {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.icono svg {
    width: 100%;
    height: 100%;
}

/* Sección Proceso */
.proceso {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.proceso::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 71, 87, 0.05), transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(83, 82, 237, 0.05), transparent 50%);
    z-index: 0;
}

.proceso h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.proceso-pasos {
    position: relative;
    z-index: 1;
}

.paso {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5rem;
    position: relative;
}

.paso:last-child {
    margin-bottom: 0;
}

.paso::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 25px;
    width: 2px;
    height: calc(100% + 5rem);
    background: linear-gradient(to bottom, var(--color-primario), var(--color-secundario));
    z-index: 0;
}

.paso:last-child::before {
    display: none;
}

.paso-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    color: var(--color-claro);
    font-weight: 700;
    font-size: 2rem;
    border-radius: 50%;
    margin-right: 3rem;
    flex-shrink: 0;
    box-shadow: var(--sombra-media);
}

.paso-info {
    background: var(--color-claro);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--sombra-suave);
    flex-grow: 1;
}

/* Sección Llamada a la Acción */
.llamada {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    color: var(--color-claro);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.llamada::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/svg%3E") repeat;
    opacity: 0.1;
}

.llamada h2 {
    color: var(--color-claro);
    margin-bottom: 2rem;
}

.llamada h2::after {
    background: var(--color-claro);
    left: 50%;
    transform: translateX(-50%);
}

.llamada p {
    font-size: 1.8rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.nota-legal {
    margin-top: 5rem;
    font-size: 1.4rem;
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background-color: var(--color-oscuro);
    color: var(--color-claro);
}

.footer-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 5rem;
}

.footer-logo {
    flex-basis: 100%;
    max-width: 350px;
    margin-bottom: 3rem;
}

.footer-logo p {
    margin-top: 2rem;
    opacity: 0.7;
    font-size: 1.4rem;
}

.footer-links, .footer-legal {
    flex-basis: 200px;
}

footer h4 {
    color: var(--color-claro);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 1rem;
}

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

footer ul li {
    margin-bottom: 1rem;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
}

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

.copyright {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    html {
        font-size: 58%;
    }
    
    .portada .contenedor {
        flex-direction: column;
    }
    
    .portada-contenido, .portada-imagen {
        width: 100%;
    }
    
    .portada-contenido {
        text-align: center;
        margin-bottom: 5rem;
    }
    
    .portada h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .portada-imagen {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
        position: relative;
        z-index: 101;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }
    
    .menu-button span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-oscuro);
        position: absolute;
        transition: var(--transicion);
    }
    
    .menu-button span:nth-child(1) {
        top: 0;
    }
    
    .menu-button span:nth-child(2) {
        top: 9px;
    }
    
    .menu-button span:nth-child(3) {
        top: 18px;
    }
    
    #menu-toggle:checked ~ .menu-button span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    
    #menu-toggle:checked ~ .menu-button span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .menu-button span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    .menu-principal ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-claro);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transicion);
        box-shadow: var(--sombra-media);
        z-index: 100;
    }
    
    #menu-toggle:checked ~ ul {
        right: 0;
    }
    
    .menu-principal ul li {
        margin: 2rem 0;
    }
    
    .footer-flex > div {
        flex-basis: 100%;
        margin-bottom: 4rem;
    }
    
    .footer-links, .footer-legal {
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    .contenedor {
        width: 95%;
    }
    
    .paso {
        flex-direction: column;
    }
    
    .paso-numero {
        margin-bottom: 2rem;
    }
    
    .paso::before {
        display: none;
    }
    
    .ventajas-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones para mejorar la experiencia */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portada-contenido h1,
.portada-contenido h2,
.portada-contenido p,
.portada-contenido .boton-principal,
.portada-contenido .etiquetas {
    opacity: 0;
    animation: fadeUp 0.8s forwards;
}

.portada-contenido h1 {
    animation-delay: 0.3s;
}

.portada-contenido h2 {
    animation-delay: 0.5s;
}

.portada-contenido p {
    animation-delay: 0.7s;
}

.portada-contenido .boton-principal {
    animation-delay: 0.9s;
}

.portada-contenido .etiquetas {
    animation-delay: 1.1s;
}
