/* ========================== VARIABLES Y RESET ========================== */
:root {
    --color-primary: #005696;
    --color-accent-yellow: #efab0b;
    --color-accent-orange: #e15f3a;
    --color-dark: #1a1a2e;
    --color-gray-dark: #2d2d44;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;
    --color-white: #ffffff;
    --color-bg: #f9fafb;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
}

/* ========================== CONTENEDOR ========================== */
.container {
    max-width: 72%;
    /* Cambiado de 1200px a 80% */
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================== HEADER / NAVEGACIÓN ========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 86, 150, 0.08);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 86, 150, 0.05);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 86, 150, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 86, 150, 0.1));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 86, 150, 0.15));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.logo-accent {
    color: var(--color-accent-yellow);
}

.logo-ve {
    color: var(--color-accent-orange);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    font-weight: 600;
    color: var(--color-dark);
    transition: var(--transition);
    position: relative;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    display: inline-block;
    overflow: hidden;
}

/* Efecto de fondo gradiente en hover */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 86, 150, 0.08) 0%,
            rgba(239, 171, 11, 0.08) 100%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

/* Línea animada inferior */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--color-primary) 0%,
            var(--color-accent-yellow) 50%,
            var(--color-accent-orange) 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--color-primary);
    /* transform: translateY(-2px); se elimino ya que estaba generando problemas*/
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover::after {
    width: calc(100% - 2.5rem);
}

/* Efecto de profundidad al hacer clic 
.nav-link:active {
    transform: translateY(0);
} */

/* Botón CTA del header con mejoras */
.btn-cta-header {
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg,
            var(--color-accent-yellow) 0%,
            #f5b821 100%);
    color: var(--color-dark);
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(239, 171, 11, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
}


.btn-cta-header:hover::before {
    left: 100%;
}

.btn-cta-header:hover {
    background: linear-gradient(135deg,
            var(--color-accent-orange) 0%,
            #e67350 100%);
    color: var(--color-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(225, 95, 58, 0.4);
}

.btn-cta-header:active {
    transform: translateY(-1px) scale(0.98);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: rgba(0, 86, 150, 0.05);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg,
            var(--color-primary) 0%,
            var(--color-accent-yellow) 100%);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle:hover span {
    background: linear-gradient(90deg,
            var(--color-accent-orange) 0%,
            var(--color-accent-yellow) 100%);
}

/* Animación del hamburger menu al activarse */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ========================== HERO SECTION ========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #059fb5 0%, #047a8e 50%, #035668 100%);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background-color: var(--color-accent-yellow);
    top: -200px;
    right: -200px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background-color: var(--color-accent-orange);
    bottom: -100px;
    left: -100px;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background-color: var(--color-white);
    top: 40%;
    right: 20%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 4rem 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--color-accent-yellow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-benefits {
    list-style: none;
    margin-bottom: 2.5rem;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent-yellow);
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent-yellow);
    color: var(--color-dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--color-accent-orange);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.hero-trust {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ========================== SECCIÓN POR QUÉ ========================== */
.why-section {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent-orange);
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.why-card {
    padding: 2rem;
    background-color: var(--color-bg);
    border-radius: 12px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-yellow);
}

.why-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 0.5rem;
}

.why-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.why-card p {
    color: var(--color-gray);
    line-height: 1.7;
}

/* ========================== SERVICIOS ========================== */
.services-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    padding: 2.5rem;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--color-primary);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--color-accent-orange);
}

.service-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 0.5rem;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-cta {
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition);
}

.service-cta:hover {
    color: var(--color-accent-orange);
}

.services-cta-block {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-orange));
    border-radius: 16px;
    color: var(--color-white);
}

.services-cta-block h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.services-cta-block p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========================== EQUIPO ========================== */
.team-section {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-bg);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-accent-yellow);
    background-color: var(--color-gray-light);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-highlights {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.team-highlights li {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.team-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-accent-orange);
}

.team-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: var(--color-white);
    transition: var(--transition);

    margin-right: 8px;
    text-decoration: none;
}

.team-social:hover {
    background-color: var(--color-accent-orange);
    transform: scale(1.1);
}

.team-social svg {
    width: 20px;
    height: 20px;
}

/* ========================== RESULTADOS ========================== */
.results-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-white) 100%);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.kpi-card {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-orange));
    border-radius: 12px;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.kpi-card:hover {
    transform: scale(1.05);
}

