/* ==========================================================================
   PALETA DE COLORES OFICIAL — SIMONKYS (DARK NAVY & CYAN TECH)
   Fondo Principal: Azul Noche Profundo (#060E1A / #0A192F)
   Acento Primario: Azul Eléctrico / Cyan Tech (#0284C7 / #38BDF8)
   Superficies / Tarjetas: Azul Marino Pizarra (#0F223D)
   ========================================================================== */

:root {
    --bg-deep: #060E1A;
    --bg-navy: #0A192F;
    --bg-card: #0F223D;
    --bg-card-hover: #142B4D;
    
    --blue-primary: #0284C7;
    --blue-bright: #38BDF8;
    --blue-glow: rgba(56, 189, 248, 0.25);
    
    --text-white: #F8FAFC;
    --text-slate: #CBD5E1;
    --text-muted: #94A3B8;
    
    --border-navy: #1E3A5F;
    --border-bright: rgba(56, 189, 248, 0.45);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--text-white);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   NAVBAR OSCURO
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 14, 26, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-navy);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--blue-bright);
    background: var(--bg-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--blue-bright);
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-slate);
    font-weight: 600;
    font-size: 0.94rem;
    transition: color 0.2s ease;
}

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

.btn-nav {
    background: linear-gradient(135deg, var(--blue-primary), #0369A1);
    color: #FFFFFF !important;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--blue-bright);
    font-weight: 700 !important;
    box-shadow: 0 4px 16px var(--blue-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-white);
    border-radius: 2px;
}

/* ==========================================================================
   HEADER DIAMANTE CON CLIP-PATH
   ========================================================================== */
.hero-diamond {
    position: relative;
    min-height: 88vh;
    padding: 150px 0 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Corte geométrico en diamante / pentágono invertido */
    clip-path: polygon(0% 0%, 100% 0%, 100% 82%, 50% 100%, 0% 82%);
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 82%, 50% 100%, 0% 82%);
    overflow: hidden;
    background-color: var(--bg-navy);
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.28;
    z-index: 1;
}

.hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 25, 47, 0.78) 0%, rgba(6, 14, 26, 0.96) 100%);
    z-index: 2;
}

.tech-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    z-index: 2;
}

.diamond-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(56, 189, 248, 0.05));
    border: 1px solid rgba(56, 189, 248, 0.25);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    z-index: 2;
    pointer-events: none;
}

.diamond-left {
    top: 16%;
    left: -90px;
}

.diamond-right {
    bottom: 18%;
    right: -90px;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 840px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(2, 132, 199, 0.16);
    border: 1px solid var(--border-bright);
    color: var(--blue-bright);
    padding: 8px 18px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 0 10px var(--blue-bright);
}

.hero-content h1 {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(90deg, #38BDF8 0%, #7DD3FC 50%, #0284C7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-slate);
    max-width: 660px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue-primary);
    color: #FFFFFF;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--blue-bright);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
    background: #0369A1;
    transform: translateY(-3px);
}

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 34, 61, 0.7);
    color: var(--text-white);
    border: 1px solid var(--border-navy);
    font-weight: 700;
    padding: 15px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary-hero:hover {
    border-color: var(--blue-bright);
    transform: translateY(-3px);
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.section {
    padding: 96px 0;
}

.section-alt {
    background-color: var(--bg-navy);
    border-top: 1px solid var(--border-navy);
    border-bottom: 1px solid var(--border-navy);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    background: rgba(2, 132, 199, 0.16);
    color: var(--blue-bright);
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 56px;
}

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

.section-header h2,
.about-text h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-slate);
    font-size: 1.05rem;
}

/* ==========================================================================
   SECCIÓN 1: ¿QUIÉNES SOMOS?
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.lead-p {
    font-size: 1.12rem;
    color: var(--text-white);
    margin-bottom: 16px;
}

.body-p {
    color: var(--text-slate);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-navy);
    border-left: 4px solid var(--blue-bright);
    padding: 20px;
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.highlight-card:hover {
    transform: translateX(6px);
}

.hl-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.highlight-card h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text-white);
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN 2: MISIÓN Y VISIÓN
   ========================================================================== */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.mv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-navy);
    border-radius: 22px;
    padding: 36px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-bright);
}

.mv-card-accent {
    border-top: 3px solid var(--blue-bright);
}

.mv-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.mv-diamond {
    width: 48px;
    height: 48px;
    background: rgba(2, 132, 199, 0.22);
    color: var(--blue-bright);
    font-family: var(--font-mono);
    font-weight: 700;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.mv-card p {
    color: var(--text-slate);
    font-size: 1rem;
}

/* ==========================================================================
   SECCIÓN 3: BREVE HISTORIA (CONSOLIDACIÓN E INICIO DE OPERACIONES)
   ========================================================================== */
.subsection-block {
    margin-bottom: 48px;
}

.subsection-title {
    font-size: 1.35rem;
    color: var(--blue-bright);
    margin-bottom: 24px;
    padding-left: 14px;
    border-left: 4px solid var(--blue-primary);
}

.history-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-navy);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.history-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-bright);
}

