/* Variables CSS */
:root {
    /* Paleta de marca */
    --brand-ink: #10232a;
    --brand-mint: #1ce080;
    --brand-blue: #0802ea;
    --brand-purple: #5917d2;
    --brand-slate: #767d89;
    --bg: #ffffff;
    --bg-soft: #f7fafc;

    /* Gradiente firma */
    --gradient-brand: linear-gradient(135deg,
            #0802ea 0%,
            #5917d2 50%,
            #1ce080 100%);
    --gradient-hero: linear-gradient(135deg, #0802ea 0%, #5917d2 100%);

    /* Tipografía */
    --font-heading: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;

    /* Sombras */
    --shadow-card: 0 10px 30px rgba(16, 35, 42, 0.08);
    --shadow-button: 0 4px 14px rgba(16, 35, 42, 0.12);
    --shadow-button-hover: 0 6px 20px rgba(16, 35, 42, 0.15);

    /* Transiciones */
    --transition-base: all 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-medium: all 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-fast: all 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-hover: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--brand-ink);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
    position: relative;
}

h2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 80px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--brand-ink);
    font-weight: 400;
}

.text-lead {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.9;
}

.text-secondary {
    color: var(--brand-slate);
    font-weight: 400;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--brand-purple);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--brand-mint);
    color: var(--brand-ink);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: #16c973;
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover);
}

.btn-primary:focus {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    color: var(--brand-ink);
    border: 2px solid var(--brand-ink);
}

.btn-secondary:hover {
    background: rgba(16, 35, 42, 0.04);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--brand-ink);
    box-shadow: var(--shadow-button);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover);
}

.btn-gradient {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gradient:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: var(--transition-base);
    z-index: -1;
}

.btn-gradient:hover:before {
    opacity: 1;
}

.chip {
    display: inline-flex;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg-soft);
    border: 1px solid rgba(16, 35, 42, 0.1);
}

.chip-gradient {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    background: var(--bg);
}

.chip-gradient:before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-brand);
    border-radius: 50px;
    z-index: -1;
}

.card {
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-card);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 35, 42, 0.12);
}

.card-img {
    width: 100%;
    height: 378px;
    object-fit: cover;
}

.card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border-radius: 12px;
    transition: var(--transition-base);
}

.card:hover .card-icon {
    transform: translateY(-6px);
}

/* Animaciones */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-up {
    animation: fadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in {
    opacity: 0;
    transition: opacity 500ms ease,
        transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.appear {
    opacity: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(247, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition-base);
    box-shadow: 0 2px 10px rgba(16, 35, 42, 0.05);
}

.navbar.scrolled {
    padding: 0.75rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    height: 42px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--brand-ink);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a:after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: var(--transition-base);
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    border-color: var(--brand-green);
}

.lang-btn.active {
    border-color: var(--brand-green);
    background-color: rgba(80, 200, 120, 0.1);
}

.lang-btn img {
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-ink);
}

/* Hero Section */
.hero {
    padding: 15rem 0 10rem;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay para mejorar legibilidad */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 2, 234, 0.712);
    /* Overlay azul semitransparente */
    opacity: 0.5;
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    position: relative;
    z-index: 3;
}

.hero-text {
    flex: 1;
    text-align: center;
    max-width: 1500px;
    animation: fadeUp 800ms 100ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.hero-text h1 {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
}

.hero-text .text-lead {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    min-width: 200px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    justify-content: center;
}

.hero-badges .chip {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

/* Value Propositions */
.value-props {
    background: var(--bg);
}

.props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.prop-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition-base);
}

.prop-card:hover {
    background: var(--bg-soft);
}

.prop-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border-radius: 16px;
}

/* Services */
.services {
    background: var(--bg-soft);
}

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

/* Success Cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.case-kpi {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-mint);
    margin: 1rem 0;
}

/* Research */
.research {
    background: var(--bg-soft);
}

.research-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.research-text {
    flex: 1;
}

.research-image {
    flex: 1;
}

.research-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--bg);
    box-shadow: var(--shadow-card);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Enhanced Team Interactivity */
.clickable-leader {
    cursor: pointer;
    transition: var(--transition-hover);
    position: relative;
    overflow: visible;
    will-change: transform;
}

.clickable-leader:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(16, 35, 42, 0.15);
}

.team-photo {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    /* Force hardware acceleration */
    will-change: transform;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(8, 2, 234, 0.9) 0%,
            rgba(89, 23, 210, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
    color: white;
    font-weight: 600;
    border-radius: 50%;
    will-change: opacity;
}

.hover-overlay i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hover-overlay span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clickable-leader:hover .hover-overlay {
    opacity: 1;
}

.clickable-leader:hover .team-photo img {
    transform: scale(1.1);
}

/* Premium Modal */
.leader-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.leader-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 35, 42, 0.8);
    backdrop-filter: blur(10px);
    animation: backdropFadeIn 0.4s ease-out;
}

.modal-content {
    position: relative;
    margin: auto;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(16, 35, 42, 0.3);
    animation: modalSlideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-close i {
    font-size: 1.2rem;
    color: var(--brand-ink);
}

/* Modal Body Styles */
.modal-body {
    padding: 3rem;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.modal-header::before {
    content: "";
    position: absolute;
    top: -3rem;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-brand);
}

.modal-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(16, 35, 42, 0.2);
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-name {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 1.2rem;
    color: var(--brand-slate);
    font-weight: 500;
    margin-bottom: 1rem;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--brand-slate);
    font-style: italic;
    margin-bottom: 2rem;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--brand-ink);
    margin-bottom: 2.5rem;
    text-align: justify;
}