.kpi-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.kpi-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--color-accent-yellow);
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.testimonial-expand {
    margin-bottom: 1.5rem;
}

.testimonial-full {
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
    display: none;
}

.testimonial-full.active {
    display: block;
}

.read-more {
    background: transparent;
    color: var(--color-accent-orange);
    font-weight: 600;
    padding: 0;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--color-primary);
}

.testimonial-author {
    color: var(--color-dark);
    font-size: 0.95rem;
}

.testimonial-author strong {
    font-weight: 600;
}

/* ========================== CLIENTES ========================== */
/* ========================== CLIENTES – cinta de logos con scroll infinito ========================== */
.clients-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Contenedor de la cinta con overflow oculto */
.clients-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(90deg,
            rgba(248, 249, 250, 1) 0%,
            rgba(248, 249, 250, 0) 5%,
            rgba(248, 249, 250, 0) 95%,
            rgba(248, 249, 250, 1) 100%);
}

/* Pista de logos con flexbox */
.clients-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: scroll-logos 40s linear infinite;
    width: fit-content;
}

/* Pausar animación al hacer hover */
.clients-marquee:hover .clients-track {
    animation-play-state: paused;
}

/* Estilos de los logos */
.clients-track img {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Efecto hover en logos individuales */
.clients-track img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Animación de desplazamiento infinito */
@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }

    .clients-track {
        gap: 3rem;
        animation-duration: 30s;
    }

    .clients-track img {
        height: 2.5rem;
    }
}

/* ========================== RECURSOS ========================== */
.resources-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-orange) 100%);
    color: var(--color-white);
}

