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

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Variables globales */
/* Fonts */
:root {
    --font-body: 'Poppins', sans-serif;     /* Texto principal */
    --font-title: 'Raleway', sans-serif;    /* Títulos y encabezados */

  /* Colores globales */
    --background-color: #ffffff;
    --surface-color: #ffffff;
    --default-color: #444444;
    --heading-color: #213b52;
    --accent-color: #fdc134;
    --contrast-color: #ffffff;

  /* Nav */
    --nav-color: #e7f4ff;
    --nav-hover-color: #fdc134;
    --nav-mobile-bg: #213b52;
    --nav-dropdown-bg: #ffffff;
    --nav-dropdown-color: #444444;
    --nav-dropdown-hover: #fdc134;
}

/* Modos claros/oscuros */
.light-background {
    --background-color: #f5f9fc;
}

.dark-background {
    --background-color: #223b51;
    --default-color: #ffffff;
    --heading-color: #ffffff;
    --surface-color: #315575;
    --contrast-color: #223b51;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
/* Tipografía y links */
body {
    font-family: var(--font-body);
    color: var(--default-color);
    background-color: var(--background-color);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--heading-color);
}
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}
a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/* Botones básicos */
.btn, .btn-getstarted, .btn-get-started-hero, .btn-get-started-outline-hero {
    font-family: var(--heading-font);
    transition: all 0.3s ease-in-out;
}
.btn-getstarted {
    display: inline-block;
    padding: 0.5em 1em;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    background: transparent;
    color: var(--contrast-color);
}
.btn-getstarted:hover {
    background-color: var(--accent-color);
    color: #000 !important;
}
.btn-get-started-hero, .btn-get-started-outline-hero {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 50px;
    border: 2px solid var(--accent-color);
}
.btn-get-started-hero {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}
.btn-get-started-outline-hero {
    background: transparent;
    color: var(--accent-color);
}
.btn-get-started-hero:hover {
    background: var(--contrast-color);
    color: var(--accent-color);
}
.btn-get-started-outline-hero:hover {
    background: var(--accent-color);
    color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Header general
--------------------------------------------------------------*/
/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0; right: 0;
    padding: 15px 0;
    background-color: var(--heading-color);
    z-index: 999;
    transition: all 0.5s ease-in-out;
}
body.scrolled .header {
    background-color: rgba(34, 59, 81, 0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-radius: 50px;
    padding: 0.2rem 2rem;
    margin: 0.5rem auto;
    max-width: 1200px;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header .logo {
    display: flex;
    align-items: center;
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
}
.header .logo img {
    max-height: 60px;
    margin-right: 8px;
}

/*--------------------------------------------------------------
# Navmenu (desktop)
--------------------------------------------------------------*/
.navmenu ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.navmenu li {
    position: relative;
}

.navmenu a {
    color: var(--nav-color);
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 16px;
    padding: 10px;
    transition: 0.3s;
    display: block;
    text-decoration: none;
}

.navmenu a:hover,
.navmenu .active {
    color: var(--nav-hover-color);
}

/*--------------------------------------------------------------
# Mobile nav
--------------------------------------------------------------*/
.mobile-nav-toggle {
    display: none;
    font-size: 28px;
    color: var(--heading-color);
    cursor: pointer;
}

@media (max-width: 991px) {
    .navmenu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #223b51;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        display: none;
        z-index: 9998;
    }

    .mobile-nav-active .navmenu {
        display: flex;
    }

    .navmenu ul {
        flex-direction: column;
        gap: 20px;
    }

    .btn-getstarted {
        display: none;
    }

    .mobile-nav-active .btn-getstarted {
        display: inline-block;
        margin-top: 15px;
    }

    .mobile-nav-toggle {
        display: block;
    }
}

/*--------------------------------------------------------------
# Fix scroll horizontal inesperado
--------------------------------------------------------------*/
html, body {
    overflow-x: hidden;
}

/* Estilo del header cuando se hace scroll */
body.scrolled .header {
    background-color: transparent;
    border-radius: 50px;
    padding: 0.2rem 2rem;
    margin: 0.5rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease-in-out;
}

/* Aseguramos que el nav quede fijo arriba */
.header {
    background-color: #213b52!important;
    z-index: 999;
}

/* ----------------------------------------------
# Footer General
---------------------------------------------- */

.footer {
    color: var(--default-color);
    background-color: var(--background-color);
    background-size: cover;
    font-size: 14px;
    padding: 60px 0 30px 0;
    position: relative;
    text-align: center;
}

.footer:before {
    content: "";
    background: color-mix(in srgb, var(--background-color), transparent 20%);
    position: absolute;
    inset: 0;
}

.footer .container {
    position: relative;
}

/* ----------------------------------------------
# Footer Grid
---------------------------------------------- */

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

/* Columna izquierda: Logo + mensaje */
.footer-left {
    flex: 1;
    min-width: 250px;
    text-align: left;
    margin-left: 60px;
    margin-right: auto;
}

.footer-brand {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-message {
    font-size: 15px;
    font-style: italic;
    line-height: 1.6;
    font-family: 'Raleway', sans-serif;
}

.footer-logo {
    max-height: 80px;
    margin-left: -45px;
    width: auto;
    vertical-align: middle;
    margin-bottom: -15px;
}

/* Columna central: Redes sociales */
.footer-center {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
}

.footer-center .social-links {
    margin-top: 100px;
    margin-bottom: -10px;
    display: flex;
    gap: 10px;
}

.social-links a {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    transition: 0.3s;
    text-align: center;
    line-height: 1;
}

.social-links a:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 20%);
    text-decoration: none;
}

