/* =========================================
   VARIABLES DE MARCA (CELAYA INGENIERÍA)
   ========================================= */
:root {
    --color-primary: #F1BE3B; /* Amarillo/Dorado */
    --color-secondary: #00C2D1; /* Cian/Turquesa */
    --color-dark: #000000;
    --font-heading: 'Nunito', 'Tsukushi A Round Gothic', sans-serif;
    --font-body: 'PT Sans', sans-serif;
}

/* =========================================
   RESET BÁSICO
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px; /* Compensa la altura del header fixed con el logo completo */
}

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--color-dark);
}

/* =========================================
   CONTENEDOR PRINCIPAL Y FONDO
   ========================================= */
.background-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Usando la imagen IA como solicitaste */
    background-image: url('fondo_ai.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

/* Capa oscura superpuesta (Overlay) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Oscurecido al 65% para contraste */
    z-index: 1; 
}

/* =========================================
   BARRA DE NAVEGACIÓN (HEADER)
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
}

.logo-container .logo {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-container .logo-main {
    height: 100px; /* Tamaño mayor para el logo vertical completo */
}

.logo-container .logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

/* =========================================
   CONTENIDO CENTRAL (HERO)
   ========================================= */
.content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    flex-grow: 1; /* Ocupa el espacio restante */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

.content p {
    font-size: 1.2rem;
    max-width: 100%;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap;
}

/* =========================================
   BOTONES DE LLAMADA A LA ACCIÓN
   ========================================= */
.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary); /* Amarillo */
    color: var(--color-dark);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--color-dark);
}

/* =========================================
   SECCIÓN DE SERVICIOS
   ========================================= */
.services-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    background-image: url('bg_servicios_light.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto parallax suave */
    color: #ffffff;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 25, 25, 0.50); /* Opacidad reducida al 50% */
    z-index: 1;
}

.services-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.logo-original {
    height: 120px;
    margin-bottom: 20px;
}

.services-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: rgba(35, 35, 35, 0.90); /* Tarjetas oscuras translúcidas */
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--color-primary); /* Amarillo de marca */
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-family: var(--font-heading);
}

.service-card p {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
}

/* =========================================
   SECCIÓN DE MÉTRICAS DE IMPACTO
   ========================================= */
.stats-section {
    background: radial-gradient(circle at 50% 0%, #151d28 0%, #0a0d13 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 90px 20px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.stats-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

.stats-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--color-primary);
    background: rgba(241, 190, 59, 0.1);
    border: 1px solid rgba(241, 190, 59, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.stats-header h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ffffff;
}

.stats-header p {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid rgba(241, 190, 59, 0.4);
    border-radius: 14px;
    padding: 36px 24px 30px 24px;
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(241, 190, 59, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(241, 190, 59, 0.15);
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 12px;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #ffffff 40%, #F1BE3B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.stat-desc {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
}

/* =========================================
   PROYECTOS DESTACADOS
   ========================================= */
.projects-section {
    background-color: #111111;
    padding: 80px 20px;
    color: #ffffff;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-info h3 {
    margin-bottom: 5px;
    color: var(--color-primary);
}

.project-info p {
    font-size: 0.9rem;
    color: #ddd;
}

.cta-container-center {
    text-align: center;
}

/* =========================================
   SOBRE NOSOTROS / LIDERAZGO TÉCNICO
   ========================================= */
.about-section {
    background-color: #f8fafc;
    color: #1e293b;
    padding: 100px 20px;
    border-top: 1px solid #e2e8f0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-profile-card {
    flex: 0 0 380px;
    position: sticky;
    top: 100px;
}

.profile-image-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    border: 3px solid #ffffff;
    background-color: #0f172a;
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.about-profile-card:hover .profile-img {
    transform: scale(1.03);
}

.profile-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-role {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-exp {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
}

.about-content {
    flex: 1;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.profile-role-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.profile-credentials {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.6;
}

.profile-quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #1e293b;
    background: #ffffff;
    border-left: 4px solid #0284c7;
    padding: 22px 26px;
    border-radius: 0 14px 14px 0;
    margin: 0 0 24px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.profile-bio p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 18px;
}

.profile-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pillar-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.pillar-text strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.pillar-text span {
    font-size: 0.82rem;
    color: #64748b;
}

/* =========================================
   TEASER CELAYA LAB (INDEX)
   ========================================= */
.lab-teaser {
    background-color: #111111;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    text-align: center;
    padding: 70px 20px;
    border-top: 1px solid #333;
}

.teaser-container {
    max-width: 800px;
    margin: 0 auto;
}

.lab-teaser h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.lab-teaser p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* =========================================
   CELAYA LAB (SUBPÁGINA)
   ========================================= */
.lab-section {
    background-color: #000000;
    color: #ffffff;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.lab-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 194, 209, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(241, 190, 59, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.lab-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lab-header {
    text-align: center;
    margin-bottom: 60px;
}

.lab-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 194, 209, 0.3);
}

.lab-header h2 span {
    color: var(--color-secondary);
}

.lab-header p {
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.lab-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.lab-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 194, 209, 0.8);
    box-shadow: 0 15px 40px 0 rgba(0, 194, 209, 0.25);
}

.lab-icon {
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 194, 209, 0.4));
}

.lab-svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-secondary);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lab-card h3 {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: #ffffff;
}

