/* --- Global Settings & Variables --- */
:root {
    /* Palette: "Tech" - Bold, Dynamic, Premium */
    --primary-color: #41c7cb;
    --secondary-color: #e23d3d;
    --accent-color-danger: #e23d3d;
    --dark-background: #1A1A1D;
    --content-background: #25292D;
    --headline-color: #FFFFFF;
    --text-color-light: #F0F3F5;
    --text-color-muted: #CCCCCC;
    --border-color: #3A3F44;
    /* Fonts */
    --font-headline: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Layout */
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius: 12px;
    /* Gradients */
    --gradient-primary: linear-gradient(45deg, #41c7cb, #2a9d8f);
    --gradient-secondary: linear-gradient(45deg, #e23d3d, #b91c1c);
    --gradient-funnel-1: linear-gradient(to bottom, #41c7cb, #3aa3a6);
    --gradient-funnel-2: linear-gradient(to bottom, #6d8282, #556666);
    --gradient-funnel-3: linear-gradient(to bottom, #8f5d5d, #b94747);
    --gradient-funnel-4: linear-gradient(to bottom, #b94747, #e23d3d);
}

/* --- Base & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: auto;
}

html a, html button {
    cursor: pointer;
}

body {
    font-family: var(--font-body);
    color: var(--text-color-light);
    background-color: var(--dark-background);
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 800;
    color: var(--headline-color);
    line-height: 1.25;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 24px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-bottom: 12px; color: var(--headline-color); }
h4 { font-size: 1.1rem; margin-bottom: 16px; color: var(--headline-color); opacity: 0.95; }

.eyebrow {
    display: block;
    font-family: var(--font-headline);
    text-transform: uppercase;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1.5px;
}

.orbital-section .eyebrow,
.services-cards-section .services-header .eyebrow,
.contact-section .contact-header .eyebrow,
.crm-pauta-section .eyebrow,
.process-section .eyebrow,
.about-section .eyebrow {
    text-align: center;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-color-muted);
    font-size: 1rem;
    max-width: 65ch;
}

.section-subtitle {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 64px;
    font-size: 1.1rem;
    color: var(--text-color-muted);
    line-height: 1.8;
}

.services-header .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.desktop-only {
    display: inline-block;
}

/* --- Interactive Cursor --- */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: exclusion;
    opacity: 0.7;
}

.cursor-follower.hover {
    width: 50px;
    height: 50px;
    opacity: 1;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   HEADER SECTION - FINAL & CORRECTED
   ============================================
*/
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.main-header.header-transparent {
    background-color: transparent;
}

.main-header.header-scrolled {
    background-color: rgba(26, 26, 29, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    border-bottom-color: var(--border-color);
}

.main-header > .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Regla clave para la alineación vertical perfecta */
    height: var(--header-height);
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 32px; /* Controlamos la altura del logo aquí */
    width: auto;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: 700;
    position: relative;
    padding: 8px 4px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- CTA Buttons --- */
.cta-button {
    font-family: var(--font-headline);
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

.cta-button.full-width {
    width: 100%;
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.primary-cta {
    background-image: var(--gradient-primary);
    color: var(--dark-background);
    box-shadow: 0 4px 20px rgba(65, 199, 203, 0.2);
}

.primary-cta:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(65, 199, 203, 0.3);
}

.secondary-cta {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.secondary-cta:hover {
    background-color: var(--secondary-color);
    color: var(--headline-color);
}

.whatsapp-cta {
    background-color: #25D366;
    color: var(--headline-color);
    padding: 10px 20px;
}

.whatsapp-cta i {
    font-size: 1.4rem;
}

.whatsapp-cta:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
}

.large-cta {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--dark-background);
    color: var(--text-color-light);
    padding: calc(var(--header-height) + 80px) 0 120px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(37, 41, 45, 0.2) 0%, var(--dark-background) 65%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.hero-content {
    text-align: left;
}

.hero-title {
    color: var(--headline-color);
    margin-bottom: 24px;
}

.hero-content .subtitle {
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: var(--text-color-light);
    max-width: 50ch;
}

.hero-cta-group {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.hero-mascot {
    max-width: 90%;
    height: auto;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0px 15px 35px rgba(0, 0, 0, 0.4));
}

.hero-icons-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 4;
    animation: spin-orbit 40s linear infinite;
}

@keyframes spin-orbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes counter-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-icons-orbit,
    .orbital-growth-icon,
    .orbital-item-content,
    .hub-icon i,
    .falling-pauta-icons i {
        animation: none !important;
    }
}

.icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    margin-top: -25px;
    transform: rotate(calc(var(--i) * 60deg)) translateY(-250px);
}

.orbital-growth-icon {
    width: 100%;
    height: 100%;
    background-color: rgba(37, 41, 45, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    animation: counter-spin 40s linear infinite;
}

.orbital-growth-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}


/* --- Language Switcher --- */
.language-switch-wrapper {
    margin-bottom: 24px;
}

.language-switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 38px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.language-switch-toggle {
    opacity: 0;
    width: 0;
    height: 0;
}

.language-switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-background);
    border: 1px solid var(--border-color);
    border-radius: 34px;
    transition: .4s;
}

.language-switch-slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    left: 4px;
    bottom: 3px;
    background-color: var(--primary-color);
    transition: .4s;
    border-radius: 50%;
}

.language-switch-toggle:checked + .language-switch-slider:before {
    transform: translateX(42px);
}

.language-switch-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.4s ease;
}

.lang-es {
    left: 12px;
    color: var(--headline-color);
}

.lang-en {
    right: 12px;
    color: var(--text-color-muted);
}

.language-switch-toggle:checked ~ .lang-es {
    color: var(--text-color-muted);
}

.language-switch-toggle:checked ~ .lang-en {
    color: var(--headline-color);
}


/* --- Orbital Design Section --- */
.orbital-section {
    padding: 120px 0;
    background-color: var(--content-background);
    overflow: hidden;
}

.orbital-container {
    --size: 600px;
    --radius: 275px;
    position: relative;
    width: var(--size);
    height: var(--size);
    margin: 80px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbital-hub {
    width: 200px;
    height: 200px;
    background-image: var(--gradient-secondary);
    border-radius: 50%;
    color: var(--headline-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(226, 61, 61, 0.2);
    z-index: 10;
}

.orbital-hub h3 {
    color: var(--headline-color);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.hub-icon {
    margin-bottom: 12px;
}

.hub-icon i {
    font-size: 3rem;
    color: var(--headline-color);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    50% {
        transform: scale(1.1);
    }
}

@keyframes breathe-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.orbital-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1));
}

.orbital-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: breathe-float 6s ease-in-out infinite;
}