.resources-section .section-title,
.resources-section .section-intro {
    color: var(--color-white);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-card {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.resource-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.resource-card p {
    opacity: 0.9;
}

.resources-cta {
    text-align: center;
}

/* ========================== CONTACTO ========================== */
.contact-section {
    padding: 6rem 0;
    background-color: var(--color-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-description {
    color: var(--color-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-item span {
    color: var(--color-dark);
    font-weight: 500;
}

.contact-form {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn-block {
    width: 100%;
}

.form-privacy {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 1rem;
    text-align: center;
}

.form-privacy a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ========================== FOOTER ========================== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4,
.footer-legal h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-accent-yellow);
}

.footer-links ul,
.footer-contact ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-contact li,
.footer-legal li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
    color: var(--color-accent-yellow);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--color-accent-yellow);
    color: var(--color-dark);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========================== ANIMACIONES ========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================== RESPONSIVE ========================== */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .services-grid,
    .why-grid,
    .team-grid,
    .testimonials-grid,
    .clients-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* ========================== EFECTOS INTERACTIVOS DE BOTONES ========================== */

/* Variables para el efecto blob */
:root {
    --elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --x: 0px;
    --y: 0px;
    --t: rgba(255, 255, 255, 0.001);
    --btn-lightest: #80d4e3;
    --btn-light: #059fb5;
    --btn-dark: #047a8e;
    --btn-darkest: #035668;
}

.cta-container,
.btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
}

.cta-inner,
.btn-wrapper {
    display: inline-block;
    position: relative;
    pointer-events: all;
    cursor: pointer;
}

.cta-inner:hover:active::before,
.btn-wrapper:hover:active::before {
    background-size: 35% 60%, 100% 100%, 100%;
}

.cta-inner:hover::before,
.btn-wrapper:hover::before {
    filter: blur(2px) brightness(1);
    background-size: 0px 0px, 100% 100%, 100%;
    transition: transform 0.5s var(--elastic), background-size 0.25s ease-in-out;
}

.cta-inner::before,
.btn-wrapper::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 0;
    left: 0;
    filter: blur(2px) brightness(0);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, var(--t) 20%),
        radial-gradient(circle at center, var(--btn-lightest), var(--btn-light) 5%, var(--btn-dark) 30%, var(--btn-darkest) 50%),
        var(--btn-darkest);
    background-size: 0px 0px, 0px 0px, 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: 1;
    mix-blend-mode: lighten;
    z-index: 2;
    transition: transform 0.5s var(--elastic), background-size 0.25s ease-in-out, filter 0.5s ease-in-out;
    transform: translate(calc(var(--x) - 50%), calc(var(--y) - 50%));
    pointer-events: none;
}

.btn-cta-header,
.btn-primary,
.btn-secondary {
    position: relative;
    z-index: 2;
    transition: text-shadow 500ms var(--elastic), transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-inner:hover .btn-cta-header,
.btn-wrapper:hover .btn-primary,
.btn-wrapper:hover .btn-secondary {
    --shadow: max(calc((var(--width) / 2 - var(--x)) / 8 + ((var(--height) / 2 - var(--y)) / 3)),
            calc(((var(--width) / 2 - var(--x)) / 8 + ((var(--height) / 2 - var(--y)) / 3)) * -1),
            5px);
    text-shadow: clamp(-6px, calc((var(--width) / 2 - var(--x)) / 12), 6px) clamp(-4px, calc((var(--height) / 2 - var(--y)) / 16), 4px) var(--shadow) rgba(0, 0, 0, 0.3);
}

.cta-blob,
.btn-blob {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #fff;
    filter: blur(12px) contrast(25);
    z-index: 1;
}

.cta-blob::before,
.cta-blob::after,
.btn-blob::before,
.btn-blob::after {
    content: "";
    position: absolute;
    background: #000;
}

.cta-blob::before,
.btn-blob::before {
    width: 15%;
    height: auto;
    z-index: 2;
    transition: transform 750ms var(--elastic), box-shadow 500ms var(--elastic);
    aspect-ratio: 1/1;
    box-shadow: 0 0 0 0.75rem #fff, 0 -8rem 0 -2rem #fff, 0 8rem 0 -2rem #fff;
    left: 0;
    top: 0;
    border-radius: 100%;
    transform: translate(clamp(10%, calc(var(--x) - 50%), 550%), clamp(1rem, calc(var(--y) - 50%), 5rem)) scale(0);
}

.cta-blob::after,
.btn-blob::after {
    width: calc(100% - 4rem);
    height: calc(100% - 4rem);
    top: 2rem;
    left: 2rem;
    border-radius: 5rem;
    box-shadow: 0 0 0 8rem #fff;
}

.cta-inner:hover .cta-blob::before,
.btn-wrapper:hover .btn-blob::before {
    transition: transform 500ms var(--elastic), box-shadow 1000ms var(--elastic);
    transform: translate(clamp(5%, calc(var(--x) - 50%), 550%), clamp(1rem, calc(var(--y) - 50%), 5rem)) scale(1.25);
    box-shadow: 0 0 0 0.05rem #fff, 0 -6rem 0 1.25rem #fff, 0 6rem 0 1.25rem #fff;
}

.cta-inner:active:hover .cta-blob::before,
.btn-wrapper:active:hover .btn-blob::before {
    box-shadow: 0 0 0 0rem #fff, 0 -5rem 0 1.75rem #fff, 0 5rem 0 1.75rem #fff;
    transition: transform 500ms var(--elastic), box-shadow 500ms var(--elastic);
    transform: translate(clamp(5%, calc(var(--x) - 50%), 550%), clamp(calc(50% + 1rem), calc(var(--y) - 50%), calc(50% + 1.5rem))) scale(1);
}

/* Variantes de color para diferentes botones */
.btn-wrapper:nth-of-type(2) {
    --btn-lightest: #ffd986;
    --btn-light: #efab0b;
    --btn-dark: #e89b09;
    --btn-darkest: #c68207;
}

/* Responsive - desactivar efecto en móvil para mejor performance */
@media (max-width: 768px) {

    .cta-inner::before,
    .btn-wrapper::before,
    .cta-blob,
    .btn-blob {
        display: none;
    }

    .cta-inner:hover .btn-cta-header,
    .btn-wrapper:hover .btn-primary,
    .btn-wrapper:hover .btn-secondary {
        text-shadow: none;
    }
}

/* ========================== BOTÓN DE ENVÍO PERSONALIZADO ========================== */
.btn-send-custom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-dark);
    background: var(--color-bg);
    border: none;
    font-family: inherit;
    padding: 0;
    border-radius: 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.4s ease-out, box-shadow 0.3s ease;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.btn-send-custom:hover {
    transform: translateY(-2px);
    box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.15), -7px -7px 15px rgba(255, 255, 255, 0.9);
}

.btn-send-custom:hover .icon svg {
    transform: translate(-3px, 3px);
}

.btn-send-custom .text {
    padding: 1rem 1.5rem;
    flex-grow: 1;
    text-align: center;
}

.btn-send-custom .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--color-accent-yellow);
    color: var(--color-dark);
    margin: 0.3rem;
}