.lab-card p {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

.btn-lab {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-lab:hover {
    background-color: var(--color-secondary);
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 194, 209, 0.6);
}

.btn-lab-solid {
    background-color: var(--color-secondary);
    color: #000000;
    box-shadow: 0 0 20px rgba(0, 194, 209, 0.4);
}

.btn-lab-solid:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

.lab-link {
    color: var(--color-primary) !important;
    font-weight: bold;
}

/* =========================================
   BIBLIOTECA DEL LAB (CONTENT FEED)
   ========================================= */
.library-section {
    background-color: #000000;
    padding: 20px 20px 100px;
    color: #ffffff;
}

.library-header {
    text-align: center;
    margin-bottom: 40px;
}

.cyan-divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    border: none;
    margin: 0 auto 20px;
    border-radius: 2px;
}

.library-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.library-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 50px;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-secondary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.filter-btn.active {
    background-color: rgba(0, 194, 209, 0.15);
    color: #ffffff;
    border-color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(0, 194, 209, 0.1);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 194, 209, 0.3);
}

.content-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #111;
    overflow: hidden;
}

.content-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.content-card:hover .content-img-wrapper img {
    opacity: 1;
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
    transition: all 0.3s ease;
}

.play-overlay svg {
    fill: #ffffff;
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

.content-card:hover .play-overlay {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(0, 194, 209, 0.6);
}

.content-card:hover .play-overlay svg {
    fill: #000000;
}

.content-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-meta {
    font-size: 0.8rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.content-title {
    font-size: 1.25rem;
    color: #ffffff;
    font-family: var(--font-heading);
    line-height: 1.4;
    margin: 0;
}

/* =========================================
   CONTACTO
   ========================================= */
.contact-section {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 80px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #aaaaaa;
    margin-bottom: 30px;
}

.contact-details p {
    font-size: 1.1rem;
    color: #eeeeee;
    margin-bottom: 10px;
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

.map-link:hover {
    text-decoration: underline;
}

.whatsapp-text-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.whatsapp-text-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background-color: #20ba5a;
}

.social-links {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.social-badge:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.social-badge:hover svg {
    transform: scale(1.1);
}

.social-linkedin:hover {
    border-color: #0A66C2;
    background: rgba(10, 102, 194, 0.15);
    color: #38bdf8;
}

.social-instagram:hover {
    border-color: #E1306C;
    background: rgba(225, 48, 108, 0.15);
    color: #f472b6;
}

.social-facebook:hover {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.15);
    color: #60a5fa;
}

.social-maps:hover {
    border-color: #EA4335;
    background: rgba(234, 67, 53, 0.15);
    color: #f87171;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #333;
    background-color: #111111;
    color: #ffffff;
    border-radius: 5px;
    font-family: 'PT Sans', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn-submit {
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    padding: 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin-top: 5px;
    animation: fadeInStatus 0.3s ease;
}

.status-success {
    background-color: rgba(0, 194, 209, 0.15);
    border: 1px solid var(--color-secondary);
    color: #ffffff;
}

.status-error {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

@keyframes fadeInStatus {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    color: #aaaaaa;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
}

/* =========================================
   RESPONSIVE (DISPOSITIVOS MÓVILES)
   ========================================= */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-container {
        gap: 40px;
    }

    .about-profile-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center; /* Centrar elementos horizontalmente */
        padding: 20px 0;
        gap: 10px;
    }

    .nav-links a {
        padding: 15px; /* Área de toque más grande para celulares */
        font-size: 1.1rem; /* Texto ligeramente más grande */
        width: 100%; /* Ocupar todo el ancho para facilitar el clic */
        text-align: center;
    }

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

    .logo-container .logo {
        height: 100px;
    }

    .content h1 {
        font-size: 2.5rem;
    }
    
    .content p {
        font-size: 1rem;
        white-space: normal;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        text-align: center;
    }

    /* Adaptar servicios a móviles */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .logo-original {
        height: 90px;
    }

    /* Adaptar Métricas a móviles */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stats-header h2 {
        font-size: 1.8rem;
    }

    .stat-card {
        padding: 28px 20px;
    }

    .stat-number {
        font-size: 3rem;
    }

    /* Adaptar Proyectos, Nosotros, Lab y Contacto a móviles */
    .projects-grid, .lab-grid {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 36px;
    }

    .about-profile-card {
        flex: 0 0 auto;
        max-width: 320px;
        width: 100%;
        position: static;
    }

    .about-content {
        text-align: left;
    }

    .about-content h2 {
        font-size: 2.1rem;
    }

    .profile-quote {
        font-size: 1rem;
        padding: 18px 20px;
    }

    .profile-pillars {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-container .logo {
        height: 80px;
    }
    .content h1 {
        font-size: 1.8rem;
    }
    .content p {
        font-size: 0.9rem;
    }
    .stat-number {
        font-size: 2.6rem;
    }
    .stat-plus {
        font-size: 1.8rem;
    }
}

/* =========================================
   MODAL DE SUSCRIPCIÓN - CELAYA LAB
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(145deg, #111823 0%, #0a0e17 100%);
    border: 1px solid rgba(0, 194, 209, 0.35);
    border-top: 3px solid var(--color-secondary);
    border-radius: 18px;
    max-width: 520px;
    width: 100%;
    padding: 38px 32px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 194, 209, 0.15);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--color-secondary);
    background: rgba(0, 194, 209, 0.1);
    border: 1px solid rgba(0, 194, 209, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
}

.modal-header p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.55;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.modal-form label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.3px;
}

.modal-form input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(0, 194, 209, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.btn-modal-submit {
    margin-top: 8px;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 30px;
}