/* Columna derecha: Contacto */
.footer-right {
    flex: 1;
    min-width: 250px;
    text-align: right;
    margin-right: 60px;
}

.footer-contact-block {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-contact-block p {
    margin: 4px 0;
}

.footer-contact-block i {
    margin-right: 6px;
}

/* ----------------------------------------------
# Copyright
---------------------------------------------- */

.footer .copyright {
    padding-top: 25px;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    text-align: center;
    font-size: 13px;
}


@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        margin: 0;
        text-align: center;
    }

    .footer-center .social-links {
        margin-top: 20px;
        margin-bottom: 10px;
        justify-content: center;
    }
}


/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background-color: var(--background-color);
    transition: all 0.6s ease-out;
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid var(--accent-color);
    border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: -15px;
    z-index: 99999;
    background-color: var(--accent-color);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    color: var(--contrast-color);
    line-height: 0;
}

.scroll-top:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
    color: var(--contrast-color);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
    bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 60px 0;
    scroll-margin-top: 90px;
    overflow: clip;
}

@media (max-width: 1199px) {

    section,
    .section {
    scroll-margin-top: 67px;
    }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
    text-align: center;
    padding-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
}

.section-title h2:before {
    content: "";
    position: absolute;
    display: block;
    width: 160px;
    height: 1px;
    background: color-mix(in srgb, var(--default-color), transparent 60%);
    left: 0;
    right: 0;
    bottom: 1px;
    margin: auto;
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.section-title p {
    font-family: var(--font-body);         
    font-size: 1rem;                           
    color: color-mix(in srgb, #213b52 90%, white 10%); 
    margin-top: 0;                            
    margin-bottom: 1rem;                     
    text-align: center;                        
}

@media (max-width: 768px) {
    section,
    .section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    width: 100%;
    min-height: 70vh;
    padding: 80px 0 2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Título */
.hero h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;        /* 40px */
    font-weight: 600;
    line-height: 1.2;         /* ≈48px */
    color: var(--nav-color);
    max-width: 60ch;
    margin-inline: auto;
    padding-bottom: 1rem;
}

.hero h1 .highlight {
    color: var(--accent-color);
}


/* Párrafo con efecto máquina de escribir */
.hero .typewriter {
    display: inline-block;    
    max-width: 50ch;            
    margin: 0 auto 1.5rem;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 0.9rem;        
    line-height: 1.5;
    color: var(--nav-color);
    white-space: pre-wrap;    
    overflow: visible !important;   /* asegurar visibilidad */
    position: relative;
    padding-bottom: 1rem;
}


/*--------------------------------------------------------------
# Botones en el Hero (sin cambios)
--------------------------------------------------------------*/
#hero .container > .d-flex {
    margin-top: 1.5rem;
    gap: 1.5rem !important;
    justify-content: center;
}

.btn-get-started-hero,
.btn-get-started-outline-hero {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 0.875rem;       /* 14px */
    letter-spacing: 0.5px;
    padding: 0.65em 1.4em;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-get-started-hero {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border: 2px solid var(--accent-color);
}
.btn-get-started-hero:hover {
    background-color: var(--contrast-color);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-get-started-outline-hero {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}
.btn-get-started-outline-hero:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Responsive Hero
--------------------------------------------------------------*/
@media (max-width: 991px) {
    .hero {
        padding: 60px 0 1.5rem !important;
    }
    .hero h1 {
        font-size: 2rem;      /* 32px */
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 40px 0 1rem !important;
    }
    .hero h1 {
        font-size: 1.5rem;    /* 24px */
        line-height: 1.3;     /* ≈32px */
    }
    .hero .typewriter {
        font-size: 0.8rem;    /* 12.8px */
        line-height: 1.4;
        max-width: 40ch;
        margin-bottom: 1rem;
    }
    #hero .container > .d-flex {
        flex-direction: column;
        gap: 1rem !important;
        margin-top: 1rem;
    }
    .btn-get-started-hero,
    .btn-get-started-outline-hero {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        font-size: 0.8rem;    /* 12.8px */
    }
}

/* Section about */

.about.section {
    padding-top: 6rem;
    padding-bottom: 4rem;
}
#about {
    background: linear-gradient(135deg, rgba(253,193,52,0.1), rgba(255,255,255,0));
}

#about .container > .row:first-child {
    margin-bottom: 3rem; 
}

