:root {
    --bg-color: #0b0d13;          /* Un negro azulado/carbón premium que refleja mejor la luz */
    --text-main: #f3f4f6;         /* Blanco ligeramente suavizado para reducir la fatiga visual */
    --text-muted: #a1a8b8;        /* Gris más claro para que las descripciones no se pierdan */
    --color-resaltado: #4a7dff; 
    --color-resaltado-hover: #3b6adc;
    
    /* CAPAS CLARAS: Levantamos el brillo de los contenedores */
    --search-bg: rgba(20, 24, 38, 0.85);
    --card-bg: rgba(255, 255, 255, 0.04);     /* El doble de opacidad para separar los bloques */
    --card-border: rgba(255, 255, 255, 0.1);  /* Bordes limpios y definidos */
    
    --nav-pill-bg: rgba(255, 255, 255, 0.05);
    --nav-pill-border: rgba(255, 255, 255, 0.09);
    --nav-pill-hover: rgba(255, 255, 255, 0.14);
    --flag-size: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 50% 100%, rgba(16, 51, 231, 0.45) 0%, rgba(0, 0, 0, 0) 60%),
        radial-gradient(circle at 50% 50%, rgba(10, 34, 170, 0.2) 0%, rgba(0, 0, 0, 0) 50%);
    background-attachment: fixed;
}

section {
    position: relative;
    /* Crea una línea de separación translúcida abajo de cada bloque */
    border-bottom: 1px solid rgba(74, 125, 255, 0.08); 
}

/* Busca o aplica esto a la clase contenedora de tus tarjetas */
.card, [class*="-card"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efecto cuando el usuario pasa el mouse por encima de cualquier tarjeta */
.card:hover, [class*="-card"]:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 125, 255, 0.3); /* Se ilumina con el azul de tu marca */
    box-shadow: 0 12px 30px rgba(74, 125, 255, 0.08); /* Brillo sutil inferior */
}

/* --- CINTILLO SUPERIOR (TOPBAR EXCLUSIVO) --- */
.top-banner {
    background-color: #000000;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    letter-spacing: -0.1px;
}