.expertise-section {
    margin-bottom: 2.5rem;
}

.expertise-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--brand-ink);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(28, 224, 128, 0.08);
    border-radius: 12px;
    border-left: 3px solid var(--brand-mint);
    transition: var(--transition-base);
}

.expertise-item:hover {
    background: rgba(28, 224, 128, 0.12);
    transform: translateX(5px);
}

.expertise-item i {
    color: var(--brand-blue);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.expertise-item span {
    font-weight: 500;
    color: var(--brand-ink);
}

.achievements-section {
    background: linear-gradient(135deg,
            rgba(8, 2, 234, 0.04) 0%,
            rgba(28, 224, 128, 0.04) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--brand-blue);
}

.achievements-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--brand-ink);
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements-list li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--brand-ink);
    line-height: 1.6;
    border-bottom: 1px solid rgba(28, 224, 128, 0.1);
}

.achievements-list li:last-child {
    border-bottom: none;
}

.achievements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--brand-mint);
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-linkedin {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(28, 224, 128, 0.1);
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg,
            var(--brand-blue) 0%,
            var(--brand-purple) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-base);
    box-shadow: var(--shadow-button);
    font-size: 1.1rem;
}

.linkedin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button-hover);
    color: white;
}

.linkedin-btn i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Animations */
@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }

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

.team-social {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

/* Integrations */
.integrations {
    background: var(--bg-soft);
    padding: 4rem 0;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem 2.5rem;
    justify-items: center;
    align-items: center;
    opacity: 0.7;
    padding: 1rem 0;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    max-width: 160px;
    width: 100%;
    padding: 0.5rem 1rem;
    background: none;
}

.logo-item img {
    max-height: 48px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.2) contrast(1.1);
    transition: filter 0.2s;
}

.logo-item img:hover {
    filter: grayscale(0) contrast(1.2) drop-shadow(0 2px 8px rgba(8, 2, 234, 0.08));
}

/* CTA Section */
.cta-section {
    background: var(--gradient-brand);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section h2:after {
    background: white;
    left: 50%;
    transform: translateX(-50%);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Contact */
.contact-container {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(16, 35, 42, 0.15);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(8, 2, 234, 0.15);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-check input {
    margin-top: 0.25rem;
}

/* Footer */
.footer {
    background: var(--brand-ink);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 42px;
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-brand);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--brand-mint);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: var(--transition-base);
    color: white;
}

.social-icon:hover {
    background: var(--brand-blue);
    transform: translateY(-2px);
    color: white;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    gap: 1rem;
}

.whatsapp-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-button);
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        gap: 3rem;
    }

    .research-content {
        gap: 3rem;
    }
}

@media (max-width: 1024px) {

    .hero-content,
    .research-content {
        flex-direction: column;
    }

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

    .hero-cta,
    .hero-badges {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    /* Ocultar solo botones específicos de navegación en móvil, NO el botón del formulario */
    .sticky-cta,
    .nav-cta .btn-primary,
    .hero-cta .btn-primary,
    .cta-section .btn-gradient {
        display: none !important;
    }

    /* Asegurar que el botón del formulario se mantenga visible y responsive */
    .contact-form .btn-primary {
        display: inline-flex !important;
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        margin-top: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .language-switcher {
        gap: 0.3rem;
    }

    .lang-btn {
        padding: 2px;
    }

    .lang-btn img {
        width: 16px;
        height: 12px;
    }

    .hero {
        padding: 9rem 0 4rem;
        min-height: 80vh;
    }

    /* Ajustar overlay en móvil para mejor legibilidad */
    .hero-overlay {
        background: rgba(8, 2, 234, 0.8);
    }

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

    .hero-badges {
        justify-content: center;
    }

    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
    }

    .sticky-cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .whatsapp-btn {
        width: 48px;
        height: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }

    .section-header h2:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Mejorar formulario de contacto en móviles */
    .contact-form .btn-primary {
        width: 100% !important;
        padding: 1.2rem 2rem !important;
        font-size: 1.1rem !important;
        margin-top: 1.5rem !important;
        border-radius: 12px !important;
    }

    .form-control {
        padding: 1rem !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
    }

    .form-group {
        margin-bottom: 1.8rem !important;
    }

    .form-check {
        margin-bottom: 2rem !important;
    }

    /* PRUEBA: Mostrar video en dispositivos móviles para evaluar rendimiento y estética */
    /* Comentamos temporalmente la regla que oculta el video */
    /* .hero-video {
        display: none;
    } */

    /* Mantener video visible pero optimizado para móviles */
    .hero-video {
        display: block;
        object-fit: cover;
        /* Asegurar que el video cubra toda la pantalla correctamente */
    }

    .hero {
        /* Mantener gradiente como fallback si el video no carga */
        background: var(--gradient-hero);
    }

    .hero-overlay {
        /* Overlay más fuerte en móvil para mantener legibilidad del texto sobre video */
        background: rgba(8, 2, 234, 0.6);
        /* Incrementamos la opacidad para mejor contraste en pantallas pequeñas */
    }

    .props-grid,
    .services-grid,
    .cases-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        max-height: 95vh;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }

    .modal-name {
        font-size: 1.8rem;
    }

    .modal-avatar {
        width: 100px;
        height: 100px;
    }

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

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
    }

    .card {
        max-width: 400px;
        margin: 0 auto;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .sticky-cta {
        flex-direction: column;
        bottom: 1rem;
        right: 1rem;
    }

    .sticky-cta .btn {
        width: auto;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 8rem 0 3rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .text-lead {
        font-size: 1.1rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
}