/* =========================================
   STYLE.CSS (Versión Responsive Centrada)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=Inter:wght@300;400;600&display=swap');

:root {
    /* Colores */
    --c-bg: #0f172a;       
    --c-bg-light: #f8fafc; 
    --c-text-dark: #1e293b;
    --c-text-light: #94a3b8;
    --c-white: #ffffff;
    --c-emerald-400: #34d399;
    --c-emerald-500: #10b981;
    --c-emerald-600: #059669;
    --c-purple-400: #c084fc;
    --c-purple-500: #a855f7;
    --c-border: #334155;   
    --c-border-dark: #1e293b;

    /* Fuentes y Tamaños */
    --f-brand: 'Space Grotesk', sans-serif;
    --f-body: 'Inter', sans-serif;
    --container-max: 1280px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-body); background-color: var(--c-bg-light); color: var(--c-text-dark); line-height: 1.5; }
h1, h2, h3, h4, .brand { font-family: var(--f-brand); }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

/* --- UTILIDADES --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 56rem; }
.hidden { display: none; }
.block { display: block; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.group:hover .group-hover\:text-white { color: white; }

/* --- NAVEGACIÓN --- */
.navbar { position: fixed; width: 100%; z-index: 50; background-color: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--c-border-dark); }
.nav-container { height: 5rem; }
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.brand { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.05em; color: var(--c-white); }
.dot { color: var(--c-emerald-400); }

.nav-links.desktop-only { display: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--c-text-light); margin: 0 1.25rem; }
.nav-links a:hover { color: var(--c-white); }