#about .small-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
    text-align: center;
}

#about .big-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--heading-color);
    margin-bottom: 2rem;
    text-align: center;
}

#about .content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    color: var(--default-color);
}

#about .about-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin: 0 auto 2rem;
}

#about .about-list {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    text-align: center;
}

#about .about-list > div {
    flex: 1 1 250px;
}

#about .about-list i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-radius: 50%;
    padding: 1rem;
}

#about .about-list h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
}

#about .about-list p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--default-color);
}


@media (max-width: 991px) {
    #about .big-title {
        font-size: 1.6rem;
    }
    #about .about-img {
        width: 240px;
        height: 240px;
    }
}

/* Seccion servicios */

.services-hero {
    padding-top: 6rem;   
    padding-bottom: 4rem;
}

#services .small-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
}

#services .big-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--heading-color);
}


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


/* Lista y estilos de servicios */

.service-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; 
}

.service-list .service-item {
    opacity: 0;
    transform: translateX(30px);
    display: block;
    padding: 1rem 1.5rem;
    border: 1px solid #ccc;
    border-radius: 0.75rem;
    background: var(--surface-color);
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.service-list.animate .service-item {
    animation: slideInRight 0.6s forwards;
}

.service-list.animate .service-item:nth-child(1) { animation-delay: 0.2s; }
.service-list.animate .service-item:nth-child(2) { animation-delay: 0.4s; }
.service-list.animate .service-item:nth-child(3) { animation-delay: 0.6s; }
.service-list.animate .service-item:nth-child(4) { animation-delay: 0.8s; }
.service-list.animate .service-item:nth-child(5) { animation-delay: 1s; }

.service-item:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--contrast-color);
}

