:root {
    --primary: #42cdd5;
    --secondary: #5a4fa2;
    --text-color: #333;
    --bg-color: #fff;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Header base --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}

/* Logo */
header .logo img {
    max-height: 80px;
    width: auto;
}

/* Desktop Menu: menú centrado */
.menu-principal {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex: 1;
}

.menu-principal .m-p-item a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    transition: color 0.3s ease;
}

.menu-principal .m-p-item a:hover {
    color: var(--primary);
}

/* Botón WhatsApp */
.boton-whatsapp .button {
    background: var(--secondary);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.boton-whatsapp .button:hover {
    background: var(--primary);
}

@media (max-width: 900px) {
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        position: relative;
    }

    /* Hamburguesa a la izquierda */
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        color: var(--secondary);
        cursor: pointer;
        order: 1;
    }

    /* Logo centrado */
    .logo {
        order: 2;
        flex: 1;
        text-align: center;
    }

    .logo img {
        max-height: 60px; /* opcional para móvil */
        width: auto;
    }

    /* Botón a la derecha */
    .boton-whatsapp {
        order: 3;
    }

    /* Menú desplegable */
    .menu-principal {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 2rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
        z-index: 999;
    }

    .menu-principal.active {
        display: flex;
    }
}

@media (min-width: 901px) {
    .menu-toggle {
        display: none;
    }

    .logo img {
        max-height: 80px; /* logo desktop */
    }
}

.button{
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    opacity: 0.9;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.4rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero img {
    width: 100%;
    border-radius: 10px;
}

.hero .botones{
    margin: 25px 0 10px;
    display: flex;
    justify-content: start;
}

.hero .botones .button:hover{
    background-color: var(--primary);
}

/* Section titles */
section {
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

/* 3 columns */
.three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-block {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
}

.info-block:hover {
    transform: translateY(-3px);
}

.info-block h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-align: center;
}

/* FAQ */
.details {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.summary {
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
}

/* --- CTA Section --- */
#cta.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

#cta .button:hover{
    background-color: var(--primary);
}

@keyframes shimmer {
    from { transform: translateX(-30%) rotate(0deg); }
    to { transform: translateX(30%) rotate(360deg); }
}

#cta h3 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

#cta p {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0.8rem auto;
    opacity: 0.9;
}

/* dar ritmo visual: algunos párrafos más suaves o más destacados */
#cta p:first-of-type {
    font-style: italic;
    opacity: 0.85;
}

#cta p:last-of-type {
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
}

/* enlace principal */
#cta a {
    display: inline-block;
    background: #fff;
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#cta a:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* animación de entrada */
#cta {
    animation: fadeInUp 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    #cta h3 {
        font-size: 1.9rem;
    }

    #cta a {
        padding: 0.9rem 1.6rem;
        font-size: 1rem;
    }
}


footer {
    background-color: var(--secondary);
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:visited {
    color: #fff;
}

@media (max-width: 768px) {
    header .menu-principal{
        display: none;
    }
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }
    .hero .botones{
        justify-content: center;
    }
    .hero img{
        display: none;
    }
}

/* slider*/
#ventajas {
    text-align: center;
    overflow: hidden;
    background-color: #f3f3f3;
    border-radius: 15px;
}

.slider-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.slide h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
}

.slider-controls {
    margin-top: 1rem;
}

.slider-controls button {
    background-color: var(--secondary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    margin: 0 0.3rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.slider-controls button:hover {
    background-color: var(--primary);
}

/* --- Cómo funciona --- */
#como-funciona {
    padding: 5rem 2rem;
    text-align: center;
}

#como-funciona h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 3rem;
    position: relative;
}

#como-funciona .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#como-funciona .step {
    background-color: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#como-funciona .step:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(66, 205, 213, 0.2);
}

/* Números grandes decorativos */
#como-funciona .step::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(66, 205, 213, 0.3);
}

/* Titulares y texto */
#como-funciona .step h3 {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

#como-funciona .step p,
#como-funciona .step ul {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

#como-funciona .step ul {
    padding-left: 1.2rem;
}

#como-funciona .step ul li {
    list-style-type: "• ";
    margin-bottom: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
    #como-funciona h2 {
        font-size: 1.8rem;
    }

    #como-funciona .step {
        padding: 1.5rem;
    }

    #como-funciona .step::before {
        top: -10px;
        left: 15px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Inicializa contador */
#como-funciona .steps {
    counter-reset: step;
}

.terminos h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    text-align: left;
}

.terminos .indice{
    font-weight: bold;
    margin-right: 8px;
    color: var(--primary);
}