/* --------------------
   1. Variables y Reset
   -------------------- */
:root {
    --color-navy: #09123A; 
    --color-blue-dark: #071032; 
    --color-green: #38a53e; 
    --color-white: #ffffff;
    --color-gray: #ccc;
    --color-light-bg: #f5f5f5; 
    --color-quote-blue: #0084ff; 
    --gradient-blue: linear-gradient(90deg, #00c9ff 0%, #0066ff 100%);
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%; 
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-white);
    background-color: var(--color-blue-dark);
    line-height: 1.6;
}

/* Regla para bloquear el scroll en body cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

/* Contenedor central */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Títulos: Definición base para secciones oscuras */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white); 
}

h2 {
    font-size: 2.5rem;
}

/* Títulos para secciones claras (nuevo estilo) */
.section-title-light {
    color: var(--color-navy); 
}
.text-center {
    text-align: center;
}

/* Párrafos oscuros sobre fondo claro */
.intro-paragraph-dark {
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}


/* Botones base */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 5px;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Botón primario (azul/cyan gradiente) */
.btn-primary {
    background: var(--gradient-blue);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 201, 255, 0.4);
}

/* Botón secundario (azul/cyan gradiente, más grande) */
.btn-secondary {
    background: var(--gradient-blue);
    color: var(--color-white);
    padding: 15px 40px;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 201, 255, 0.4);
}
.shadow-lg-hover:hover {
    box-shadow: 0 8px 25px rgba(0, 201, 255, 0.6); /* Sombra más pronunciada en hover */
}

/* Utilidad para margen superior */
.mt-4 {
    margin-top: 20px;
}

/* Botón naranja */
.btn-orange {
    background-color: var(--color-quote-blue);
    color: var(--color-white);
    padding: 15px 40px;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 20px;
}
.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}
.btn-block {
    display: block;
}

/* CTA Flotante (Nuevo) */
.cta-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    font-size: 1rem;
    z-index: 900; 
}

/* --------------------
   2. Header y Navegación
   -------------------- */
.header {
    background-color: var(--color-navy);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    margin-left: 8px;
}

.nav {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.nav a {
    color: var(--color-white);
    text-decoration: none;
    margin: 0 15px; 
    font-size: 0.95rem;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active { 
    color: #00c9ff;
}

/* Estilo original de CTA (mantenido solo para la versión móvil/full-screen) */
.header-cta {
    font-size: 0.9rem;
    padding: 8px 15px; 
    margin-left: 20px;
    white-space: nowrap; 
}

/* NUEVO ESTILO FORMAL DEL CTA DE ESCRITORIO */
.header-cta-formal {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-white);
    padding: 10px 15px;
    border: 2px solid var(--color-quote-blue); /* Borde sutil */
    border-radius: 5px;
    background: none;
    transition: background-color 0.3s, color 0.3s;
}
.header-cta-formal:hover {
    background-color: var(--color-quote-blue);
    color: var(--color-navy); /* Contraste en hover */
}

/* Ajustes para el ícono de Iconify */
.cta-icon-formal {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--color-quote-blue);
    transition: color 0.3s;
}
.header-cta-formal:hover .cta-icon-formal {
    color: var(--color-navy);
}
.cta-icon-formal iconify-icon { 
    color: inherit;
    vertical-align: middle;
}

.cta-number-formal {
    font-size: 1.1rem; 
    font-weight: 700;
}

.mobile-cta { display: none; }
.desktop-cta { display: inline-block; }


.hamburger {
    display: none; 
    font-size: 1.8rem;
    color: var(--color-white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; 
}

/* --------------------
   3. Hero Section (Index) con Video - ESTILO MEJORADO FINAL
   -------------------- */
.hero {
    position: relative;
    height: 100vh; 
    min-height: 550px;
    background: none; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    overflow: hidden; 
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(7, 16, 50, 0.9) 0%, rgba(7, 16, 50, 0.7) 60%, rgba(7, 16, 50, 0.5) 100%);
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left; 
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem; 
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-white);
    background-image: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--color-white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 40px;
    color: var(--color-gray);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.changing-text-style {
    font-weight: 700;
    color: var(--color-white);
    position: relative;
    background-image: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--color-white);
    text-shadow: none;
    border-right: 3px solid var(--color-quote-blue); 
    padding-right: 5px;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-quote-blue); }
}


