/* @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap'); */

:root {
    --color-text: #7b1fa2;
    --color-text-h3: #3d2305;
    --color-text-p: #8e24aa;
}

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

    /*? para depuracion */
    /* outline: 1px solid red; */
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--color-text);
    background-color: #e6c7ff;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

hr {
    margin: 0;
    opacity: .5;
    border: .5px solid #c92eaf;
}


/* ========== Scroll Bar ========== */
body {
    --sb-track-color: #f9f9f9;
    --sb-thumb-color: #c92eaf;
    --sb-size: 10px;
}

body::-webkit-scrollbar {
    width: var(--sb-size)
}

body::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
    border-radius: 5px;

}

@supports not selector(::-webkit-scrollbar) {
    body {
        scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
    }
}

/* ===== Boton de whatsapp flotante ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    z-index: 1500;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn i {
    font-size: 35px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    /* max-width: 12em; */
    width: 18em;
    text-align: center;
    height: 3.6em;
    line-height: 3.5em;
    overflow: hidden;
    cursor: pointer;
    margin: 5px;
    padding: 0 10px;
    font-size: 18px;
    font-weight: 500;
    z-index: 1;
    background-color: #f5d5ff;
    color: #c92eaf;
    border: 2px solid #c92eaf;
    border-radius: 6px;
    position: relative;
    transition: .3s ease;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 6px #3b3b3b;
    cursor: pointer;
}

/* ========== Header styles ========== */
header {
    position: fixed;
    width: 100%;
    z-index: 1200;
    background: #f5daff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

/* Logo texto header */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #c92eaf;
    text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, .1), 0 0 5px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .3), 0 3px 5px rgba(0, 0, 0, .2), 0 5px 10px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .2), 0 20px 20px rgba(0, 0, 0, .15);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #c92eaf;
    transition: all .3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    color: #2c1810;
    transition: color .3s;
}

.nav-link:hover,
.nav-link.active {
    color: #c92eaf;
}

.nav-link.active {
    text-decoration: underline;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


/* ========== Hero section styles ========== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
}

.hero-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
}

.hero-img {
    flex: 1;
    max-width: 50%;
}

.hero-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.hero-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: normal;
    color: var(--color-text);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-text-p);
    font-weight: 500;
}

.hero-text {
    font-size: 1.2rem;
    color: #333;
    animation: jumpText 2s ease infinite;
}

@keyframes jumpText {

    0%,
    100% {
        transform: translateY(0px);
    }

    60% {
        transform: translateY(25px);
    }
}

/* ========== SERVICIOS SECTION STYLES ========== */
.servicios {
    padding: 4rem 0;
}

.servicios-header {
    text-align: center;
    margin-bottom: 60px;
}

.servicios-header h1 {
    font-size: 3.5rem;
    color: #7b1fa2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(123, 31, 162, 0.1);
}

.servicios-header p {
    font-size: 1.2rem;
    color: #8e24aa;
    font-weight: 400;
}

.category {
    margin-bottom: 80px;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-title {
    font-size: 2.5rem;
    color: #7b1fa2;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ec407a, #ab47bc);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(123, 31, 162, 0.15);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(123, 31, 162, 0.25);
    border-color: #ab47bc;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ec407a, #ab47bc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.service-title {
    font-size: 1.5rem;
    color: #7b1fa2;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: capitalize;
}

.service-description {
    color: #6a1b9a;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.service-benefits {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(123, 31, 162, 0.1);
}

.benefits-title {
    font-size: 1rem;
    color: #8e24aa;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefits-list {
    color: #9c27b0;
    font-size: 0.9rem;
    line-height: 1.7;
    font-style: italic;
}

@media (max-width: 768px) {
    .servicios-header h1 {
        font-size: 2.5rem;
    }

    .category-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .servicios-header h1 {
        font-size: 2rem;
    }

    .servicios-header p {
        font-size: 1rem;
    }

    .category-title {
        font-size: 1.7rem;
    }

    .service-card {
        padding: 25px;
    }
}


/** ========== Contact section styles ========== */
.contact {
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 800px;

}

.contact-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-icon i {
    font-size: 3rem;
}

.contact-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-info {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/** ========== Footer styles ========== */
footer {
    background-color: #f6dcff;
    /* Un tono pastel muy suave (Linen) - puedes ajustarlo */
    color: #5d375a;
    /* Marrón oscuro para el texto, buen contraste */
    padding: 40px 20px 10px 20px;
    /* Espaciado: arriba, izq/der, abajo */
    font-family: 'Arial', sans-serif;
    /* O una fuente más elegante que ya uses */
    line-height: 1.6;
}

.footer-main-content {
    display: flex;
    flex-wrap: wrap;
    /* Para que las columnas se ajusten en pantallas pequeñas */
    justify-content: space-between;
    gap: 30px;
    /* Espacio entre columnas */
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    /* Permite que las columnas crezcan */
    min-width: 220px;
    /* Ancho mínimo para cada columna antes de que se envuelvan */
    margin-bottom: 20px;
    /* Espacio si se apilan verticalmente */
}

.footer-column h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #5d375a;
    /* Un marrón un poco más oscuro para títulos */
    font-weight: 600;
    border-bottom: 1px solid #5d375a;
    /* Línea sutil debajo del título */
    padding-bottom: 8px;
}

/* --- Columna "About" (Logo y Slogan) --- */
.footer-logo {
    max-width: 150px;
}

.footer-slogan {
    font-size: 0.9em;
    color: #5d375a;
    /* Marrón medio */
}

/* --- Columna "Enlaces Útiles" --- */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #5d375a;
    /* Marrón oscuro */
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #a07fa1;
    /* Marrón más claro al pasar el cursor */
}

/* --- Columna "Contacto y Redes" --- */
.contact-details p {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.contact-details p i {
    /* Iconos de contacto */
    margin-right: 8px;
    color: #5d375a;
    /* Marrón medio para iconos */
}

.footer-contact-link {
    color: #5d375a;
    text-decoration: none;
}

.footer-contact-link:hover {
    color: #a07fa1;
}

.footer-social-icons {
    margin-top: 15px;
}

.footer-social-icons a {
    color: #5d375a;
    /* Marrón oscuro para iconos sociales */
    font-size: 1.5em;
    /* Tamaño de los iconos */
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social-icons a:last-child {
    margin-right: 0;
}

.footer-social-icons a:hover {
    color: #a07fa1;
    /* Marrón más claro al pasar el cursor */
}

/* --- Columna "Newsletter" --- */
.footer-newsletter p {
    font-size: 0.9em;
    margin-bottom: 15px;
}

#newsletter-form {
    display: flex;
    gap: 5px;
    /* Espacio entre input y botón */
}

#newsletter-form input[type="email"] {
    flex-grow: 1;
    /* El input ocupa el espacio disponible */
    padding: 10px;
    border: 1px solid #D7CCC8;
    /* Borde pastel */
    border-radius: 4px;
    background-color: #fff;
    /* Fondo blanco para el input */
    font-size: 0.9em;
    color: #5D4037;
}

#newsletter-form input[type="email"]::placeholder {
    color: #A1887F;
}

