/* ==========================================================================
   CORPOHOSTING - ENTERPRISE DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Paleta de Colores */
    --bg-white: #FFFFFF;
    --bg-cloud-gray: #F4F6F8;
    --bg-authority-gray: #EAECEF;
    --corp-navy: #001B3A;
    --corp-navy-light: #002B5E;
    --accent-red: #C5221F; /* Rojo ladrillo institucional */
    --accent-blue: #0052FF; /* Azul eléctrico para alertas/enlaces */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --border-color: #D1D5DB;

    /* Tipografía */
    --font-display: 'IBM Plex Sans', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Estructura */
    --max-width: 1440px;
    --radius-strict: 2px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-cloud-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

.code-font {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Botones (Utilitarios, sin sombras difusas) */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-strict);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
}

.btn-primary-accent {
    background-color: var(--accent-blue);
    color: var(--bg-white);
}

.btn-primary-accent:hover {
    background-color: #0040D0;
}

.btn-accent {
    background-color: var(--accent-red);
    color: var(--bg-white);
}

.btn-accent:hover {
    background-color: #A01B18;
}

.btn-ghost {
    background-color: transparent;
    color: var(--corp-navy);
    border: 1px solid var(--corp-navy);
}

.btn-ghost:hover {
    background-color: var(--corp-navy);
    color: var(--bg-white);
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
.corp-header {
    background-color: var(--corp-navy);
    color: var(--bg-white);
    border-bottom: 2px solid var(--accent-red);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.logo-badge {
    background-color: var(--accent-red);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-strict);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: #A9B3C1;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--bg-white);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    background-color: var(--bg-white);
    padding: 6rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 4rem;
    align-items: center;
}

.tech-label {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.display-title {
    font-size: 3.5rem;
    color: var(--corp-navy);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   HERO SECTION (Actualizado para Carrusel)
   ========================================================================== */

.hero-diagram {
    background-color: var(--bg-cloud-gray);
    border: 1px solid var(--border-color);
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Mantiene el caption anclado al fondo */
    position: relative; /* CRUCIAL: Contiene el carrusel absoluto */
    overflow: hidden; /* Evita desbordamientos */
}

.hero-diagram img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Para integrar mejor el diagrama con el fondo gris */
}

/* Nuevas clases para el carrusel */
.architecture-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 35px); /* Resta el espacio del caption */
    z-index: 1;
}

.arch-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    mix-blend-mode: multiply; /* Mantiene el efecto visual sobre el fondo gris */
}

.arch-slide.active {
    opacity: 1;
    z-index: 2;
}

.diagram-caption {
    background-color: var(--bg-cloud-gray);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    text-align: right;
    position: relative;
    z-index: 3; /* Asegura que el texto siempre esté visible por encima de las imágenes */
}

/* ==========================================================================
   TRUST SIGNALS
   ========================================================================== */
.trust-signals {
    background-color: var(--bg-white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.trust-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.trust-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.logos-grid {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
}

.tech-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==========================================================================
   CORE SERVICES GRID
   ========================================================================== */
.core-services {
    padding: 6rem 2rem;
}

.services-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--corp-navy);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-strict);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.service-card:hover {
    border-color: var(--corp-navy);
}

.card-header {
    margin-bottom: 1rem;
}

.card-id {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--corp-navy);
}

.card-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid var(--bg-cloud-gray);
    padding-top: 1rem;
    margin-top: auto;
}

.link-technical {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-blue);
}

.link-technical:hover {
    text-decoration: underline;
}

/* ==========================================================================
   TECHNICAL AUTHORITY
   ========================================================================== */
.technical-authority {
    background-color: var(--bg-authority-gray);
    padding: 6rem 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.authority-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
}

.authority-content {
    max-width: 800px;
}

.authority-content h2 {
    font-size: 2.5rem;
    color: var(--corp-navy);
    margin-bottom: 1.5rem;
}

.authority-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-list {
    list-style: none;
    margin-top: 2rem;
}

.tech-list li {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--corp-navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-list .code-font {
    color: var(--accent-red);
    font-weight: bold;
}

/* ==========================================================================
   FOOTER MASIVO
   ========================================================================== */
.global-footer {
    background-color: var(--corp-navy);
    color: #A9B3C1;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-column h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--bg-white);
    text-decoration: underline;
}

.branding .logo-text {
    color: var(--bg-white);
}

.copyright {
    font-size: 0.8rem;
    border-top: 1px solid var(--corp-navy-light);
    padding-top: 1rem;
    margin-top: 2rem;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

.status-indicator {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #10B981; /* Verde técnico */
}

.status-indicator::before {
    content: '●';
    margin-right: 0.5rem;
}

/* RESPONSIVE BÁSICO */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}