/* --------------------
   4. Solid Bases Section (MEJORADA - FONDO CLARO)
   -------------------- */
.solid-bases {
    background-color: var(--color-light-bg); 
    padding: 80px 0 0;
}

.solid-bases-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-direction: row-reverse; 
}

.text-box {
    background-color: var(--color-white); 
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    flex: 1;
    margin-left: 0;
    color: var(--color-navy); 
}

.solid-bases-content h2 {
    color: var(--color-navy); 
}
.solid-bases-content p {
    color: var(--color-navy); 
}


.solid-bases-highlight {
    border-left: 5px solid var(--color-quote-blue); 
    padding: 50px 50px 50px 45px;
}

.image-box {
    flex: 1;
    text-align: left;
}

.image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3); 
}

.key-features-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.key-features-list li {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 400; 
    color: var(--color-navy); 
}
.key-features-list .icon-checkmark {
    color: #00c9ff;
    font-weight: 700;
    margin-right: 10px;
}
.key-features-list iconify-icon { 
    font-size: 1.1rem;
    vertical-align: middle;
}

.solid-bases-cta {
    text-align: center;
    margin-top: -30px;
    padding-bottom: 80px;
}

/* --------------------
   NUEVA SECCIÓN: Soluciones Industriales (4x2 Grid)
   -------------------- */
.industrial-solutions-section {
    background-color: var(--color-light-bg);
    padding: 80px 0;
}

.industrial-solutions-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.industrial-solutions-section h2 {
    color: var(--color-navy);
    font-size: 2rem;
    margin-bottom: 10px;
}

.industrial-solutions-section .section-header p {
    color: var(--color-navy);
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.solution-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 16, 50, 0.1) 0%, var(--color-navy) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.card-overlay h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 0;
    text-transform: uppercase;
}

.icon-lg {
    font-size: 2.5rem;
    color: var(--color-quote-blue);
    margin-bottom: 10px;
}
.icon-lg iconify-icon {
    color: inherit;
    vertical-align: middle;
}

.industrial-solutions-section .solutions-grid + .text-center {
    margin-top: 40px;
}
.industrial-solutions-section .solutions-grid + .text-center .btn {
    max-width: 450px;
}

/* --------------------
   5. Philosophy Section (CARRUSEL FUNCIONAL - FONDO OSCURO)
   -------------------- */
.philosophy {
    background: url('https://via.placeholder.com/1920x500?text=Fondo+Oscuro+Geometrico') no-repeat center center/cover;
    background-color: rgba(7, 16, 50, 0.9);
    text-align: center;
    padding: 80px 0;
    color: var(--color-white);
}

.philosophy h2 {
    color: var(--color-white);
    margin-bottom: 50px;
}