.card-img-slot {
    position: relative;
    height: 220px;
    width: 100%;
    background: var(--bg-navy);
    border-bottom: 1px solid var(--border-navy);
    overflow: hidden;
}

.card-img-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(6, 14, 26, 0.85);
    color: var(--blue-bright);
    border: 1px solid var(--border-bright);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
}

.card-body {
    padding: 28px;
}

.card-body h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.card-body p {
    color: var(--text-slate);
    font-size: 0.96rem;
}

.operations-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0B2545 100%);
    border: 1px solid var(--border-bright);
    border-radius: 22px;
    padding: 36px 40px;
    text-align: center;
}

.op-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--blue-bright);
    background: rgba(56, 189, 248, 0.14);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.operations-banner h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
}

.operations-banner p {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text-slate);
    font-size: 1.02rem;
}

/* ==========================================================================
   SECCIÓN 4: CÓMO TRABAJAMOS
   ========================================================================== */
.mini-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--blue-bright);
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

/* Subsección 1: Cultura de Calidad e Imagen de Perfiles de lado a lado */
.quality-showcase {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-navy);
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 56px;
}

.quality-info h3 {
    font-size: 1.55rem;
    margin-bottom: 14px;
}

.quality-info p {
    color: var(--text-slate);
    font-size: 0.96rem;
    margin-bottom: 20px;
}

.profiles-header {
    padding-top: 16px;
    border-top: 1px solid var(--border-navy);
}

.profiles-header h4 {
    font-size: 1.15rem;
    color: var(--blue-bright);
    margin-bottom: 6px;
}

.profiles-header p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.profiles-image-container {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-bright);
    background: var(--bg-deep);
}

.profiles-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-overlay-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(0deg, rgba(6, 14, 26, 0.95) 0%, transparent 100%);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--blue-bright);
}

/* Subsección 2: Modelado de Sistemas y Metodologías Ágiles (Sin imagen) */
.agile-intro {
    max-width: 820px;
    margin-bottom: 32px;
}

.agile-intro h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
}

.agile-intro p {
    color: var(--text-slate);
    font-size: 1rem;
}

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

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border-navy);
    border-radius: 18px;
    padding: 28px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.method-card:hover {
    border-color: var(--blue-bright);
    transform: translateY(-4px);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.method-code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(2, 132, 199, 0.22);
    color: var(--blue-bright);
    padding: 6px 10px;
    border-radius: 8px;
}

.method-header h4 {
    font-size: 1.18rem;
    color: var(--text-white);
}

.method-card p {
    color: var(--text-slate);
    font-size: 0.94rem;
}

/* ==========================================================================
   SECCIÓN 5: PROYECTOS (CITA CLARA)
   ========================================================================== */
.projects-grid {
    max-width: 680px;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-navy) 100%);
    border: 1.5px solid var(--border-bright);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease;
}

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

.project-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.project-status {
    background: rgba(56, 189, 248, 0.16);
    color: var(--blue-bright);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}

.project-tech {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-white);
}

.project-card p {
    color: var(--text-slate);
    font-size: 0.98rem;
    margin-bottom: 28px;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue-primary);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 12px;
    border: 1px solid var(--blue-bright);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-project:hover {
    background: #0369A1;
    transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER CORPORATIVO + POWERED BY LERT
   ========================================================================== */
.site-footer {
    background: #040911;
    border-top: 2px solid var(--blue-primary);
    padding: 68px 0 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 48px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--border-navy);
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 360px;
    font-size: 0.94rem;
}

.footer-links h4,
.footer-partner h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--blue-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.94rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--blue-bright);
}

.lert-card {
    display: flex;
    flex-direction: column;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid var(--border-bright);
    padding: 16px 20px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.lert-card:hover {
    transform: translateY(-3px);
    background: rgba(2, 132, 199, 0.18);
}

.lert-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

.lert-card strong {
    font-size: 1.25rem;
    color: var(--blue-bright);
    margin: 2px 0;
}

.lert-card small {
    font-size: 0.82rem;
    color: var(--text-slate);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--blue-bright);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .about-grid,
    .quality-showcase {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: var(--bg-navy);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        border-bottom: 1px solid var(--border-navy);
        display: none;
    }
    .nav-links.open {
        display: flex;
    }
    .hero-diamond {
        clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 50% 100%, 0% 90%);
        -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 50% 100%, 0% 90%);
        padding: 130px 0 100px;
    }
    .mv-grid,
    .history-cards-grid,
    .methodologies-grid {
        grid-template-columns: 1fr;
    }
}