.orbital-container > .orbital-item:nth-child(2) .orbital-item-content {
    animation-delay: 0s;
}

.orbital-container > .orbital-item:nth-child(3) .orbital-item-content {
    animation-delay: -0.75s;
}

.orbital-container > .orbital-item:nth-child(4) .orbital-item-content {
    animation-delay: -1.5s;
}

.orbital-container > .orbital-item:nth-child(5) .orbital-item-content {
    animation-delay: -2.25s;
}

.orbital-container > .orbital-item:nth-child(6) .orbital-item-content {
    animation-delay: -3s;
}

.orbital-container > .orbital-item:nth-child(7) .orbital-item-content {
    animation-delay: -3.75s;
}

.orbital-container > .orbital-item:nth-child(8) .orbital-item-content {
    animation-delay: -4.5s;
}

.orbital-container > .orbital-item:nth-child(9) .orbital-item-content {
    animation-delay: -5.25s;
}

.orbital-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color-light);
    margin-top: 8px;
}

.item-icon {
    width: 64px;
    height: 64px;
    background: var(--dark-background);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.item-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.item-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

/* --- Services Card Section --- */
.services-cards-section {
    padding: 120px 0;
    background: var(--dark-background);
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: flex-start;
}

.services-header h2, .services-header .eyebrow, .services-header .section-subtitle {
    text-align: left;
}

.services-header h2 {
    margin-bottom: 16px;
}

.services-header .section-subtitle {
    margin-bottom: 0;
    max-width: 45ch;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--content-background);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:nth-child(2n) {
    transform: translateY(60px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(226, 61, 61, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
    z-index: 0;
    border-radius: 50%;
}

.service-card:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-color);
}

.service-card:nth-child(2n):hover {
    transform: translateY(52px);
}

.service-card .service-icon {
    margin-bottom: 20px;
}

.service-card .service-icon i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.service-card h3 {
    color: var(--headline-color);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.services-cta-container {
    grid-column: 1 / -1;
    margin-top: 80px;
    background: var(--content-background);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.services-cta-container .cta-content {
    flex-grow: 1;
}

.services-cta-container h3 {
    margin-bottom: 8px;
    color: var(--headline-color);
}

.services-cta-container p {
    margin-bottom: 0;
    max-width: 60ch;
    color: var(--text-color-muted);
}

.services-cta-container .cta-button {
    flex-shrink: 0;
}


/* --- Process Section --- */
.process-section {
    padding: 120px 0;
    background-color: var(--content-background);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 64px;
    position: relative;
}

.process-card {
    border: 1px solid var(--border-color);
    background-color: var(--dark-background);
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.process-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 70px;
    right: -24px;
    width: 1px;
    height: 60%;
    background-image: linear-gradient(to bottom, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
    background-size: 1px 10px;
}

.process-card h3 {
    margin: 24px 0 16px;
    font-size: 1.4rem;
}

.process-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.process-step-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-headline);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
    line-height: 1;
}

.process-card > * {
    position: relative;
    z-index: 1;
}

/* --- CRM + Pauta Section --- */
.crm-pauta-section {
    padding: 120px 0;
    background-color: var(--dark-background);
    color: var(--text-color-muted);
    overflow: hidden;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 24px auto 64px;
    border-radius: 4px;
}

.crm-pauta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.crm-pauta-features h3 {
    color: var(--headline-color);
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.crm-pauta-features p {
    color: var(--text-color-muted);
    margin-bottom: 32px;
    max-width: 55ch;
}

.crm-keywords-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.crm-keyword-tag {
    display: flex;
    align-items: center;
    background-color: var(--content-background);
    color: var(--text-color-muted);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.crm-keyword-tag:hover {
    background-color: var(--primary-color);
    color: var(--dark-background);
    border-color: var(--primary-color);
}

.crm-keyword-tag i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: color 0.2s;
}

.crm-keyword-tag:hover i {
    color: var(--dark-background);
}

.funnel-pauta-container {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.falling-pauta-icons {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 160px;
    pointer-events: none;
}

.falling-pauta-icons i {
    position: absolute;
    color: #888;
    opacity: 0.8;
}

@keyframes fall-and-fade-pauta {
    from {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    20%, 80% {
        opacity: 1;
    }
    to {
        transform: translateY(160px) rotate(360deg);
        opacity: 0;
    }
}

.funnel-pauta-stack {
    width: 100%;
    max-width: 448px;
    padding-top: 64px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.funnel-pauta-stage {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-headline);
    box-shadow: 0 10px 25px -3px rgb(0 0 0 / 0.5);
    transition: transform 0.3s ease, filter 0.3s ease;
    margin: 0 auto;
}

.funnel-pauta-stage:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.funnel-pauta-stage span {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.funnel-stage-1 {
    width: 100%;
    background: var(--gradient-funnel-1);
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
}

.funnel-stage-2 {
    width: 88%;
    background: var(--gradient-funnel-2);
    clip-path: polygon(0% 0%, 100% 0%, 88% 100%, 12% 100%);
}

.funnel-stage-3 {
    width: 76%;
    background: var(--gradient-funnel-3);
    clip-path: polygon(0% 0%, 100% 0%, 86% 100%, 14% 100%);
}

.funnel-stage-4 {
    width: 64%;
    background: var(--gradient-funnel-4);
    clip-path: polygon(0% 0%, 100% 0%, 84% 100%, 16% 100%);
}

/* --- About Section --- */
.about-section {
    padding: 120px 0;
    background-color: var(--content-background);
}

.about-grid {
    display: grid;
    justify-items: center;
}

.about-content {
    z-index: 2;
    position: relative;
    text-align: center;
    max-width: 750px;
}

.about-content p {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.about-content .cta-button {
    margin-top: 32px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 120px 0;
    background-color: var(--dark-background);
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.contact-header {
    text-align: center;
}

.contact-header h2 {
    text-align: center;
}

.contact-header .section-subtitle {
    text-align: center;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-info-block {
    background-color: var(--content-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

.contact-info-block::before,
.contact-info-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--content-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-info-block::before {
    z-index: -1;
    transform: translate(6px, 6px);
}

.contact-info-block::after {
    z-index: -2;
    transform: translate(12px, 12px);
}

.contact-info-block:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.contact-info-block:hover::before {
    transform: rotate(2deg) translate(0, 0);
}

.contact-info-block:hover::after {
    transform: rotate(4deg) translate(0, 0);
}

.contact-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-details-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-details-list strong {
    display: block;
    color: var(--headline-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-details-list span {
    color: var(--text-color-muted);
    font-size: 0.95rem;
}

.contact-info-cta {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.cta-bajada {
    font-family: var(--font-headline);
    font-weight: 700;
    color: var(--headline-color);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.form-container {
    max-width: 100%;
    margin: 0;
    position: relative;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    transition: opacity 0.5s ease;
}

.form-group {
    margin-bottom: 0;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--content-background);
    -webkit-appearance: none;
    appearance: none;
    color: var(--text-color-light);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23F0F3F5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-color-muted);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(65, 199, 203, 0.25);
}

.form-group input.error, .form-group select.error {
    border-color: var(--accent-color-danger);
}

.form-error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
    font-size: 0.95rem;
}

.form-error-message.visible {
    display: block;
}

.form-error-message.validation-error {
    background-color: rgba(226, 61, 61, 0.1);
    color: var(--accent-color-danger);
}

.form-error-message.server-error {
    background-color: rgba(255, 167, 38, 0.1);
    color: #FFA726;
}

.form-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 29, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    border-radius: var(--border-radius);
}

.form-status-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.status-content {
    background-color: var(--content-background);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s;
    opacity: 0;
}

.form-status-overlay.visible .status-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.status-content i {
    color: var(--primary-color);
    font-size: 4rem;
    margin-bottom: 24px;
}

.status-content h3 {
    color: var(--headline-color);
}

.status-content p {
    color: var(--text-color-muted);
    max-width: 350px;
    margin: 8px auto 0;
}

/* --- Footer --- */
.main-footer-section {
    background-color: var(--dark-background);
    color: var(--text-color-muted);
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 64px;
}

.footer-col-main .logo {
    color: var(--headline-color);
}

.footer-tagline {
    margin: 24px 0 32px;
    color: var(--text-color-muted);
    max-width: 350px;
    line-height: 1.8;
}

.footer-social h4 {
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-col-links h4, .footer-col-contact h4 {
    color: var(--headline-color);
    margin-bottom: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    text-decoration: none;
    color: var(--text-color-muted);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links-list a.disabled {
    color: var(--text-color-muted);
    opacity: 0.5;
    pointer-events: none;
}

.footer-links-list a.disabled:hover {
    color: var(--text-color-muted);
    padding-left: 0;
}

.footer-col-contact .contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-col-contact .contact-info-item {
    font-size: 0.95rem;
    align-items: flex-start;
}

.footer-col-contact .contact-info-item i {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--headline-color);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-color: var(--content-background);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a i {
    font-size: 1.25rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom-bar {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(176, 176, 176, 0.5);
    margin: 0;
}

/* --- Mobile Menu & Responsive Styles --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    z-index: 1001;
    width: 30px;
    height: 22px;
    position: relative;
}

.hamburger, .hamburger::before, .hamburger::after {
    content: '';
    display: block;
    background-color: var(--headline-color);
    height: 3px;
    width: 100%;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 0;
}

.hamburger {
    top: 10px;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    top: 10px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/**************************************************/
/* */
/* ESTILOS RESPONSIVE                     */
/* */
/**************************************************/

@media (max-width: 992px) {
    /* Ocultamos la navegación de escritorio y mostramos el menú hamburguesa */
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-section {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 80px;
        overflow: visible;
    }
    .hero-layout, .crm-pauta-grid, .about-grid, .services-layout, .process-grid, .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    .process-grid {
        gap: 32px;
    }
    .process-card:not(:last-child)::after {
        display: none;
    }
    .services-header h2, .services-header .eyebrow, .services-header .section-subtitle {
        text-align: center;
    }
    .services-header .section-subtitle {
        margin: 0 auto;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .service-card:nth-child(2n) {
        transform: translateY(0);
    }
    .service-card:nth-child(2n):hover {
        transform: translateY(-8px);
    }
    /* === HERO CORREGIDO PARA TABLET === */
    .hero-content {
        text-align: center;
        order: 1;
    }
    .hero-content .language-switch-wrapper {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content .subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content .hero-cta-group {
        justify-content: center;
    }
    .hero-image-container {
        order: 2;
        min-height: auto;
        margin-top: 40px;
    }
    .hero-mascot {
        margin: 0 auto;
        max-width: 70%;
    }
    .hero-icons-orbit {
        display: none;
    }
    .orbital-container {
        --size: 550px;
        --radius: 250px;
        height: auto;
        min-height: calc(var(--size) + 50px);
    }
    .orbital-item {
        width: 100px;
        height: 100px;
    }
    .orbital-item span {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    .orbital-hub {
        width: 140px;
        height: 140px;
    }
    .orbital-hub h3 {
        font-size: 1.1rem;
    }
    .item-icon {
        width: 50px;
        height: 50px;
    }
    .item-icon i {
        font-size: 1.5rem;
    }
    .crm-pauta-features {
        text-align: center;
    }
    .crm-pauta-features h3, .crm-pauta-features p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .crm-keywords-wrapper {
        justify-content: center;
    }
    .contact-info-block {
        grid-row: 1;
    }
    .form-status-overlay {
        padding: 64px 24px;
    }
    .footer-content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col-main {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-tagline {
        margin-left: auto;
        margin-right: auto;
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body.no-scroll {
        overflow: hidden;
    }

    .desktop-only {
        display: none;
    }

    .cursor-follower {
        display: none;
    }
    html {
        cursor: auto;
    }
    html a, html button {
        cursor: pointer;
    }
    .header-actions .whatsapp-cta {
        padding: 10px 12px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header-actions .whatsapp-cta span {
        display: none;
    }
    .whatsapp-cta i {
        font-size: 1.6rem;
        margin-right: 0;
    }
    .mobile-menu-toggle {
        margin-left: 15px;
    }
    /* === HERO CORREGIDO PARA MÓVIL === */
    .hero-section {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 60px;
    }
    .hero-mascot {
        max-width: 75%;
    }
    .hero-image-container {
        position: relative;
        width: auto;
        margin-top: 20px;
    }
    .main-nav.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    .main-nav.active .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .main-nav.active .nav-links a {
        color: var(--headline-color);
        font-size: 1.8rem;
        font-family: var(--font-headline);
    }
    .main-nav.active .nav-links a:hover {
        color: var(--primary-color);
    }
    .orbital-container {
        --size: 90vw;
        --radius: 40vw;
        height: auto;
        min-height: calc(var(--size) + 50px);
    }
    .orbital-item {
        width: 80px;
        height: 80px;
    }
    .orbital-item span {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    .orbital-hub {
        width: 140px;
        height: 140px;
    }
    .orbital-hub h3 {
        font-size: 1.1rem;
    }
    .item-icon {
        width: 50px;
        height: 50px;
    }
    .item-icon i {
        font-size: 1.5rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .services-cta-container {
        flex-direction: column;
        text-align: center;
        padding: 32px;
        margin-top: 64px;
    }
    .contact-form {
        grid-template-columns: 1fr;
    }
    .footer-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col-links .footer-links-list {
        align-items: center;
    }
    .footer-col-contact .contact-details {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    h2 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .hero-mascot {
        max-width: 80%;
    }
    .orbital-container {
        --size: 80vw;
        --radius: 35vw;
        min-height: calc(var(--size) + 30px);
    }
}