.top-banner a {
    color: var(--text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.top-banner a:hover {
    opacity: 0.85;
}

/* --- BARRA DE NAVEGACIÓN (HEADER EXCLUSIVO) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background-color: transparent;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-width: 125px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(74, 125, 255, 0.3));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link-plain {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: opacity 0.2s;
}

.nav-link-plain:hover {
    opacity: 0.8;
}

.nav-link-pill {
    background-color: var(--nav-pill-bg);
    border: 1px solid var(--nav-pill-border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}

.nav-link-pill:hover {
    background-color: var(--nav-pill-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-link-pill svg {
    color: var(--text-main);
    opacity: 0.9;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.section-icon {
    display: none;
    gap: 10px;
}

.icon-box {
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: opacity 0.2s;
}

.icon-box:hover {
    opacity: 0.75;
}

.notification-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 5px;
    height: 5px;
    background-color: #ff4a4a;
    border-radius: 50%;
}

/* --- SELECTOR DE IDIOMA INTEGRADO --- */
.language-selector {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    height: var(--flag-size);
    width: var(--flag-size);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.4;
}

.lang-button.active {
    opacity: 1;
    border-color: var(--color-resaltado);
    box-shadow: 0 0 6px rgba(74, 125, 255, 0.4);
}

.lang-button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 20px 120px 20px;
}

/* Letras Gigantes de Fondo */
.hero-bg-title {
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    font-size: clamp(80px, 19vw, 360px);
    font-weight: 800;
    color: #ffffff0f;
    user-select: none;
    pointer-events: none;
    letter-spacing: 0.03em;
    z-index: 1;
    animation: titleReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lf-divider.gb-mx-2.lf-color-scheme--light {
  height: 24px;
  width: 1px;
  background: #ffffff;
}

.slogan {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-resaltado);
    margin-bottom: 18px;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    max-width: 900px;
    line-height: 1.1;
}

.hero-description {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 900px;
}

/* --- BUSCADOR DE DOMINIOS --- */
.domain-box {
    width: 100%;
    max-width: 740px;
    margin-bottom: 90px;
}

.tab-container {
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 4px;
    border-radius: 30px;
    width: max-content;
    margin: 0 auto 22px auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.search-wrapper {
    background-color: var(--search-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 8px 8px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
}

.beast-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

/* Efecto encendido para el Modo Bestia */
.beast-mode-btn.active {
    color: #ff9f43;
    text-shadow: 0 0 10px rgba(255, 159, 67, 0.6);
}

.search-submit-btn {
    background-color: var(--color-resaltado);
    color: var(--text-main);
    border: none;
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 12px;
    transition: background-color 0.2s;
}

.search-submit-btn:hover {
    background-color: var(--color-resaltado-hover);
}

/* NUEVO: Contenedor Avanzado de Resultados (Glassmorphism) */
.search-result-card {
    width: 100%;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    margin-top: 20px;
    padding: 24px;
    text-align: left;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    display: none;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-row:last-child {
    border-bottom: none;
}

.domain-name-display {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.status-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-available {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-taken {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.info-action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.info-action-btn:hover {
    border-color: var(--color-resaltado);
    color: var(--text-main);
}

.details-panel {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 14px;
    margin-top: 8px;
    font-size: 12px;
    color: #a3a3c2;
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.offers-container {
    width: 100%;
    max-width: 900px; /* Ancho por defecto ajustado */
    margin: 20px auto;
    overflow: hidden;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* El carril interior que anima los elementos */
.offers-track {
    display: flex;
    gap: 15px;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.offers-track:hover {
    animation-play-state: paused;
}

/* La animación */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Se desplaza la mitad (suponiendo duplicamos contenido) */
}

.offer-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

.offer-pill strong {
    color: var(--text-main);
}

/* --- SECCIÓN DE SERVICIOS --- */
.services-section {
    max-width: 1200px;
    width: 90%;
    margin: 20px auto 0px auto;
    padding-bottom: 2%;
}

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    margin: auto;
}

.seo-content-section h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    margin: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 125, 255, 0.25);
    box-shadow: 0 10px 30px rgba(74, 125, 255, 0.04);
    background-color: rgba(255, 255, 255, 0.04);
}

.icon-wrapper {
    width: 46px;
    height: 46px;
    background-color: rgba(74, 125, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-resaltado);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.details-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

/* Estilización Refinada de Badges */
.badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-public {
    background: rgba(74, 125, 255, 0.1);
    color: #4a7dff;
    border: 1px solid rgba(74, 125, 255, 0.2);
}
.badge-public::before { background-color: #4a7dff; }

.badge-private {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.badge-private::before { background-color: #ef4444; }

/* Corregido: apuntas a .project-card en lugar de .stat-card */
.project-card:hover .badge {
    transform: scale(1.05);
}

.detail-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 12px;
}

.detail-label {
    display:block;
    font-size:11px;
    color: var(--text-muted);
    margin-bottom:6px;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

.detail-value{
    font-size:13px;
    color: var(--text-main);
    font-weight:600;
}

.portfolio-section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    /* La función min() es la clave aquí */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 32px;
    margin-top: 60px;
}

/* Tarjeta de Proyecto Individual */
.project-card {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Envoltura superior para Números y Badges */
.card-tag-wrapper {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    pointer-events: none;
}

.project-number {
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contenedor Multimedia de la Imagen */
.card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: #09090b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: grayscale(20%) brightness(0.9);
}

/* Contenido de la Tarjeta */
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.01) 100%);
    flex-grow: 1;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}

.card-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- INTERACCIONES HOVER (EFECTOS DE CINE) --- */
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.02);
}

.project-card:hover .card-media img {
    transform: scale(1.04);
    filter: grayscale(0%) brightness(1);
}

.project-card:hover h3 {
    color: var(--color-resaltado);
}

.project-card:hover .project-number {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   --- PREMIUM FOOTER (INTEGRACIÓN CONTINUA Y DESTELLO DE SUELO) ---
   ========================================================================== */

.premium-footer {
    background-color: transparent; /* Permite que el fondo del body fluya sin cortes */
    position: relative;
    width: 100%;
    padding: 80px 40px 40px 40px;
    margin-top: auto; /* Empuja el footer al fondo de la página */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Destello azul que emana orgánicamente desde el piso del footer */
.footer-floor-glow {
    position: absolute;
    bottom: -80px; /* Anclado al borde inferior físico */
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    max-width: 1400px;
    height: 480px;
    background: radial-gradient(
        ellipse at bottom center, 
        rgba(16, 51, 231, 0.45) 0%, 
        rgba(10, 34, 170, 0.2) 35%,
        rgba(16, 51, 231, 0.05) 60%,
        transparent 80%
    );
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.footer-content-wrap {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2; /* Sostiene todo el contenido sobre el destello */
}

/* --- ZONA CTA SUPERIOR --- */
.footer-cta-zone {
    margin-bottom: 80px;
    max-width: 950px;
}

.footer-tag {
    color: var(--color-resaltado);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 24px;
}

.footer-big-heading {
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-main);
}

.text-gradient-muted { color: rgba(255, 255, 255, 0.35); /* Transparencia exacta de tu diseño de referencia */}

/* --- ZONA INTERACTIVA MEDIA --- */
.footer-interactive-zone {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 70px;
    gap: 40px;
}

.footer-contact-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-mini-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.contact-email-link {
    color: var(--text-main);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.contact-email-link:hover { opacity: 0.8; }

.arrow-diagonal {
    font-size: 0.85em;
    color: var(--text-muted);
}

.footer-nav-menu {
    display: flex;
    gap: 32px;
}

.footer-nav-item {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav-item:hover { color: var(--color-resaltado); }

/* --- BRANDING MASIVO INTEGRADO (IX + ESTRELLA + IUXPAGE) --- */
.footer-huge-branding {
    width: 100%;
    margin-bottom: 25px;
    user-select: none;
}

.brand-composite-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 3vw, 35px); /* Espaciado fluido entre el isotipo y el texto */
    width: 100%;
}

.brand-logo-icon {
    height: clamp(50px, 11vw, 130px); /* Escalado proporcional perfecto junto al texto */
    width: auto;
    opacity: 0.95;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.1));
}

.brand-display-text {
    font-size: clamp(55px, 12.5vw, 160px); /* Optimización de tamaño para que quepa todo en línea */
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.8;
    color: #ffffff;
    margin: 0;
    padding: 0;
    transform: scaleY(1.05); /* Estiramiento vertical sutil estilo tipografía SaaS premium */
}

/* --- BASE INFERIOR (METADATOS) --- */
.footer-meta-base {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.meta-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    font-weight: 400;
}

.meta-socials {
    display: flex;
    gap: 20px;
}

.social-item-link {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.social-item-link:hover { color: var(--text-main); }

.seo-content-new {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto 50px auto;
    padding-bottom: 2%;
    text-align: center;
    display: grid;
    justify-content: center;
}

/* ==========================================================================
   --- SECCIÓN DE CLIENTES (MARQUEE DE LOGOS INFINITO) ---
   ========================================================================== */
.clients-section {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 50px auto;
    padding: 0 20px;
    padding-bottom: 2%;
}

.clients-marquee {
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
    /* Difuminado elegante a los costados para que los logos aparezcan e ingresen suavemente */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.clients-track {
    display: flex;
    gap: 40px;
    align-items: center;
    /* Duración de 30 segundos modificable según prefieras la velocidad */
    animation: scrollClients 30s linear infinite;
    white-space: nowrap;
}

/* Detiene el scroll cuando el usuario pasa el mouse por encima para estudiar las marcas */
.clients-marquee:hover .clients-track {
    animation-play-state: paused;
}

.client-logo-box {
    width: 180px;
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 5px 10px;
    transition: border-color 0.3s, background-color 0.3s;
}

.client-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(40%);
    transition: filter 0.3s ease;
}

.client-logo-box:hover {
    border-color: rgba(74, 125, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.04);
}

/* Ilumina el logo al pasar el cursor */
.client-logo-box:hover img {
    filter: grayscale(0%) opacity(90%);
}

@keyframes scrollClients {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


/* ==========================================================================
   --- SECCIÓN DE CONTACTO INTERACTIVA (WHATSAPP + FORM) ---
   ========================================================================== */
.contact-section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 120px auto;
    padding-bottom: 2%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.6fr; /* El formulario toma ligeramente más espacio para comodidad visual */
    gap: 30px;
    align-items: start;
}

.contact-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100%;
    display: grid;
}

.contact-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Tarjeta Destacada de WhatsApp */
.whatsapp-card {
    border-color: rgba(74, 125, 255, 0.15);
    background: linear-gradient(180deg, rgba(74, 125, 255, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
}

.contact-icon-header {
    width: 56px;
    height: 56px;
    background-color: rgba(74, 125, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-resaltado);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px rgba(74, 125, 255, 0.2));
}

.whatsapp-btn {
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, background-color 0.2s, box-shadow 0.3s;
}

.whatsapp-btn:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

/* Estructura del Formulario Premium */
.interactive-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.input-group input,
.input-group select,
.input-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

/* Estilización específica de la flecha del select oscuro */
.input-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Forzar que las opciones hereden fondo oscuro en navegadores */
.input-group select option {
    background-color: #0b0b10;
    color: var(--text-main);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--color-resaltado);
    background-color: rgba(74, 125, 255, 0.02);
    box-shadow: 0 0 12px rgba(74, 125, 255, 0.15);
}

/* Placeholders limpios */
.input-group ::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13.5px;
}

.form-submit-btn {
    background-color: var(--color-resaltado);
    color: var(--text-main);
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    align-self: flex-start; /* Evita que el botón se estire a lo ancho de forma innecesaria */
}

.form-submit-btn:hover {
    background-color: var(--color-resaltado-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 125, 255, 0.25);
}

/* --- OPTIMIZACIÓN DE TARJETA DOBLE DE CANALES --- */
.direct-channels-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.direct-channel-block {
    position: relative;
    z-index: 2;
}

/* Divisor interno estilo frontera de cristal */
.card-divider {
    margin: 35px 0;
    border-top: 1px solid var(--card-border);
    width: 100%;
}

/* Variación de color para el icono de reuniones */
.meeting-icon {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

/* Contenedor de acciones de reunión */
.meeting-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Píldoras interactivas premium */
.meeting-pill {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

/* Efectos hover personalizados */
.meeting-pill:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Destacar sutilmente la opción virtual con tu color azul de marca */
.virtual-btn:hover {
    border-color: var(--color-resaltado);
    box-shadow: 0 0 15px rgba(74, 125, 255, 0.1);
}

.physical-btn:hover {
    border-color: var(--text-muted);
}

/* Manejo de la nueva columna de canales directos */
.contact-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Separación vertical exacta entre la tarjeta WhatsApp y la de Meet */
    width: 100%;
}

/* Forzar que ambas tarjetas internas tengan un comportamiento flexible proporcional */
.contact-left-col .contact-card {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ajustes internos para los nuevos botones del bloque de reunión */
.meeting-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.meeting-pill {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.meeting-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Color destacado sutil usando tonos de tu marca para el botón virtual */
.virtual-btn:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

/* --- ESTILOS DEL MODAL DE REUNIÓN PRESENCIAL --- */
.custom-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000; /* Asegura quedar por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 6, 14, 0.75); /* Fondo oscuro translúcido */
    backdrop-filter: blur(10px); /* Desenfoque cinemático de fondo */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Estado activo disparado por JS */
.custom-modal.active {
    display: flex;
    opacity: 1;
}

.custom-modal .modal-content {
    width: 90%;
    max-width: 520px;
    padding: 35px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(59, 130, 246, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    height: auto;
}

#presencialForm {
    gap: 10px;
    display: grid;
}

.custom-modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #ffffff;
}

.custom-modal h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Indicador de restricción geográfica */
.modal-location-badge {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    color: #fca5a5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    line-height: 1.4;
    text-align: left;
}

.modal-location-badge svg {
    flex-shrink: 0;
    color: #ef4444;
    margin-top: 2px;
}

/* Forzar que los campos inputs dentro del modal hereden tu diseño oscuro */
.modal-content .input-group input[type="date"],
.modal-content .input-group input[type="time"] {
    color-scheme: dark; /* Hace que el selector nativo de fecha y hora sea oscuro */
    width: 100%;
}

.menu-toggle {
    display: none;
}

/* --- FILTROS DEL PORTAFOLIO --- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

/* Reutilizamos offer-pill pero como botón interactivo */
button.offer-pill {
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

/* Efecto Hover y Activo para saber qué filtro está seleccionado */
button.offer-pill:hover,
button.offer-pill.active {
    background: rgba(74, 125, 255, 0.2);
    border-color: rgba(74, 125, 255, 0.5);
    transform: translateY(-2px);
}

button.offer-pill.active strong {
    color: #ffffff; /* Letras más brillantes al estar activo */
}

/* Clase para ocultar suavemente las tarjetas no seleccionadas */
.project-card.hidden {
    display: none !important;
}

/* ==========================================================================
   --- COMPATIBILIDAD MÓVIL Y ADAPTACIÓN ---
   ========================================================================== */
/* --- OPTIMIZACIÓN RESPONSIVA --- */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 0px;
        max-width: 1200px;
        width: 90%;
        margin: 80px auto 0px auto;
        padding-bottom: 10%;
    }
    .portfolio-grid { 
        grid-template-columns: 1fr; /* Fuerza una sola columna que ocupa todo el ancho */
        gap: 20px; 
        margin-top: 40px; 
    }
    .card-content { padding: 20px; }
    .project-card:hover { transform: none; }
    .hero-content { width: 95%;}
    .hero { 
        padding: 90px 10px 40px 10px;
        /* 1. Medida de respaldo para navegadores antiguos */
        min-height: 100vh; 
        /* 2. Medida moderna dinámica para móviles actuales */
        min-height: 100dvh; 
        /* 3. Aseguramos que el contenido se distribuya bien si hay poco espacio */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-bg-title { top: 21%; font-size: clamp(80px, 15vw, 360px);}
    .hero-title { margin-bottom: 20px;}

    /* Slider horizontal corregido */
    .services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        padding: 10px 0 30px 0; /* Quitamos el padding horizontal lateral */
        width: 100%; /* Forzamos a no exceder el ancho padre */
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }

    .services-grid::-webkit-scrollbar { display: none; }

    .services-grid .service-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        height: auto;
        padding: 30px 20px;
    }

    .clients-section {
        width: 90%;
        max-width: 1200px;
        margin: 60px auto 40px auto;
        padding-bottom: 10% !important;
        padding: 0%;
    }

    .contact-section {
        margin: 0 auto 0px auto;
        padding-bottom: 10%;
    }
}

@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr; /* Pasa a una sola columna vertical */
    }
    
    .form-submit-btn {
        width: 100%; /* El botón se expande completo en móviles */
    }
}

@media (max-width: 600px) {
    .form-row.split-row {
        grid-template-columns: 1fr; /* Inputs apilados en pantallas muy pequeñas */
        gap: 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .client-logo-box {
        width: 150px;
        height: 65px;
    }
}

@media (max-width: 900px) {
    /* CORRECCIÓN DE OSCURIDAD: 
       Cambiamos a scroll e intensificamos los destellos radiales 
       duplicando el punto de luz para que cubra el scroll móvil.
    */
    body {
        background-image: 
            radial-gradient(circle at 50% 25%, rgba(16, 51, 231, 0.65) 0%, rgba(0, 0, 0, 0) 30%),
            radial-gradient(circle at 50% 65%, rgba(10, 34, 170, 0.45) 0%, rgba(0, 0, 0, 0) 65%);
        background-attachment: scroll !important; /* Fuerza al navegador móvil a renderizar el gradiente */
    }

/* Fuerza a la hamburguesa a ser visible en móviles */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
        z-index: 200; /* Por encima de todo */
        position: relative;
    }

    .menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--text-main);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Animación de la hamburguesa a "X" */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Rediseño del menú para móvil (Panel lateral Premium) */
    .nav-menu {
        display: flex !important; /* Rompe el display: none de escritorio */
        flex-direction: column !important;
        position: fixed !important;
        top: 0;
        right: -100% !important; /* Escondido por defecto */
        width: 75%;
        max-width: 300px;
        height: 100vh !important;
        background: rgba(10, 10, 15, 0.96) !important; /* Fondo oscuro premium */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 24px 40px 24px !important;
        gap: 16px !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 190 !important;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    }

    /* Clase que activa el JS para deslizar el menú a la pantalla */
    .nav-menu.active {
        right: 0 !important;
    }

    /* Ajuste de los enlaces dentro del menú móvil */
    .nav-menu .nav-link-pill {
        width: 100% !important;
        box-sizing: border-box;
        padding: 12px 20px !important;
        background-color: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        justify-content: flex-start; /* Alineados a la izquierda */
    }
    
    .nav-menu .nav-link-pill:hover {
        background-color: var(--nav-pill-hover);
        border-color: var(--color-resaltado);
    }
    .nav-link-pill {
        justify-content: center;
        background-color: var(--color-resaltado);
        border-color: var(--color-resaltado);
    }

    /* Resto de tus estilos responsivos existentes sin alteraciones */
    .hero-title { font-size: 38px; }
    .search-wrapper { flex-direction: column; border-radius: 24px; padding: 16px; gap: 16px; }
    .beast-mode-btn { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 12px; width: 100%; justify-content: center; }
    .search-submit-btn { width: 100%; margin-left: 0; }
    .search-input { width: 100%; text-align: center; }

    .premium-footer { padding: 80px 24px 30px 24px; }
    .footer-cta-zone { margin-bottom: 50px; }
    .footer-interactive-zone {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        margin-bottom: 50px;
    }
    .footer-nav-menu {
        flex-wrap: wrap;
        gap: 16px 24px;
    }
    .brand-composite-wrapper { gap: 12px; }
    .footer-meta-base {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .nav-menu { display: none; }
    .hero-title { font-size: 38px; }
    .search-wrapper { flex-direction: column; border-radius: 24px; padding: 16px; gap: 16px; }
    .beast-mode-btn { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 12px; width: 100%; justify-content: center; }
    .search-submit-btn { width: 100%; margin-left: 0; }
    .search-input { width: 100%; text-align: center; }

    .premium-footer { padding: 90px 24px 30px 24px; }
    .footer-cta-zone { margin-bottom: 50px; }
    .footer-interactive-zone {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        margin-bottom: 50px;
    }
    .footer-nav-menu {
        flex-wrap: wrap;
        gap: 16px 24px;
    }
    .brand-composite-wrapper { gap: 12px; }
    .footer-meta-base {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
}