.btn-newsletter {
    padding: 10px 15px;
    background-color: #8D6E63;
    /* Marrón medio, color pastel pero con suficiente contraste */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.btn-newsletter:hover {
    background-color: #795548;
    /* Marrón un poco más oscuro al pasar el cursor */
}

/* --- Barra Inferior del Footer (Copyright) --- */
.footer-bottom-bar {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #5d375a;
    /* Línea divisoria sutil */
    font-size: 0.85em;
    color: #5d375a;
    /* Marrón medio */
}

/* --- Media Queries para Responsividad del footer --- */
@media (max-width: 992px) {

    /* Para tablets */
    .footer-main-content {
        /* Podrías ajustar el número de columnas aquí si quieres, ej. 2 columnas */
    }

    .footer-column {
        min-width: calc(50% - 20px);
        /* Apunta a 2 columnas en tablets */
    }
}

@media (max-width: 768px) {

    /* Para móviles */
    .footer-main-content {
        flex-direction: column;
        /* Apila las columnas verticalmente */
        align-items: center;
        /* Centra el contenido de las columnas apiladas */
        text-align: center;
        /* Centra el texto dentro de cada columna */
    }

    .footer-column {
        min-width: 100%;
        /* Cada columna ocupa todo el ancho */
        margin-bottom: 30px;
    }

    #newsletter-form {
        flex-direction: column;
        /* Apila el input y el botón del newsletter */
        align-items: stretch;
        /* Hace que el botón ocupe el ancho */
    }

    #newsletter-form input[type="email"] {
        margin-bottom: 10px;
    }

    .footer-social-icons {
        justify-content: center;
        /* Centra los iconos sociales */
        display: flex;
    }

    .contact-details {
        text-align: center;
        /* O left si prefieres que los iconos y texto no se centren forzosamente */
    }
}




/** ========== RESPONSIVE ========== */
@media screen and (max-width: 479px) {
    .container h2 {
        font-size: 2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: white;
        flex-direction: column;
        padding: 80px 20px;
        transition: right .3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }

    .hero-container {
        flex-direction: column;
    }

    .hero-img {
        margin-top: 4rem;
        max-width: 100%;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .hero-img img {
        width: 400px;
    }

    .hero-content {
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-description {
        text-align: center;
    }

    .promo-content {
        height: auto;
    }

    /* Contacto */
    .contact-cards {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 480px) and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: white;
        flex-direction: column;
        padding: 80px 20px;
        transition: right .3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -8px);
    }

    .hero-container {
        flex-direction: column;
    }

    .hero-img {
        margin-top: 4rem;
        max-width: 100%;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .hero-img img {
        width: 500px;
    }

    .hero-content {
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-description {
        text-align: center;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .promo-content {
        height: auto;
    }

    /* ===== contacto ===== */
    .contact-cards {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (min-width: 770px) and (max-width: 1280px) {
    .promo-content {
        height: auto;
    }
}

/** ANIMACIONES DE SCROLL EN SECCIONES */
.promo-card {
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

@keyframes appear {
    from {
        opacity: 0;
        scale: 0.5;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}