.btn-send-custom svg {
    fill: currentColor;
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.4s ease-out;
}

/* Animación de envío */
@keyframes flyAway {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-10px, 10px);
    }

    40% {
        transform: translate(50vw, -50vh) scale(0.5);
        opacity: 1;
    }

    41% {
        transform: translate(-50vw, 50vh) scale(0.5);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

.btn-send-custom.sending .icon svg {
    animation: flyAway 1.5s ease-in-out forwards;
}

/* ========================== MENU DRAW EFFECT ========================== */
/* ========================== MENU DRAW EFFECT (FIXED) ========================== */
.nav-link.text-draw {
    display: flex;
    /* CAMBIO: Usar flex en lugar de inline-block */
    align-items: center;
    /* Centrado vertical perfecto */
    justify-content: center;
    /* Centrado horizontal */
    text-decoration: none;
    margin: 0;
    padding: 0.75rem 1.25rem;
}

.nav-link.text-draw:hover {
    color: var(--color-primary);
}

/* Restaurar el efecto de subrayado estándar */
.nav-link.text-draw::after {
    display: block;
}

.text-draw__p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    /* display: inline;  <-- Puedes quitar esto si usas flex en el padre, o dejarlo, no afecta tanto */
}

/* Ocultar la caja de animación JS que no funciona */
.text-draw__box {
    display: none;
}

.text-draw__box-svg {
    display: none;
}

/* ========================== HERO SLIDER SECTION ========================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    color: var(--color-white);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--color-dark);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--color-white);
}

.hero-title .highlight {
    color: var(--color-accent-yellow);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-benefits {
    list-style: none;
    margin-bottom: 2.5rem;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: var(--color-white);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        align-items: flex-start;
    }

    .hero-cta {
        width: 100%;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ========================== TESTIMONIOS – carrusel de clientes ========================== */
.testimonials-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 86, 150, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 171, 11, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* Header de la sección */
.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.testimonials-header .section-subtitle {
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--color-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contenedor del carrusel */
.testimonials-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.testimonials-carousel {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    position: relative;
}

/* Slides de testimonios */
.testimonial-slide {
    min-width: 100%;
    background: white;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 4rem);
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-slide.prev {
    opacity: 0;
    transform: translateX(-100%);
}

/* Estrellas */
.testimonial-stars {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-stars .star {
    width: 24px;
    height: 24px;
    color: var(--color-accent-yellow);
}

/* Contenido del testimonio */
.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-dark);
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
}

/* Autor del testimonio */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--color-primary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.author-position {
    font-size: 0.95rem;
    color: var(--color-gray);
}

/* Flechas de navegación */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.carousel-arrow-prev {
    left: 0;
}

.carousel-arrow-next {
    right: 0;
}

/* Indicadores (dots) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--color-accent-orange);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 32px;
    border-radius: 6px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .testimonials-carousel-container {
        padding: 0 50px;
    }

    .testimonial-slide {
        padding: 2.5rem 2rem;
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 0;
    }

    .testimonials-header {
        margin-bottom: 3rem;
    }

    .testimonials-header .section-title {
        font-size: 2rem;
    }

    .testimonials-carousel-container {
        padding: 0 20px;
    }

    .testimonial-slide {
        padding: 2rem 1.5rem;
        width: calc(100% - 2rem);
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-stars .star {
        width: 20px;
        height: 20px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-position {
        font-size: 0.85rem;
    }

    /* Ocultar flechas en móvil, solo usar dots */
    .carousel-arrow {
        display: none;
    }

    .carousel-dots {
        margin-top: 2rem;
    }
}

/* CSS basico para errores del formulario de contacto */

.field-error {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #e15f3a;
}

.input-error {
    border-color: #e15f3a !important;
    box-shadow: 0 0 0 1px rgba(225, 95, 58, 0.2);
}

/* ========================== BARRA FLOTANTE REDES SOCIALES ========================== */
.social-floating-bar {
    position: fixed;
    top: 50%;
    right: 1rem;
    /* Ubicación a la derecha */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1200;
    /* Por encima de la mayoría de elementos */
}

.social-floating-bar a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    /* Azul corporativo */
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.social-floating-bar a:hover {
    transform: translateX(-5px) scale(1.1);
    /* Efecto de movimiento hacia la izquierda */
    background-color: var(--color-accent-yellow);
    /* Amarillo al hover */
}

.social-floating-bar img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    /* Asegura que los iconos sean blancos si son negros */
}