/* Responsive: tamaño de texto */
@media (max-width: 767px) {
    #services .big-title {
        font-size: 1.6rem;
    }
    .service-item {
        font-size: 0.9rem;
    }
}


/* SECTION DIFERENCIA */

#propuesta-valor {
    background: linear-gradient(135deg, rgba(253,193,52,0.1), rgba(255,255,255,0));
}

#propuesta-valor.services-hero {
    padding-top: 6rem;    
    padding-bottom: 4rem;
    position: relative;
    color: var(--heading-color);
}

#propuesta-valor .small-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
}


#propuesta-valor .big-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--heading-color);
    margin-bottom: 2rem;
    font-family: var(--font-title);
}

#propuesta-valor .linea-central {
    position: absolute;
    top: 16rem; 
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: calc(100% - 16rem);
    background: var(--accent-color);
    z-index: 0;
}

#propuesta-valor .bloque {
    width: 45%;
    padding: 0rem 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    background: none;
    z-index: 1;
}

#propuesta-valor .bloque h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
}

#propuesta-valor .bloque p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--default-color);
    font-family: var(--font-body);
}

#propuesta-valor .bloque.izquierda {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
    padding-right: 1rem;
}

#propuesta-valor .bloque.derecha {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    padding-left: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    #propuesta-valor .linea-central {
        display: none;
    }
    #propuesta-valor .bloque {
        width: 100%;
        padding: 1rem 0;
        border-left: 4px solid var(--accent-color);
        margin-bottom: 1.5rem;
        text-align: left !important;
    }
    #propuesta-valor .bloque.izquierda,
    #propuesta-valor .bloque.derecha {
        padding-left: 1rem;
        padding-right: 0;
    }
}

/* ------------------------------
SECCIÓN CONTACTO
------------------------------ */
.contact-section {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--surface-color);
}

#contact .small-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
}

#contact .big-title {
    font-size: 2.25rem;   
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading-color);
    margin-bottom: 2rem;    
    font-family: var(--font-title);
}


