:root {
    --purple-main: #8e67a4;
    --purple-light: #f3eff7;
    --text-dark: #4a4a4a;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* ================= HERO ================= */

.hero {
    background: linear-gradient(135deg, #fdfbff 0%, #e9defa 100%);
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-text {
    grid-column: 1;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: #6a4a7a;
}

.hero-text h1 span {
    color: var(--purple-main);
}

.hero-image {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
}

/* BOTÓN */
.btn-primary {
    display: inline-block;
    background-color: var(--purple-main);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #7a568d;
}
/* ================= DESKTOP ================ */

@media (min-width: 1200px) {
    .hero-text h1 {
        font-size: 3.6rem;   /* antes 3.2 */
        line-height: 1.08;
        letter-spacing: -0.5px;
    }

    .hero-text p {
        font-size: 1.15rem;
        max-width: 520px;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .hero {
        padding: 80px 0;
        min-height: 100vh; /* 🔥 casi pantalla completa */
        display: flex;
        align-items: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        display: contents;
    }

    .hero-image img {
        display: block;
        width: 100%;
        max-width: 420px;
        margin: 25px auto;
        height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .about-flex {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        max-width: 320px;
        margin: 0 auto;
    }
    .service-card {
        transform: scale(0.95);
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

    .service-card.active {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

    .service-card {
        pointer-events: none;
    }

    .slider-btn {
        font-size: 2.4rem;
    }

    .about-banner {
        background:
            linear-gradient(to bottom, rgba(255,255,255,0) 40%, #faf7ff 65%),
            url("imgs/Whatwedo.png") center top / cover no-repeat;
        min-height: 420px;
        align-items: flex-end;
    }

    .about-text {
        width: 100%;
        padding: 30px;
        text-align: center;
    }
}

/* ================= SERVICIOS ================= */

.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--purple-light);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card.urgent {
    background: linear-gradient(135deg, #8e67a4, #6a4a7a);
    color: white;
}

.service-card.urgent h3,
.service-card.urgent p {
    color: white;
}

.service-card.urgent .icon {
    font-size: 3.2rem;
}

.service-card .icon img {
    width: 48px;
    height: auto;
    margin-bottom: 15px;
}

.service-card {
    background-color: var(--purple-light);
    padding: 40px;
    text-align: center;
    border-radius: 10px;

    /* 🔹 animación */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: scale(1.06); /* se agranda */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ================= ABOUT ================= */

.about {
    background: #faf7ff;
    padding: 80px 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* ================= PRODUCTS ================= */

.products {
    padding: 80px 0;
}

.subtitle {
    text-align: center;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-img-box {
    background-color: #eee;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* ================= FOOTER ================= */

.footer {
    position: relative;
    padding: 70px 0;
    background-image: url("imgs/footer.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #4a3a5a;
}


/* capa suave encima */
.footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f3eff7, #ffffff);
    opacity: 0.85;
    z-index: 0;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* LOGO */
.footer-logo img {
    max-width: 160px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-weight: 500;
    color: #6a4a7a;
}

/* FORM */
.footer-form h3 {
    margin-bottom: 15px;
}

.footer-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}
/* ===========================================*/
.btn-submit {
    width: 100%;
    background: var(--purple-main);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #7a568d;
}

/* INFO */
.footer-info p {
    margin-bottom: 8px;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;                  /* espacio entre icono y texto */
    padding: 10px 16px;
    margin: 5px 0;
    background: linear-gradient(90deg, #8e67a4 0%, #b58ec9 100%); /* degradado morado */
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 15px;
    }
}

.center {
    text-align: center;
}

.hero-image img {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-image img.hide {
    opacity: 0;
    transform: translateY(40px);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ================= WHAT WE DO ================= */

.about {
    padding: 0;
}

.about-banner {
    display: flex;
    min-height: 320px;
    background:
        linear-gradient(
            to right,
            rgba(142,103,164,0.35) 0%,   /* morado suave */
            rgba(142,103,164,0.15) 25%,
            rgba(255,255,255,0) 35%,
            #faf7ff 60%
        ),
        url("imgs/Whatwedo.png") left center / cover no-repeat;
}


.about-text {
    margin-left: auto;
    width: 50%;
    padding: 60px;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* ================= WHAT WE DO ================= */

.about2 {
    padding: 0;
}

.about2-banner {
    display: flex;
    min-height: 320px;
    background:
        linear-gradient(
            to right,
            rgba(142,103,164,0.35) 0%,   /* morado suave */
            rgba(142,103,164,0.15) 25%,
            rgba(255,255,255,0) 35%,
            #faf7ff 60%
        ),
        url("imgs/us.png") left center / cover no-repeat;
}


.about2-text {
    margin-left: auto;
    width: 50%;
    padding: 60px;
}

.about2-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.about2-text p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

/* ================= PRODUCTS SLIDER ================= */

.products-slider {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    align-items: center;            /* 🔥 centra verticalmente */
    transition: transform 0.6s ease;
}


.product-item {
    min-width: 100%;                /* ocupa todo el ancho del slider */
    display: flex;                  /* 🔥 clave */
    flex-direction: column;
    align-items: center;            /* 🔥 centra horizontal */
    justify-content: center;
    text-align: center;
}


.product-item img {
    max-width: 380px;
    width: 100%;
    height: auto;
    object-fit: contain;            /* 🔥 nunca se deforma */
    margin-bottom: 15px;
    display: block;
}


.product-item p {
    font-weight: 500;
}

/* ================= PRODUCTS IMAGES ================= */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8e67a4;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    padding: 0 10px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.slider-btn:hover {
    color: #6a4a7a;
    transform: translateY(-50%) scale(1.15);
}

.slider-track {
    display: flex;
    align-items: center;
}

.center {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.products-menu-wrapper {
    position: relative;
}

.products-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
}

/* menú oculto */
.products-menu {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 20;
}

/* visible */
.products-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* links */
.products-menu a {
    display: block;
    padding: 12px 20px;
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.products-menu a:hover {
    background: #f3eff7;
    color: #6a4a7a;
}

.center {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.products-menu-wrapper {
    position: relative;
}

.products-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
}