.carousel-container {
    position: relative;
    padding: 0 50px; 
    margin: 0 auto;
    max-width: 900px;
}
.carousel-viewport {
    overflow: hidden;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.philosophy-item {
    flex: 0 0 calc(100% / 3);
    min-width: calc(100% / 3);
    text-align: center;
    padding: 0 20px;
}
.philosophy-item h3 {
    font-size: 1.5rem;
    color: var(--color-white);
}
.philosophy-item p {
    font-size: 0.95rem;
    color: var(--color-gray);
}
.icon-circle {
    width: 80px;
    height: 80px;
    background-color: var(--color-white);
    color: var(--color-navy);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.icon-circle iconify-icon { 
    font-size: 2.5rem;
    vertical-align: middle;
    color: var(--color-navy);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
}
.nav-arrow:hover { background: rgba(255, 255, 255, 0.3); }
.nav-arrow.left { left: 0; }
.nav-arrow.right { right: 0; }
.carousel-dots { margin-top: 40px; text-align: center; }
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.dot.active {
    background-color: var(--color-white);
    width: 12px;
    height: 12px;
}


/* --------------------
   6. Excellence Section (FONDO CLARO - MEJORADA)
   -------------------- */
.excellence {
    background-color: var(--color-light-bg); 
    padding: 80px 0;
    color: var(--color-navy); 
}

.excellence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.image-side {
    position: relative;
    text-align: center;
}

.green-blob {
    background-color: var(--color-green);
    border-radius: 0 50px 0 50px;
    padding: 20px;
    display: inline-block;
}

.green-blob img {
    display: block;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.stats-box {
    background-color: var(--color-navy);
    padding: 40px;
    border-radius: 10px;
    color: var(--color-white);
}

.stats-box h3 {
    font-size: 2rem;
    color: var(--color-white);
}

.progress-item {
    margin-top: 25px;
}

.progress-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-white);
}

.excellence h2 {
    color: var(--color-navy);
}

.progress-bar {
    background-color: rgba(255, 255, 255, 0.1);
    height: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--gradient-blue);
    transition: width 1s ease-out;
}


/* --------------------
   7. Elevation Section
   -------------------- */
.elevation {
    background-color: var(--color-navy);
    text-align: center;
    padding: 80px 0;
}

.elevation h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.elevation p {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-white);
}

/* --------------------
   8. Contact Quote Section (MEJORADO - Index/Servicios)
   -------------------- */
.contact-quote {
    background-color: var(--color-blue-dark);
    padding: 80px 0;
}

.contact-highlight-section {
    background-color: var(--color-navy);
    padding: 100px 0;
}

.contact-highlight-section .contact-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: stretch;
}

.info-highlight {
    background-color: var(--color-blue-dark);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-highlight .subtitle {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 30px;
}

.section-title-highlight {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-white);
}

.btn-lg-info {
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.form-highlight {
    background-color: var(--color-navy);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-form-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-quote-blue);
    display: inline-block;
    padding-bottom: 5px;
}

.quote-form input, .quote-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
}

.quote-form input::placeholder, .quote-form textarea::placeholder {
    color: var(--color-gray);
}

.quote-form textarea {
    height: 150px;
    resize: none;
}

.contact-info-block {
    margin-bottom: 30px;
    padding-left: 40px;
    position: relative;
}

.contact-info-block .label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray);
}

.contact-info-block .value {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-white);
}

.contact-info-block iconify-icon {
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-quote-blue); 
}


/* --------------------
   9. Footer
   -------------------- */
.footer {
    background-color: var(--color-navy);
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col li a { 
    color: var(--color-gray); 
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    display: inline-block; 
}

.footer-col li a:hover {
    color: var(--color-white); 
}

.logo-col p {
    font-size: 0.9rem;
    margin-top: 15px;
    color: var(--color-gray);
}

.footer-bottom {
    padding: 20px 0;
    font-size: 0.8rem;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--color-white);
    margin-left: 10px;
    text-decoration: none;
    border: 1px solid var(--color-white);
    padding: 5px 8px;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background-color: var(--color-quote-blue);
    border-color: var(--color-quote-blue);
}

/* --------------------
   10. Estilos de Páginas (Comunes)
   -------------------- */