/* FLEX GENERAL */
.contacto-flex {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

/* ------------------------------
FORMULARIO
------------------------------ */
.php-email-form {
    background-color: var(--surface-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
    flex: 1 1 480px;
    max-width: 600px;
}

.php-email-form input,
.php-email-form textarea {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
    padding: 10px 15px;
    font-size: 0.875rem;
    border-radius: 8px;
    background-color: var(--surface-color);
    color: var(--default-color);
}

.php-email-form input:focus,
.php-email-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.php-email-form input::placeholder,
.php-email-form textarea::placeholder {
    color: color-mix(in srgb, var(--default-color), transparent 50%);
}



/* ------------------------------
BLOQUE CALENDLY
------------------------------ */
.calendly-box {
    flex: 0 1 300px;
    background-color: var(--surface-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
}

.texto-calendly {
    font-family: var(--default-font); 
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: color-mix(in srgb, #213b52 90%, white 10%);
}

/* ------------------------------
MODAL CALENDLY
------------------------------ */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-contenido {
    background-color: #fff;
    margin: 5% auto;
    padding: 1rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.cerrar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
}

/* Animación de entrada del modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------
RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
    .contacto-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .php-email-form,
    .calendly-box {
        max-width: 100%;
    }

    .modal-contenido {
        width: 95%;
        height: 90%;
        padding: 1rem;
        overflow-y: auto;
    }
    .cerrar {
        font-size: 1.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    .modal-contenido iframe {
        width: 100% !important;
        height: 500px !important; /* o ajustá según tu necesidad */
    }
    .calendly-box {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 1.2rem;
        margin: 0 auto;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    }

    .contact-section .contacto-flex {
        padding: 0 1rem;
    }

    .php-email-form {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* ---------- Dropdown “Servicios” ---------- */
.navmenu ul li.dropdown {
    position: relative;
}

/* Menú oculto */
.navmenu ul li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: #ffffff;                  
    border-radius: 1rem;                  
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); 
    min-width: 240px;
    padding: 0.5rem 0;
    z-index: 9999;
}

/* Cada ítem como flex para icono + texto */
.navmenu ul li.dropdown .dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;                
    color: var(--nav-dropdown-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.navmenu ul li.dropdown .dropdown-menu li a .bi {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.navmenu ul li.dropdown .dropdown-menu li a:hover {
    color: var(--accent-color);
}

.navmenu ul li.dropdown .dropdown-menu.show {
    display: block !important;
}
@media (max-width: 991px) {
    .navmenu ul li.dropdown > .dropbtn {
        justify-content: center;
        position: relative; 
    }
    .navmenu ul li.dropdown > .dropbtn i {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    .navmenu ul li.dropdown { display: block; }
    .navmenu ul li.dropdown > .dropbtn {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        box-sizing: border-box;
        border-bottom: 2px solid transparent;
    }
    .navmenu ul li.dropdown .dropdown-menu {
        position: static !important;
        width: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        display: none;
    }
    .navmenu ul li.dropdown .dropdown-menu li a {
        display: block;
        width: 100%;
        padding: 0.6rem 1rem;
        padding-left: 1.5rem;
        color: var(--nav-color);
        transition: color 0.2s;
    }
    .navmenu ul li.dropdown .dropdown-menu.show {
        display: block;
    }
    .navmenu ul li.dropdown > .dropbtn:hover {
        border-bottom-color: var(--accent-color);
        background: none;
    }
}


/* PAGINA SERVICIOS */

/* Hero interno */
.hero-img-wrapper {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border-radius: 3rem 3rem 6rem 18rem;
}

.hero-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.services-page .small-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-page .text-accent {
    color: var(--accent-color) !important;
}

/* Secciones de detalle */

/* Títulos y párrafos */
.services-page section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-family: var(--font-title);
    font-weight: 700;
}

.services-page section p {
    font-size: 1rem;
    color: var(--heading-color);
    line-height: 1.6;
    margin-bottom: 0;
    font-family: var(--font-body)
}

/* Fondo claro en secciones pares */
.services-page section.bg-light {
    background-color: var(--light-background) !important;
}

/* Iconos XXL */
.services-page i.display-1 {
    font-size: 6.5rem;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 1rem;
}

/* Gap reducido entre icono y texto */
.services-page .row.g-3 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 1.0rem;
}

.services-page .col-md-6.d-flex {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

.services-page section:first-of-type {
    margin-bottom: 6.5rem;
}

/* Animación fadeInUp para bloques (excepto el primero) */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.services-page section:not(:first-of-type) {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
}

/* Secciones pares entran por la derecha */
.services-page section:nth-of-type(2),
.services-page section:nth-of-type(4),
.services-page section:nth-of-type(6) {
    animation-name: slideInRight;
}

/* Secciones impares (3,5...) entran por la izquierda */
.services-page section:nth-of-type(3),
.services-page section:nth-of-type(5) {
    animation-name: slideInLeft;
}

/* Delays escalonados */
.services-page section:nth-of-type(2) { animation-delay: 0.3s; }
.services-page section:nth-of-type(3) { animation-delay: 0.6s; }
.services-page section:nth-of-type(4) { animation-delay: 0.9s; }
.services-page section:nth-of-type(5) { animation-delay: 1.2s; }
.services-page section:nth-of-type(6) { animation-delay: 1.5s; }

/* Margen extra al final */
.services-page section:last-of-type {
    margin-bottom: 6.5rem;
}

/* Responsive tweaks */

@media (max-width: 767px) {
    .services-page section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .services-page i.display-1 {
        font-size: 4rem;
    }
    .hero-img-wrapper {
        max-width: 100%;
    }
}