.btn { padding: 0.625rem 1.5rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 500; cursor: pointer; display: inline-block; }
.btn-outline { border: 1px solid var(--c-border); color: var(--c-white); }
.btn-outline:hover { background-color: var(--c-emerald-500); border-color: var(--c-emerald-500); color: var(--c-bg); }
/* Botón Principal (Móvil por defecto: ancho completo) */
.btn-primary { 
    background-color: var(--c-emerald-500); 
    color: var(--c-bg); 
    font-weight: 700; 
    width: 100%; 
    text-align: center; 
    padding: 0.75rem 2rem; 
    border-radius: 0.5rem; 
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--c-emerald-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* CORRECCIÓN ESCRITORIO: Que el botón se ajuste al texto */
@media (min-width: 640px) {
    .btn-primary {
        width: auto; /* Ancho automático en tablet/desktop */
        display: inline-flex; /* Alineación flexible interna */
        justify-content: center;
    }
}

.mobile-menu-btn { background: none; border: none; color: var(--c-white); font-size: 1.5rem; cursor: pointer; }
.mobile-menu { background-color: var(--c-bg); border-bottom: 1px solid var(--c-border-dark); position: absolute; width: 100%; left: 0; top: 5rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.mobile-links { display: flex; flex-direction: column; padding: 1rem 1.5rem; text-align: center; gap: 1rem; }
.mobile-links a:not(.btn) { color: #cbd5e1; }
.mobile-links a:not(.btn):hover { color: var(--c-emerald-400); }

@media (min-width: 768px) {
    .nav-links.desktop-only { display: flex; }
    .btn-outline.desktop-only { display: inline-block; }
    .mobile-menu-btn { display: none; }
    .mobile-menu { display: none !important; }
}

/* --- HERO SECTION --- */
.hero-section { background-color: var(--c-bg); background-image: radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%); min-height: 100vh; display: flex; align-items: center; padding-top: 5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; width: 100%; }

/* NUEVO: Control de alineación del texto del Hero */
.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente el contenido en móvil */
    text-align: center;  /* Centra el texto en móvil */
}

/* Restaurar alineación a la izquierda en Desktop */
@media (min-width: 768px) {
    .hero-text-content {
        align-items: flex-start;
        text-align: left;
    }
}

.status-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; border-radius: 9999px; background-color: #1e293b; border: 1px solid var(--c-border); color: var(--c-emerald-400); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.status-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background-color: var(--c-emerald-500); }

.hero-title { font-size: 2.75rem; font-weight: 700; color: var(--c-white); margin-bottom: 2rem; line-height: 0.95; letter-spacing: -0.025em; }
@media (min-width: 768px) { .hero-title { font-size: 6rem; } .hero-grid { grid-template-columns: repeat(2, 1fr); } }

.hero-description { font-size: 1.25rem; color: var(--c-text-light); margin-bottom: 2.5rem; max-width: 32rem; line-height: 1.625; font-weight: 300; }
.hero-buttons { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.btn-white { background-color: var(--c-white); color: var(--c-bg); padding: 1rem 2rem; border-radius: 0.5rem; font-weight: 700; }
.btn-white:hover { background-color: var(--c-emerald-400); }
.btn-transparent { background: transparent; border: 1px solid var(--c-border); color: var(--c-white); padding: 1rem 2rem; border-radius: 0.5rem; font-weight: 500; }
.btn-transparent:hover { border-color: var(--c-emerald-400); color: var(--c-emerald-400); }

/* --- HERO VISUAL --- */
.hero-visual { position: relative; display: none; }
@media (min-width: 768px) { .hero-visual { display: block; } }

.visual-panel { position: relative; z-index: 10; border: 1px solid #1e293b; background-color: rgba(15, 23, 42, 0.8); backdrop-filter: blur(12px); padding: 2rem; border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); overflow: hidden; transition: all 0.5s; }
.visual-panel:hover { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 0 30px rgba(16, 185, 129, 0.1); }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid #1e293b; padding-bottom: 1rem; position: relative; z-index: 10; }
.panel-label { color: #94a3b8; font-size: 0.875rem; font-family: monospace; letter-spacing: 0.1em; }
.panel-status { display: flex; align-items: center; gap: 0.5rem; }
.ping-container { position: relative; display: flex; height: 0.5rem; width: 0.5rem; }
.ping-dot { position: relative; display: inline-flex; border-radius: 50%; height: 0.5rem; width: 0.5rem; background-color: var(--c-emerald-500); }
.live-text { color: var(--c-emerald-500); font-size: 0.75rem; font-family: monospace; font-weight: 700; }
.panel-body { font-family: monospace; font-size: 0.875rem; position: relative; z-index: 10; margin-bottom: 1rem; }
.data-row { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.data-label { color: #64748b; transition: color 0.3s; }
.data-row:hover .data-label { color: rgba(52, 211, 153, 0.7); }
.data-value { color: var(--c-emerald-400); font-weight: 700; }
.flex-align { display: flex; align-items: center; gap: 0.25rem; }
.icon-small { width: 0.75rem; height: 0.75rem; }
.equalizer-container { height: 8rem; background-color: rgba(2, 6, 23, 0.5); border: 1px solid #1e293b; border-radius: 0.25rem; margin-top: 1rem; display: flex; align-items: flex-end; justify-content: space-between; padding: 0.75rem; gap: 0.25rem; position: relative; overflow: hidden; box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }
.grid-bg { position: absolute; inset: 0; opacity: 0.1; background-image: linear-gradient(#10b981 1px, transparent 1px); background-size: 100% 20%; pointer-events: none; }
.bar { width: 100%; background-color: var(--c-emerald-500); border-radius: 0.125rem; box-shadow: 0 0 10px #10b981; }

/* --- SERVICES --- */
.services-section { padding: 8rem 0; background-color: var(--c-white); }
.services-header { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; margin-bottom: 5rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 3rem; }
@media (min-width: 768px) { .services-header { flex-direction: row; } }
.header-text { max-width: 42rem; }
.header-text h2 { font-size: 2.25rem; font-weight: 700; color: var(--c-text-dark); margin-bottom: 1.5rem; }
@media (min-width: 768px) { .header-text h2 { font-size: 3rem; } }
.header-text p { font-size: 1.125rem; color: #475569; }
.header-action { margin-top: 2rem; }
@media (min-width: 768px) { .header-action { margin-top: 0; } }
.link-arrow { color: var(--c-emerald-600); font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.link-arrow:hover { color: var(--c-text-dark); }
.services-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card .icon-circle { width: 3.5rem; height: 3.5rem; background-color: #f1f5f9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--c-text-dark); margin-bottom: 1.5rem; transition: 0.5s; }
.service-card:hover .icon-circle { background-color: var(--c-emerald-500); color: white; }
.service-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--c-text-dark); margin-bottom: 1rem; transition: 0.3s; }
.service-card:hover h3 { color: var(--c-emerald-600); }
.service-card p { color: #475569; line-height: 1.625; margin-bottom: 1rem; }
.service-list { font-size: 0.875rem; color: #64748b; margin-bottom: 0.5rem; }
.service-list li { margin-bottom: 0.5rem; }

/* --- PORTFOLIO --- */
.portfolio-section { padding: 8rem 0; background-color: var(--c-bg); color: white; }
.section-tag { color: var(--c-emerald-400); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.875rem; display: block; margin-bottom: 1rem; }
.section-title-large { font-size: 2.25rem; font-weight: 700; margin-bottom: 5rem; }
@media (min-width: 768px) { .section-title-large { font-size: 3.75rem; } }
.project-row { border-top: 1px solid #1e293b; padding: 4rem 0; transition: background-color 0.3s; }
.project-row:hover { background-color: rgba(30, 41, 59, 0.5); }
.project-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .project-grid { grid-template-columns: repeat(12, 1fr); } }
.project-info { grid-column: span 12; }
@media (min-width: 768px) { .project-info { grid-column: span 5; } }
.project-visual { grid-column: span 12; }
@media (min-width: 768px) { .project-visual { grid-column: span 7; } }
.project-number { font-size: 3.75rem; font-weight: 700; color: #1e293b; margin-bottom: 1rem; transition: 0.5s; }
.project-row:hover .project-number { color: rgba(16, 185, 129, 0.2); }
.project-row:hover .project-number.text-purple-hover { color: rgba(168, 85, 247, 0.2); }
.project-info h3 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; transition: 0.3s; }
.project-row:hover h3 { color: var(--c-emerald-400); }
.text-purple .project-row:hover h3 { color: var(--c-purple-400); }
.project-info p { color: #94a3b8; margin-bottom: 1.5rem; }
.tech-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.75rem; 
    font-size: 0.75rem; 
    font-family: monospace; 
    color: var(--c-emerald-400); /* Verde claro por defecto (para dark mode) */
}
.tech-tags.text-purple { color: var(--c-purple-400); }
.tech-tags span { 
    border: 1px solid #334155; 
    padding: 0.25rem 0.75rem; 
    border-radius: 9999px; 
}
/* Visual Containers */
.visual-container { display: block; width: 100%; height: 20rem; background-color: #1e293b; border-radius: 0.75rem; overflow: hidden; position: relative; border: 1px solid #334155; transition: 0.5s; }
.project-row:hover .visual-container { transform: scale(1.02); }

/* --- ELEMENTOS VISUALES INTERNOS (Layout) --- */
.css-drawing-wrapper { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #475569; font-family: monospace; }
.drawing-box { position: relative; z-index: 10; opacity: 0.9; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border-radius: 0.75rem; background-color: rgba(15, 23, 42, 0.6); padding: 1rem; backdrop-filter: blur(4px); width: 90%; height: 90%; border: 1px solid rgba(71, 85, 105, 0.3); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.drawing-header { display: flex; flex-direction: column; align-items: center; width: 100%; position: relative; height: 33%; flex-shrink: 0; }
.data-lines { display: flex; justify-content: center; gap: 0.5rem; width: 100%; height: 100%; position: relative; overflow: hidden; }
.tanks-container { display: flex; width: 100%; justify-content: space-between; align-items: flex-end; height: 66%; position: relative; z-index: 20; padding-top: 1rem; font-family: monospace; }
.spacer { width: 5%; }
.tank-card { width: 45%; background-color: rgba(15, 23, 42, 0.8); border: 1px solid; border-radius: 0.5rem; padding: 0.75rem; backdrop-filter: blur(12px); position: relative; transition: all 0.5s; }
.project-row:hover .tank-card { transform: rotate(0); }
.tank-label { font-size: 0.75rem; text-transform: uppercase; margin-bottom: 0.25rem; opacity: 0.8; }
.tank-value { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.tank-graph { height: 3rem; width: 100%; position: relative; overflow: hidden; opacity: 0.8; }
.tank-footer { display: flex; justify-content: space-between; font-size: 0.625rem; margin-top: 0.5rem; opacity: 0.7; text-transform: uppercase; }
.bottom-gradient { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(to top, rgba(30, 41, 59, 0.5), transparent); z-index: 0; pointer-events: none; }

/* Demo Button */
.demo-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 6rem; }
.demo-button-container { position: relative; cursor: pointer; }
.btn-demo { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 2.5rem; background-color: #0f172a; border-radius: 9999px; line-height: 1; transition: transform 0.2s; }
.group:hover .btn-demo { transform: scale(1.02); }
.icon-demo { color: var(--c-emerald-400); transition: 0.2s; }
.group:hover .icon-demo { color: #6ee7b7; }
.text-demo { display: flex; flex-direction: column; text-align: left; }
.text-demo .title { color: #d1fae5; font-weight: 700; font-size: 1.125rem; letter-spacing: 0.025em; }
.group:hover .text-demo .title { color: white; }
.text-demo .subtitle { color: var(--c-emerald-500); font-size: 0.75rem; font-family: monospace; }
.group:hover .text-demo .subtitle { color: var(--c-emerald-400); }
.arrow-demo { width: 1.25rem; height: 1.25rem; color: var(--c-emerald-500); transform: translateX(0); transition: transform 0.2s; }
.group:hover .arrow-demo { transform: translateX(0.25rem); }
.demo-caption { margin-top: 1rem; color: #94a3b8; font-size: 0.875rem; font-weight: 300; }

/* AJUSTE RESPONSIVE: Escena Grinder flexible */
.grinder-scene { position: relative; width: 100%; height: 100%; min-height: 20rem; background-color: #020617; display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: monospace; user-select: none; perspective: 1000px; }
.scene-grid { position: absolute; inset: 0; z-index: 0; opacity: 0.1; background-image: linear-gradient(#22d3ee 1px, transparent 1px), linear-gradient(90deg, #22d3ee 1px, transparent 1px); background-size: 40px 40px; transform: rotateX(60deg) translateY(100px) scale(2); }
.vr-hud { position: absolute; left: 4rem; bottom: 2.5rem; width: 8rem; height: 12rem; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.hud-icon { width: 100%; height: 100%; filter: drop-shadow(0 0 5px #22d3ee); }
.hud-label { font-size: 0.625rem; color: #22d3ee; margin-top: 0.5rem; text-align: center; background-color: #0f172a; padding: 0 0.5rem; border-radius: 0.25rem; border: 1px solid #164e63; }

.twin-panel { position: absolute; z-index: 40; left: 28%; top: 18%; width: 400px; pointer-events: none; background-color: #0f172a; border: 2px solid rgba(6, 182, 212, 0.5); border-radius: 0.75rem; padding: 1rem; box-shadow: 0 0 20px rgba(34, 211, 238, 0.1); }
.twin-header { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid #155e75; padding-bottom: 0.5rem; margin-bottom: 0.75rem; font-size: 0.75rem; color: #67e8f9; font-weight: 700; letter-spacing: 0.1em; }
.twin-body { display: flex; gap: 1rem; background-color: rgba(2, 6, 23, 0.5); padding: 0.75rem; border-radius: 0.25rem; border: 1px solid rgba(22, 78, 99, 0.3); }
.rotors-viz { width: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid rgba(22, 78, 99, 0.5); padding-right: 0.5rem; font-size: 9px; color: #06b6d4; margin-bottom: 0.5rem; }
.rotors-icons { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.data-list { width: 50%; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; font-size: 0.625rem; color: #a5f3fc; }
.data-list div { display: flex; justify-content: space-between; }
.val-cyan { color: #22d3ee; font-weight: 700; }
.val-green { color: #4ade80; font-weight: 700; }

/* --- ABOUT & FOOTER --- */
.about-section { padding: 8rem 0; background-color: white; }
.section-tag-center { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; color: var(--c-emerald-600); text-transform: uppercase; margin-bottom: 1.5rem; }
.about-headline { font-size: 1.875rem; font-weight: 700; color: var(--c-text-dark); margin-bottom: 2.5rem; line-height: 1.25; }
@media (min-width: 768px) { .about-headline { font-size: 3rem; } }
.about-text { font-size: 1.125rem; color: #475569; line-height: 1.625; margin-bottom: 4rem; margin-bottom: 1.5rem; }

/* MODIFICACIÓN: Stats centrados en móvil */
.stats-grid { 
    margin-top: 4rem; 
    display: grid; 
    grid-template-columns: 1fr; /* Una columna en móvil */
    gap: 2rem; 
    border-top: 1px solid #f1f5f9; 
    padding-top: 3rem; 
    text-align: center; /* Texto centrado en móvil */
}

/* Tablet (2 Columnas) */
@media (min-width: 640px) { 
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
        text-align: left; /* Alineación izquierda estándar */
    } 
}

/* Desktop (3 Columnas) */
@media (min-width: 768px) { 
    .stats-grid { 
        grid-template-columns: repeat(3, 1fr); 
    } 
}

.stat-number { font-size: 1.875rem; font-weight: 700; color: var(--c-text-dark); }
.stat-label { font-size: 0.875rem; color: #64748b; margin-top: 0.25rem; }

.footer { background-color: var(--c-bg); color: #94a3b8; padding: 5rem 0; border-top: 1px solid #1e293b; }
.footer-grid { display: grid; gap: 3rem; margin-bottom: 5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { grid-column: span 1; }
@media (min-width: 768px) { .footer-brand { grid-column: span 2; } }
.footer-brand p { max-width: 24rem; margin-top: 1.5rem; margin-bottom: 2rem; color: #64748b; }
.footer h4 { color: white; font-weight: 700; margin-bottom: 1.5rem; }
.footer-links a { color: #94a3b8; transition: color 0.3s ease; font-size: 0.875rem; margin-bottom: 1rem; text-decoration: none;}
.footer-links a:hover { color: var(--c-emerald-400); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 2rem; font-size: 0.75rem; color: #475569; display: flex; justify-content: space-between; }
.icon-link { color: white; margin-right: 0.5rem; font-size: 1.25rem; }


/* =========================================
   ESTILOS ESPECÍFICOS: ABOUT PAGE
   ========================================= */

/* --- TOOLKIT GRID (Habilidades) --- */
.toolkit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .toolkit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .toolkit-grid { grid-template-columns: repeat(4, 1fr); } }

.toolkit-card {
    background-color: var(--c-bg-light);
    border: 1px solid var(--c-border); /* Usando borde oscuro si está en fondo oscuro, o ajusta según contexto */
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}
/* Ajuste para que se vea bien en fondo blanco */
.services-section .toolkit-card {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.toolkit-card:hover {
    border-color: var(--c-emerald-400);
    transform: translateY(-5px);
    background-color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.toolkit-icon { font-size: 2.5rem; margin-bottom: 1rem; color: #64748b; transition: 0.3s; }
.toolkit-card:hover .toolkit-icon { color: var(--c-emerald-500); }
.toolkit-title { font-weight: 700; color: var(--c-text-dark); margin-bottom: 0.25rem; font-family: var(--f-brand); }
.toolkit-desc { font-size: 0.8rem; color: #64748b; }

/* --- TIMELINE (Experiencia) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

/* Línea Central */
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 2rem;
    width: 2px;
    background: #e2e8f0;
}
@media (min-width: 768px) {
    .timeline::before { left: 50%; margin-left: -1px; }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Punto de la línea */
.timeline-dot {
    position: absolute;
    left: 1rem; /* Ajustado para alinear con la línea en móvil */
    top: 0;
    width: 2rem; height: 2rem;
    background: white;
    border: 2px solid var(--c-emerald-400);
    border-radius: 50%;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-emerald-500);
    font-size: 0.8rem;
    transform: translateX(-50%); /* Centra el punto sobre la línea */
}
@media (min-width: 768px) {
    .timeline-dot { left: 50%; transform: translateX(-50%); }
}

/* Contenido de la tarjeta */
.timeline-content {
    margin-left: 3.5rem; /* Espacio para la línea en móvil */
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.timeline-item:hover .timeline-content { border-color: var(--c-emerald-400); }

@media (min-width: 768px) {
    .timeline-content { width: calc(50% - 3rem); margin-left: 0; }
    
    /* Alternancia Izquierda / Derecha */
    .timeline-item:nth-child(odd) .timeline-content { margin-right: auto; text-align: right; }
    .timeline-item:nth-child(even) .timeline-content { margin-left: auto; text-align: left; }
}

.timeline-company { font-weight: 700; color: var(--c-text-dark); font-size: 1.1rem; font-family: var(--f-brand); }
.timeline-date { font-size: 0.75rem; color: var(--c-emerald-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.5rem; }
.timeline-desc { color: #64748b; font-size: 0.9rem; line-height: 1.5; }







/* =========================================
   ESTILOS ESPECÍFICOS: PORTFOLIO PAGE
   ========================================= */

/* --- FEATURED PROJECT (Tarjeta Grande Oscura) --- */
.featured-card {
    background-color: var(--c-bg); /* Fondo oscuro */
    border: 1px solid var(--c-border);
    border-radius: 1.5rem;
    overflow: hidden;
    display: grid;
    gap: 2rem;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.featured-card:hover {
    transform: translateY(-5px);
    border-color: var(--c-purple-400); /* Color de acento para este proyecto */
}

@media (min-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr 1fr; /* Texto izquierda, Imagen derecha */
        padding: 3rem;
        align-items: center;
    }
}

.featured-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background-color: rgba(168, 85, 247, 0.2); /* Purple tint */
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d8b4fe; /* Purple light */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.featured-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--c-border);
    background-color: rgba(255,255,255,0.05);
    aspect-ratio: 16/9;
}
.featured-image-container img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.9; transition: opacity 0.3s;
}
.featured-card:hover img { opacity: 1; }

/* --- STANDARD PROJECT CARD (Tarjetas Blancas) --- */

.project-card .tech-tags {
    color: var(--c-emerald-600); /* Usamos un verde mucho más oscuro y legible */
    font-weight: 600; /* Un poco más de peso para que se lea mejor */
}

/* Fondo suave para las etiquetas en tarjetas blancas para dar contraste */
.project-card .tech-tags span {
    border-color: #a7f3d0; /* Borde verde suave */
    background-color: #ecfdf5; /* Fondo verde muy pálido */
}

/* Corrección específica para la tarjeta azul (Hot Swap) */
.project-card.blue-hover .tech-tags {
    color: #2563eb; /* Azul oscuro legible */
}

.project-card.blue-hover .tech-tags span {
    border-color: #bfdbfe; /* Borde azul suave */
    background-color: #eff6ff; /* Fondo azul muy pálido */
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
}
.project-card.emerald-hover:hover { border-color: var(--c-emerald-400); }
.project-card.blue-hover:hover { border-color: #60a5fa; } /* Blue 400 */

.project-icon {
    width: 3.5rem; height: 3.5rem;
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 2rem;
}
/* Variantes de color para iconos */
.bg-emerald-soft { background-color: #d1fae5; color: var(--c-emerald-600); }
.bg-blue-soft { background-color: #dbeafe; color: #2563eb; }

.project-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    background-color: #f1f5f9; color: #64748b;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.link-text {
    margin-top: auto; /* Empuja el enlace al fondo */
    font-weight: 700; font-size: 0.875rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--c-text-dark);
}
.project-card.emerald-hover:hover .link-text { color: var(--c-emerald-600); }
.project-card.blue-hover:hover .link-text { color: #2563eb; }



/* =========================================
   CONTACT PAGE (LIGHT MODE / CLEAN STYLE)
   ========================================= */

/* Sección Principal Clara */
.contact-section-light {
    background-color: var(--c-bg-light); /* Fondo #f8fafc */
    background-image: radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.05) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem; /* Espacio para navbar */
    padding-bottom: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    color: var(--c-text-dark); /* Texto oscuro base */
}

/* Tipografía en modo claro */
.contact-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--c-text-dark); /* #1e293b */
    margin-bottom: 2rem;
    line-height: 0.95;
    letter-spacing: -0.025em;
    font-family: var(--f-brand);
}

@media (min-width: 768px) { 
    .contact-title { font-size: 5rem; } 
}

.contact-description {
    font-size: 1.25rem;
    color: #475569; /* Gris medio legible */
    margin-bottom: 2.5rem;
    max-width: 32rem;
    line-height: 1.625;
    font-weight: 300;
}

/* Detalles de contacto Light */
.contact-details-light {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0; /* Borde gris muy suave */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item-light {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #475569;
    font-weight: 500;
}

.icon-circle-light {
    width: 3rem;
    height: 3rem;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-emerald-600);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* PANEL DERECHO (Estilo Tarjeta Blanca) */
.visual-panel.panel-light {
    background-color: white;
    border: 1px solid #e2e8f0; /* Borde sutil */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
}

.panel-header.header-light {
    border-bottom: 1px solid #f1f5f9;
}

.panel-label.label-dark {
    color: #64748b; /* Etiqueta gris en vez de blanca */
}

/* Botón Outline Oscuro (Para fondo blanco) */
.btn-outline-dark {
    border: 1px solid #cbd5e1;
    color: var(--c-text-dark);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.btn-outline-dark:hover {
    border-color: var(--c-emerald-500);
    color: var(--c-emerald-600);
    background-color: #f0fdf4; /* Fondo verde muy pálido */
}

/* Ajuste texto del título span */
.text-emerald-500 { color: var(--c-emerald-500); }



/* 1. Botón Principal: Bloque Oscuro (Máximo Contraste) */
.btn-solid-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    
    background-color: var(--c-text-dark); /* #1e293b (Slate Oscuro) */
    color: #ffffff; /* Texto Blanco puro */
    border: 1px solid var(--c-text-dark);
    border-radius: 0.5rem; /* Bordes ligeramente redondeados (Look moderno) */
    
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1rem; /* Separación entre botones */
}

/* Hover: Se vuelve Verde Esmeralda vibrante */
.btn-solid-dark:hover {
    background-color: var(--c-emerald-500);
    border-color: var(--c-emerald-500);
    color: #ffffff;
    transform: translateY(-2px); /* Pequeña elevación */
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4); /* Sombra difusa verde */
}

/* 2. Botón Secundario: Outline Robusto */
.btn-outline-clean {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    
    background-color: transparent;
    color: #64748b; /* Gris medio (Slate 500) para el texto base */
    border: 2px solid #e2e8f0; /* Borde de 2px para que se vea bien */
    border-radius: 0.5rem;
    
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover: Toma el color de LinkedIn */
.btn-outline-clean:hover {
    border-color: #0a66c2; /* Azul LinkedIn */
    color: #0a66c2;
    background-color: #f0f9ff; /* Fondo azul muy pálido */
}

/* Ajuste de Iconos para que no se vean pequeños */
.btn-solid-dark i, 
.btn-outline-clean i {
    font-size: 1.125rem;
}



/* =========================================
   ESTRUCTURA: BLUEPRINT CARD (Visuales)
   ========================================= */

/* 1. Contenedor Base */
.visual-panel.panel-light {
    position: relative; /* Necesario para posicionar los elementos internos */
    overflow: hidden;   /* Para que la cuadrícula no se salga de la tarjeta */
    z-index: 1;         /* Asegura orden de apilamiento correcto */
    /* Estilo base limpio */
    background-color: white;
    border: 1px solid #e2e8f0;
}

/* 2. La Cuadrícula Técnica (Oculta por defecto) */
/* Usamos ::before para crear el fondo de patrón */
.visual-panel.panel-light::before {
    content: "";
    position: absolute;
    inset: 0; /* Ocupa toda la tarjeta */
    z-index: -1; /* Se pone detrás del texto */
    
    /* Dibujamos la cuadrícula con gradientes CSS puros */
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 20px 20px; /* Tamaño de cada cuadro */
    
    opacity: 0; /* Invisible inicialmente */
}

/* 3. El Borde Técnico Interno (Oculto por defecto) */
/* Usamos ::after para el marco discontinuo */
.visual-panel.panel-light::after {
    content: "";
    position: absolute;
    inset: 12px; /* Margen interno desde el borde */
    border: 1px dashed var(--c-emerald-400);
    border-radius: 8px;
    
    opacity: 0; /* Invisible inicialmente */
    pointer-events: none; /* Permite hacer clic a través de él */
}

/* =========================================
   FIX: HERO BUTTONS (Mobile Friendly & Desktop Aligned)
   ========================================= */

/* 1. Estilos Base (Aplica a TODOS los botones dentro del Hero) */
.hero-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-buttons .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    
    /* --- LA SOLUCIÓN MÁGICA --- */
    /* Damos a TODOS los botones un borde de 2px. 
       Si el botón no requiere color (como el blanco), será transparente 
       pero ocupará el espacio necesario para alinearse. */
    border: 2px solid transparent; 
    
    transition: all 0.3s ease;
}

/* 2. Especificidades para cada tipo */

/* El botón transparente necesita que su borde sea visible */
.hero-buttons .btn-transparent {
    border-color: var(--c-border);
}
/* Al hacer hover, el transparente se ilumina */
.hero-buttons .btn-transparent:hover {
    border-color: var(--c-emerald-400);
}

/* El botón blanco mantiene su borde transparente (o blanco si prefieres) */
.hero-buttons .btn-white {
    background-color: var(--c-white);
    color: var(--c-bg);
}
/* Opcional: Borde verde al pasar el mouse sobre el blanco para efecto extra */
.hero-buttons .btn-white:hover {
    border-color: var(--c-emerald-400); 
    background-color: var(--c-emerald-400);
}

/* Iconos más grandes */
.hero-buttons .btn i {
    font-size: 1.4rem;
}

/* 3. VERSIÓN ESCRITORIO (Alineación Horizontal) */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        width: auto;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: auto;
        display: inline-flex;
        padding: 0.75rem 2rem; /* Tamaño elegante para escritorio */
        font-size: 1rem;
    }
    
    .hero-buttons .btn i {
        font-size: 1rem;
    }
}

/* =========================================
   FIX: ABOUT PAGE SPACING
   ========================================= */

.hero-about-adjust {
    /* 1. SOLUCIÓN ARRIBA: "The Engineer..." muy pegado */
    /* Aumentamos de 5rem a 9rem para bajar todo el bloque de texto */
    padding-top: 9rem !important; 
    
    /* 2. SOLUCIÓN ABAJO: "Email Me" muy pegado al borde */
    /* Agregamos colchón abajo para que no choque con la siguiente sección */
    padding-bottom: 6rem !important;
    
    /* Opcional: Asegura que la altura mínima no force el contenido */
    min-height: auto !important; /* Dejamos que el contenido dicte la altura si es necesario */
}

/* Ajuste Responsive para Móvil */
@media (max-width: 768px) {
    .hero-about-adjust {
        padding-top: 8rem !important;     /* Un poco menos en móvil */
        padding-bottom: 4rem !important;  /* Espacio seguro abajo */
    }
}

/* =========================================
   SERVICES PAGE STYLES
   ========================================= */

/* 1. HEADER OSCURO COMPACTO */
.services-hero {
    background-color: var(--c-bg);
    /* Patrón de fondo sutil técnico */
    background-image: radial-gradient(#1e293b 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 10rem 1.5rem 5rem; /* Mucho padding arriba para la navbar */
    border-bottom: 1px solid var(--c-border);
}

.pill-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--c-emerald-400);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-title-small {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
@media (min-width: 768px) { .hero-title-small { font-size: 4rem; } }

.hero-description-centered {
    font-size: 1.125rem;
    color: var(--c-text-light);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* 2. CUERPO DE SERVICIOS (Layout Zig-Zag) */
.services-body {
    background-color: white;
    padding: 5rem 0;
}

.feature-row {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 8rem; /* Separación entre bloques */
}
.feature-row:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr 1fr; /* Mitad y mitad */
        gap: 5rem;
    }
    
    /* Truco para invertir el orden en escritorio (Imagen izquierda) */
    .feature-row.reverse .feature-text { order: 2; }
    .feature-row.reverse .feature-image { order: 1; }
}

/* Textos e Iconos */
.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
/* Variantes de color suaves */
.bg-purple-soft { background-color: #f3e8ff; color: #9333ea; }
.bg-emerald-soft { background-color: #ecfdf5; color: #059669; }
.bg-blue-soft { background-color: #eff6ff; color: #2563eb; }

.feature-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.body-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Cajas de Alerta (Problema) */
.alert-box {
    padding: 1rem 1.5rem;
    border-left: 4px solid;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.alert-red { background-color: #fef2f2; border-color: #f87171; color: #991b1b; }
.alert-amber { background-color: #fffbeb; border-color: #fbbf24; color: #92400e; }

/* Listas con Check */
.feature-list { margin-bottom: 0.5rem; }
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #334155;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.feature-list i { color: var(--c-emerald-500); }

/* Imágenes (Marcos) */
.image-frame {
    background-color: #f1f5f9;
    padding: 1rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.image-frame img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 3. SECCIONES INFERIORES */
.proof-section {
    padding: 6rem 0;
    background-color: white;
    border-top: 1px solid #f1f5f9;
}
.section-heading-dark {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-text-dark);
    margin-bottom: 1.5rem;
}
.body-text-centered {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

/* Footer CTA Grande */
.cta-footer-section {
    background-color: var(--c-bg);
    color: white;
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--c-border);
}
.cta-tag {
    color: var(--c-emerald-400);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 1rem;
}
.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
@media(min-width: 768px) { .cta-title { font-size: 3.5rem; } }

.cta-desc {
    color: var(--c-text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}
.btn-large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* =========================================
   DEMO BUTTON: MINIMALIST STYLE
   ========================================= */

.demo-wrapper-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: 0.2rem 0;
}

/* El Botón "Píldora Técnica" */
.btn-tech-minimal {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 2rem;
    
    background-color: transparent; /* Fondo limpio */
    color: var(--c-emerald-500);     /* Texto oscuro */
    border: 1px solid #cbd5e1;     /* Borde gris suave (Slate 300) */
    border-radius: 9999px;         /* Completamente redondo */
    
    font-family: var(--f-brand);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interacción Hover: Se "Activa" */
.btn-tech-minimal:hover {
    border-color: var(--c-emerald-500); /* El borde se pone verde */
    color: var(--c-emerald-600);        /* El texto se pone verde oscuro */
    background-color: #ecfdf5;          /* Fondo verde muy pálido */
    transform: translateY(-2px);        /* Flota un poco */
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15); /* Sombra suave */
}

/* Animación de la flecha */
.arrow-slide {
    transition: transform 0.3s ease;
    width: 1.25rem; /* Ajuste de tamaño para SVG */
    height: 1.25rem;
}

.btn-tech-minimal:hover .arrow-slide {
    transform: translateX(4px); /* La flecha se mueve a la derecha */
}

/* Ajuste del icono principal SVG */
.btn-tech-minimal svg:first-child {
    width: 1.5rem;
    height: 1.5rem;
    color: #64748b; /* Gris técnico inicial */
    transition: color 0.3s ease;
}

.btn-tech-minimal:hover svg:first-child {
    color: var(--c-emerald-500); /* Se ilumina al hover */
}

/* Caption (Texto de abajo) */
.caption-minimal {
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Un puntito verde pulsante para indicar "Live" */
.status-dot-mini {
    width: 6px;
    height: 6px;
    background-color: var(--c-emerald-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