.hero-services {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background: url('../img/heroweb.webp') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-services .hero-overlay {
    background-color: rgba(7, 16, 50, 0.741);
}

.hero-services .hero-content {
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

.hero-services h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-services p {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 700px;
}

.services-grid-section {
    background-color: var(--color-blue-dark);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.section-title {
    text-align: center;
    color: var(--color-white);
}

.deep-dive-service {
    background-color: var(--color-navy);
    padding: 80px 0;
}

.deep-dive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ----------------------------------
   Estilos de Páginas (Específicos)
   ---------------------------------- */

/* Hero de Servicio Individual (hero-single-service) */
.hero-single-service {
    position: relative;
    height: 90vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.hero-single-service .hero-overlay {
    background: rgba(7, 16, 50, 0.9);
}

.hero-single-service .hero-content {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    padding-left: 15px;
    aling
}

.hero-single-service .service-category {
    font-size: 0.9rem;
    color: var(--color-quote-blue);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-single-service h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-single-service .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--color-gray);
}

/* Sección 1: Intro y CTA (Claro - MEJORADA) */
.service-intro-cta {
    background-color: var(--color-light-bg);
    padding: 80px 0;
}
.intro-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr; 
    gap: 60px;
    align-items: center;
}
.intro-text h2 {
    color: var(--color-navy);
}
.intro-text p {
    color: #444;
    margin-bottom: 30px;
}

.intro-box-highlight { 
    background-color: var(--color-navy); 
    color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.intro-box-highlight ul {
    list-style: none;
    padding: 0;
}

.intro-box-highlight li {
    font-size: 1.1rem;
    color: var(--color-white);
    font-weight: 400;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}
.intro-box-highlight .icon-checkmark {
    color: var(--color-quote-blue); 
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5rem;
}
.intro-box-highlight iconify-icon {
    font-size: 1.2rem;
    vertical-align: middle;
}


/* Sección 2: Beneficios y Alcance (Oscuro) */
.service-benefits-scope {
    background-color: var(--color-navy);
    padding: 80px 0;
    text-align: center;
}
.scope-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.scope-header {
    grid-column: 1 / -1; 
    margin-bottom: 30px;
}
.scope-header h2 {
    color: var(--color-white);
}
.scope-header .subtitle {
    color: var(--color-gray);
}
.scope-item {
    background-color: var(--color-blue-dark);
    padding: 30px 15px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
}
.scope-item:hover {
    background-color: var(--color-quote-blue); 
    transform: translateY(-5px);
}
.scope-item:hover h3, .scope-item:hover p, .scope-item:hover .icon-xl {
    color: var(--color-navy); 
}
.scope-item h3 {
    font-size: 1.25rem;
    color: var(--color-white);
}
.scope-item p {
    font-size: 0.9rem;
    color: var(--color-gray);
}
.icon-xl {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #00c9ff;
}
.icon-xl iconify-icon {
    font-size: 3rem;
    vertical-align: middle;
    color: inherit;
}

/* Ajuste específico para la sección de Cuartos Limpios (Grid de 3) */
.cleanroom-services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.scope-item:hover .icon-xl iconify-icon {
    color: var(--color-navy) !important;
}


/* Sección 3: Caso de Éxito (Claro) */
.service-case-study {
    background-color: var(--color-light-bg);
    padding: 80px 0;
}
.case-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    align-items: center;
}
.case-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.case-text {
    text-align: left;
}
.case-text .tag {
    color: var(--color-quote-blue);
    text-transform: uppercase;
    font-weight: 700;
}
.case-text h2 {
    color: var(--color-navy);
    margin-top: 5px;
}
.case-text p {
    color: #444;
    margin-bottom: 30px;
}

/* Lista de Industrias */
.industry-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.industry-list li {
    font-size: 1.1rem;
    color: var(--color-navy);
    font-weight: 600;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}
.industry-list iconify-icon {
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.5rem;
    color: var(--color-quote-blue);
    vertical-align: sub;
}


/* Cuartos Limpios: Tabla de Certificación */
.certification-matrix-section {
    background-color: var(--color-blue-dark);
    padding: 80px 0;
    text-align: center;
}
.certification-table-container {
    padding: 0 15px;
}
.responsive-table-wrapper {
    overflow-x: auto; 
    margin: 30px auto;
    max-width: 100%;
}
.data-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.data-table thead th {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 15px 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.data-table tbody td {
    background-color: var(--color-white);
    color: var(--color-navy);
    padding: 12px 10px;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    font-weight: 600;
}
.data-table tbody tr:nth-child(even) td {
    background-color: var(--color-light-bg);
}
.table-note {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-top: 15px;
}
.highlight-iso-5 { border-bottom-color: var(--color-quote-blue); } 
.highlight-iso-7 { border-bottom-color: #00c9ff; } 
.highlight-iso-8 { border-bottom-color: var(--color-green); }


/* Cuartos Limpios: Productos/Equipos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 3px solid #00c9ff;
}

.product-card:hover {
    border-top-color: var(--color-quote-blue);
    transform: translateY(-3px);
    transition: all 0.3s;
}

.product-card h3 {
    color: var(--color-navy);
    font-size: 1.2rem;
    min-height: 50px;
}

.product-card p {
    color: #444;
    font-size: 0.9rem;
}

.product-icon {
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 15px;
}
.product-icon iconify-icon {
    color: inherit;
    vertical-align: middle;
}

/* Cuartos Limpios: Aplicaciones y Cobertura (Reestructurada) */
/* ... (El resto del CSS se mantiene igual hasta la sección de Applications/Coverage) ... */

/* --------------------
   NUEVA SECCIÓN: Aplicaciones y Cobertura (REESTRUCTURADA)
   -------------------- */
.applications-coverage-section {
    background-color: var(--color-navy); /* Fondo Oscuro (ok) */
    padding: 80px 0;
}

.coverage-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Mantiene la proporción */
    gap: 60px;
    align-items: flex-start;
}

.applications-block {
    text-align: left;
}

.applications-block .section-title-light,
.applications-block .intro-paragraph-dark {
    color: var(--color-white); /* Texto blanco sobre fondo Navy (ok) */
}

/* Lista de iconos de aplicaciones */
.application-icons {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas para los ítems */
    gap: 15px;
}
.application-icons li {
    font-size: 1rem;
    color: var(--color-gray);
    font-weight: 400;
    margin-bottom: 5px;
    padding-left: 30px;
    position: relative;
    text-align: left;
}
.application-icons li iconify-icon {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.3rem;
    color: var(--color-quote-blue); /* Íconos en color de acento (ok) */
    vertical-align: middle;
}

/* ... (El resto de estilos de Cobertura y Media Queries se mantienen) ... */

.coverage-block {
    text-align: center;
}

.coverage-box {
    background-color: var(--color-blue-dark);
    padding: 40px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.highlight-orange {
    border: 3px solid var(--color-quote-blue);
}

.coverage-box h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.subtitle-small {
    font-size: 0.9rem;
    color: var(--color-gray);
}
.coverage-cities {
    font-weight: 700;
    line-height: 1.5;
    margin-top: 20px !important;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.map-icon-overlay {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 6rem;
    color: var(--color-quote-blue);
    opacity: 0.1;
    transform: rotate(10deg);
}


/* --------------------
   12. Media Queries (Responsiveness)
   -------------------- */

/* Tablet y dispositivos medianos */
@media (max-width: 1200px) {
    .cleanroom-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    
    .hero h1 {
        font-size: 3rem;
        color: var(--color-white);
        background-image: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: var(--color-white);
        text-shadow: none;
    }
    
    .hero-content {
        padding-left: 15px;
        text-align: left;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Header: Ocultar desktop elementos y mostrar móvil */
    .desktop-cta { display: none; } 
    .hamburger { display: block; }
    
    /* Estilo del menú en modo full screen (Off-canvas) */
    .nav {
        display: flex; 
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--color-navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 0; 
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav a {
        font-size: 1.5rem; 
        margin: 15px 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 80%;
        text-align: center;
    }
    
    .nav a.nav-english {
        border-bottom: none;
    }

    .mobile-cta {
        display: inline-flex;
        margin-top: 40px;
        padding: 15px 40px;
        font-size: 1.1rem;
    }
    
    /* Single Service Adjustments */
    .hero-single-service h1 {
        font-size: 2.8rem;
    }
    .intro-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .intro-key-points {
        order: -1;
    }
    .scope-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .case-image {
        order: -1;
    }
    
    /* Who We Are */
    .who-we-are-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .who-we-are-image {
        order: -1;
        text-align: center;
    }

    /* Kawi Meaning */
    .kawi-meaning-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .meaning-image {
        order: -1;
        text-align: center;
    }
    .section-tag-line {
        justify-content: center;
    }
    .section-tag-line::before {
        display: none;
    }

    /* MVV */
    .mvv-grid {
        grid-template-columns: 1fr;
    }

    /* Experience Stats */
    .experience-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .experience-stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .experience-stat-item:nth-child(even) {
        border-right: none;
    }
    .experience-stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
    
    /* Contact Page */
    .contact-grid-large {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-page-info {
        order: -1;
    }

    /* Otras secciones */
    .solid-bases-content { flex-direction: column; }
    .image-box { order: -1; text-align: center; }
    .solid-bases-highlight { border-left: none; border-top: 5px solid var(--color-quote-blue); padding: 40px 30px; }
    .excellence-grid { grid-template-columns: 1fr; }
    .stats-side { order: 1; }
    .contact-highlight-section .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .info-highlight { order: 1; padding: 30px; }
    .form-highlight { order: 0; padding: 30px; }
    .deep-dive-grid { grid-template-columns: 1fr; }
    .deep-dive-image { order: -1; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .logo-col { grid-column: 1 / 3; text-align: center; }
    .bottom-content { flex-direction: column; text-align: center; }
    .social-links { margin-top: 15px; }
    
    /* Soluciones Industriales Grid (2 columnas) */
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Sección 5: Filosofía (Carrusel) */
    .carousel-container {
        padding: 0 40px; 
    }
    .philosophy-item {
        flex: 0 0 50%; 
        min-width: 50%;
        padding: 0 10px;
    }

    /* Cuartos Limpios */
    .applications-coverage-section .coverage-main-grid {
        grid-template-columns: 1fr;
    }
    .cleanroom-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .certification-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil y dispositivos pequeños */
@media (max-width: 768px) {
    
    .hero-content {
        padding-left: 15px;
        text-align: left;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-services h1 {
        font-size: 2rem;
    }
    .hero-single-service h1 {
        font-size: 2rem;
    }
    .hero-single-service .hero-subtitle {
        font-size: 1rem;
    }

    /* Single Service Adjustments */
    .scope-grid {
        grid-template-columns: 1fr; 
    }
    .intro-box-highlight { 
        padding: 30px 20px;
    }
    .intro-box-highlight li {
        font-size: 1rem;
        padding-left: 25px;
    }
    .cleanroom-services-grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .certification-grid {
        grid-template-columns: 1fr;
    }

    /* Experience Stats */
    .experience-grid {
        grid-template-columns: 1fr; 
    }
    .experience-stat-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .experience-stat-item:last-child {
        border-bottom: none;
    }
    .stat-number {
        font-size: 3rem;
    }
    
    /* Soluciones Industriales Grid (1 columna) */
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA Flotante en Móviles */
    .cta-float {
        bottom: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 10px 15px;
    }

    /* Sección 5: Filosofía (Carrusel) */
    .carousel-container {
        padding: 0; 
    }
    .philosophy-item {
        flex: 0 0 100%; 
        min-width: 100%;
        padding: 0 15px;
    }
    .nav-arrow {
        display: none; 
    }

    .elevation h2 {
        font-size: 2rem;
    }

    /* 404 Page */
    .error-code {
        font-size: 6rem;
    }
    .error-content h1 {
        font-size: 2.2rem;
    }
    .error-message {
        font-size: 1rem;
    }
    .error-actions {
        flex-direction: column;
    }
    .error-actions .btn {
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .logo-col {
        grid-column: 1 / 2;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col ul {
        padding-left: 0;
    }
}
/* --------------------
   NUEVOS ESTILOS: Nosotros Page
   -------------------- */

/* Sección: Quiénes Somos */
.who-we-are-section {
    background-color: var(--color-light-bg);
    padding: 80px 0;
}
.who-we-are-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 60px;
    align-items: center;
}
.who-we-are-text {
    text-align: left;
}
.who-we-are-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Sección: Significado de Kawi (Ajuste de fondo) */
.kawi-meaning-section {
    background-color: var(--color-navy);
    padding: 80px 0;
    color: var(--color-white);
}

.kawi-meaning-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Imagen izquierda, Texto derecha */
    gap: 60px;
    align-items: center;
}

.meaning-text {
    text-align: left;
    color: var(--color-white);
}

.section-tag-line-light {
    font-size: 0.9rem;
    color: var(--color-quote-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}

.section-tag-line { 
    font-size: 0.9rem;
    color: var(--color-quote-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    align-items: center;
    margin-bottom: 5px;
}
.section-tag-line::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-quote-blue);
    margin-right: 10px;
}
.section-tag-line::after {
    display: none; 
}

.intro-paragraph {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-gray);
}
.intro-paragraph.text-white {
    color: var(--color-white);
}

.highlight-quote-light { 
    font-style: italic;
    font-weight: 600;
    color: var(--color-white);
    display: block;
    margin-bottom: 15px;
    border-left: 3px solid var(--color-quote-blue); 
    padding-left: 10px;
}

.meaning-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Sección: Misión, Visión, Valores */
.mvv-section {
    background-color: var(--color-light-bg);
    padding: 80px 0;
    text-align: center;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mvv-item {
    background-color: var(--color-white); 
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mvv-item h2 {
    color: var(--color-navy);
    font-size: 1.8rem;
}

.mvv-item p {
    color: #444;
    font-size: 1rem;
}

.mvv-item ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-top: 20px;
}
.mvv-item ul li {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
}
.mvv-item ul li strong {
    color: var(--color-navy); 
}

.icon-xl {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--color-quote-blue); 
}

/* Sección: Experiencia y Logros */
.experience-section {
    background-color: var(--color-navy);
    padding: 80px 0;
    text-align: center;
}

.experience-header {
    grid-column: 1 / -1; 
    margin-bottom: 40px;
}

.experience-header h2 {
    color: var(--color-white);
}
.experience-header p {
    color: var(--color-gray);
    font-size: 1.1rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.experience-stat-item {
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1); 
}
.experience-stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-quote-blue);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* ----------------------------------
   NUEVA SECCIÓN: PROYECTOS REALIZADOS (Portafolio)
   ---------------------------------- */

.projects-portfolio-section {
    background-color: var(--color-light-bg); /* Fondo blanco/claro */
    padding: 80px 0;
}

.projects-portfolio-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.projects-portfolio-section .section-tag-line-light {
    /* Reutiliza estilo de tag para fondo claro */
    font-size: 0.9rem;
    color: var(--color-quote-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}

.projects-portfolio-section h2 {
    /* Título oscuro sobre fondo claro */
    color: var(--color-navy);
    font-size: 2rem;
    margin-bottom: 10px;
}

.projects-portfolio-section .intro-paragraph-dark {
    /* Párrafo oscuro sobre fondo claro */
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 4 columnas en desktop */
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 200px; /* Altura fija para consistencia visual */
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-info h3 {
    /* Título del proyecto */
    font-size: 1.25rem;
    color: var(--color-navy);
    margin-bottom: 5px;
}

.project-info p {
    /* Descripción del proyecto */
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.project-tag {
    /* Etiqueta de categorías */
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-orange);
    border: 1px solid var(--color-orange);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Media Queries específicas para la sección de Portafolio */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .project-info h3 {
        min-height: auto;
    }
}
/* ----------------------------------
   NUEVOS ESTILOS: MÓDULO NUESTRAS VENTAJAS (Responsivo)
   ---------------------------------- */

.advantages-section {
    background-color: var(--color-navy); /* Mantiene el fondo oscuro para contraste */
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    padding: 20px;
    background-color: var(--color-blue-dark);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.advantage-icon {
    font-size: 3rem;
    color: var(--color-orange); /* Color de acento para los íconos */
    margin-bottom: 15px;
}
.advantage-icon iconify-icon {
    vertical-align: middle;
    color: inherit;
}

.advantage-item h3 {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.4;
}

/* Media Queries específicas para esta sección */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* Botón Flotante */
.btn-whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background: #25d366; color: white; border-radius: 50%; text-align: center; font-size: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 9999; display: flex; align-items: center; justify-content: center; text-decoration: none; animation: pulseGreen 2s infinite; transition: 0.3s; }
.btn-whatsapp-float:hover { background: #128C7E; transform: scale(1.1); }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.7); } 70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
/* ----------------------------------
   NUEVOS ESTILOS: MODAL DE NOTIFICACIÓN
   ---------------------------------- */

.kawi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Máximo z-index para asegurar visibilidad */
    visibility: hidden; /* Oculto por defecto */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kawi-modal-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.kawi-modal-content {
    background-color: var(--color-white);
    color: var(--color-navy);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.kawi-modal-overlay.visible .kawi-modal-content {
    transform: translateY(0);
}

.modal-icon-wrapper {
    font-size: 3rem;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    /* Estilos base, se sobrescriben por éxito/error */
}

/* Estilos de Éxito (Success) */
.kawi-modal-content.success .modal-icon-wrapper {
    background-color: var(--color-green);
    color: var(--color-white);
}

/* Estilos de Error (Error) */
.kawi-modal-content.error .modal-icon-wrapper {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.kawi-modal-content h3 {
    color: var(--color-navy);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.kawi-modal-content p {
    color: #666;
    margin-bottom: 30px;
}
/* ----------------------------------
   ESTILOS: 404 Page (Error)
   ---------------------------------- */

.error-404-section {
    /* Centrado de contenido y Full Height */
    height: calc(100vh - 100px); /* Ocupa la altura de la ventana menos el header/footer */
    background-color: var(--color-blue-dark); 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
}

/* Etiqueta 404 pequeña (visible solo en móvil/ajuste) */
.error-tag { 
    display: none; 
}

/* Estilo del código de error GRANDE (visible en desktop) */
.error-code {
    display: block;
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-orange); /* Naranja de la marca */
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.error-content h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 30px;
}

.error-message {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 40px;
}

.error-cta-prompt {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 25px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.error-actions .btn {
    padding: 15px 30px;
    font-size: 1rem;
}

/* Estilo específico para el botón principal de la 404 (azul gradiente) */
.btn-error-primary {
    background: var(--gradient-blue);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 201, 255, 0.4);
    border: none;
}

/* Estilo específico para el botón secundario (azul sólido) */
.btn-error-secondary {
    /* Utilizamos una variante de azul más oscura pero aún brillante */
    background-color: #0066ff; 
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
    border: none;
}

.error-icon-bottom {
    font-size: 4rem;
    margin-top: 40px;
    color: var(--color-orange); /* Color de acento para el icono de advertencia */
}
.error-icon-bottom iconify-icon {
    vertical-align: middle;
}


/* Ajuste simple para footer en 404 */
.footer .footer-bottom {
    justify-content: center;
    padding: 15px 0;
}


/* --------------------
   Media Queries para 404
   -------------------- */

@media (max-width: 768px) {
    
    .error-404-section {
        min-height: calc(100vh - 100px);
        padding: 50px 15px;
    }
    
    /* Mostrar la etiqueta pequeña y ocultar el código grande */
    .error-code {
        display: none;
    }
    .error-tag {
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-orange);
        margin-bottom: 10px;
    }
    
    .error-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    .error-message {
        font-size: 1rem;
    }
    .error-actions {
        flex-direction: column;
        gap: 15px;
    }
    .error-actions .btn {
        width: 100%;
        padding: 12px 20px;
    }
    .error-icon-bottom {
        font-size: 3rem;
    }
}