﻿/*
  MIP S.A. de C.V. — Corporate Portal Design
  Inspired by Modern High-Trust Corporate Platforms (Hospital Satélite Style)
  Version 5.0 · 2025
*/

/* ══════════════════════════════════════════════════════
   DESIGN TOKENS & PALETTE
══════════════════════════════════════════════════════ */
:root {
    /* Paleta corporativa luminosa y limpia */
    --corp-blue:      #0a2540;   /* Azul corporativo principal */
    --corp-navy:      #0f172a;   /* Texto oscuro y topbar */
    --corp-accent:    #ea580c;   /* Naranja industrial de acento CTA */
    --corp-accent-hover: #c2410c;
    --corp-gold:      #d97706;   /* Dorado premium */

    /* Fondos */
    --bg-page:        #f8fafc;   /* Slate 50 ultra limpio */
    --bg-card:        #ffffff;   /* Blanco puro para tarjetas */
    --bg-subtle:      #f1f5f9;   /* Slate 100 para alternar secciones */

    /* Texto */
    --text-heading:   #0f172a;   /* Slate 900 */
    --text-body:      #334155;   /* Slate 700 */
    --text-muted:     #64748b;   /* Slate 500 */
    --text-light:     #f8fafc;

    /* Bordes y sombras */
    --border-light:   #e2e8f0;   /* Slate 200 */
    --border-accent:  #fed7aa;   /* Orange 200 */
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      16px;
    --radius-full:    9999px;

    /* Sombras elevadas corporativas */
    --shadow-sm:      0 1px 3px rgba(15,23,42,0.05);
    --shadow-card:    0 10px 25px -5px rgba(15,23,42,0.06), 0 8px 10px -6px rgba(15,23,42,0.04);
    --shadow-hover:   0 20px 35px -10px rgba(15,23,42,0.12), 0 10px 15px -5px rgba(15,23,42,0.06);
    --shadow-glow:    0 4px 20px rgba(234,88,12,0.3);

    /* Tipografía */
    --font-heading:   'Barlow Condensed', 'Inter', sans-serif;
    --font-body:      'Inter', system-ui, -apple-system, sans-serif;

    /* Compatibilidad calc */
    --primary-color:  #0a2540;
    --accent-color:   #ea580c;
    --accent-hover:   #c2410c;
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 34px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }

p { color: var(--text-body); margin-bottom: 1rem; }

a { text-decoration: none; color: var(--corp-blue); transition: all 0.2s; }
a:hover { color: var(--corp-accent); }

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════════════════════
   LAYOUT CONTAINER & SECTIONS
══════════════════════════════════════════════════════ */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section { padding: 5rem 0; position: relative; }

/* Títulos de sección estilo portal */
section h2 { text-align: center; margin-bottom: 0.75rem; color: var(--corp-blue); }
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--corp-accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}
.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════
   TOP BAR HEADER (Estilo Hospital Satélite)
══════════════════════════════════════════════════════ */
.top-bar {
    background-color: var(--corp-navy);
    color: #f8fafc;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.top-bar-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.top-bar-info span { display: inline-flex; align-items: center; gap: 0.3rem; }
.top-bar-info a { color: #f8fafc; font-weight: 500; }
.top-bar-info a:hover { color: var(--corp-accent); text-decoration: underline; }
.top-bar-accessibility {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.access-label {
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.2rem;
}
.top-bar-accessibility button {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.top-bar-accessibility button:hover {
    background: var(--corp-accent);
    border-color: var(--corp-accent);
    color: #ffffff;
}

@media (max-width: 768px) {
    .top-bar-accessibility { display: none; }
    .top-bar-info { gap: 0.75rem; font-size: 0.75rem; justify-content: center; width: 100%; }
}

/* ══════════════════════════════════════════════════════
   MAIN FIXED NAVIGATION HEADER (Alto Contraste Azul Marino)
══════════════════════════════════════════════════════ */
header {
    background-color: var(--corp-blue);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    min-height: 72px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.logo-container img { height: 46px; width: auto; }
.logo-brand { display: flex; flex-direction: column; }
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 1px;
}
.logo-subtext {
    font-size: 0.72rem;
    color: #cbd5e1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

nav a {
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.3rem 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #f97316;
    transition: width 0.25s ease;
    border-radius: 2px;
}
nav a:hover { color: #f97316 !important; text-decoration: none; }
nav a:hover::after { width: 100%; }

.nav-calc-link {
    background-color: var(--corp-accent) !important;
    color: #ffffff !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-glow) !important;
    transition: all 0.25s ease !important;
}
.nav-calc-link::after { display: none !important; }
.nav-calc-link:hover {
    background-color: var(--corp-accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(234,88,12,0.4) !important;
}

@media (max-width: 991px) {
    header .container { flex-direction: column; gap: 0.5rem; padding: 0.5rem 1rem; min-height: auto; }
    nav { flex-wrap: wrap; justify-content: center; gap: 0.4rem 0.75rem; }
    nav a { font-size: 0.72rem; padding: 0.2rem 0; letter-spacing: 0.3px; }
    .nav-calc-link { padding: 0.4rem 0.9rem !important; font-size: 0.72rem !important; }
    .logo-container img { height: 36px; }
    .logo-text { font-size: 1.05rem; }
    .logo-subtext { font-size: 0.65rem; }
}

/* ══════════════════════════════════════════════════════
   HERO SECTION (Hospital Satélite Portal Style)
══════════════════════════════════════════════════════ */
#hero {
    position: relative;
    padding: 6rem 0 7rem;
    background:
        linear-gradient(135deg, rgba(10,37,64,0.92) 0%, rgba(15,23,42,0.85) 100%),
        url('../Images/Fondo.jpg') center/cover no-repeat;
    color: #ffffff;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(234,88,12,0.15), transparent 50%);
    pointer-events: none;
}

#hero .container {
    position: relative;
    z-index: 2;
    max-width: 950px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
}

#hero h1 {
    color: #ffffff;
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.08;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#hero p {
    color: #e2e8f0;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    max-width: 650px;
    border-left: 4px solid var(--corp-accent);
    padding-left: 1.25rem;
    line-height: 1.6;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-actions button,
.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    background-color: var(--corp-accent);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-glow);
}
.hero-actions button:hover {
    background-color: var(--corp-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(234,88,12,0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.25rem;
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-md);
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}
.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--corp-blue);
    border-color: #ffffff;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════
   SECCIÓN INICIO (Nosotros resumen)
══════════════════════════════════════════════════════ */
#inicio {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

#inicio .container {
    max-width: 950px;
    text-align: center;
}

#inicio h2 {
    font-size: 2.2rem;
    color: var(--corp-blue);
    margin-bottom: 1.25rem;
}
#inicio .color-titulo { color: var(--corp-accent); }
#inicio p {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   SERVICIOS INDUSTRIALES (Crisp Corporate Grid)
══════════════════════════════════════════════════════ */
#servicios { background-color: var(--bg-page); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--corp-blue);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: background 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-accent);
}
.service-card:hover::before { background: var(--corp-accent); }

.service-card .icon {
    width: 56px;
    height: 56px;
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--corp-accent);
}

.service-card h3 {
    color: var(--corp-blue);
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.65;
    margin: 0;
}

/* ══════════════════════════════════════════════════════
   QUIÉNES SOMOS / MISIÓN & VISIÓN
══════════════════════════════════════════════════════ */
#quienes-somos {
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.carta-container { width: 100%; display: flex; justify-content: center; }

.carta, .carta-acerca {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.25rem;
    width: 100%;
    max-width: 540px;
    margin: 1rem auto;
    display: none;
}
.carta.active, .carta-acerca.active { display: block; animation: fadeInCard 0.4s ease; }

@keyframes fadeInCard { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.carta h3, .carta-acerca h3 {
    color: var(--corp-blue);
    font-size: 1.35rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.carrusel, .carrusel-acerca {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

#prevBtn, #nextBtn, #prevBtn-acerca, #nextBtn-acerca {
    background: #ffffff;
    color: var(--corp-blue);
    border: 1.5px solid var(--border-light);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.22s;
    font-size: 1rem;
}
#prevBtn:hover, #nextBtn:hover {
    background: var(--corp-blue);
    color: #ffffff;
    border-color: var(--corp-blue);
}

/* ══════════════════════════════════════════════════════
   TRABAJOS Y GALERÍA
══════════════════════════════════════════════════════ */
#trabajos-section { background-color: var(--bg-page); }

#trabajos-section ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 850px;
    margin: 1.5rem auto 2.5rem;
}
#trabajos-section li {
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--corp-blue);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Carrusel de Trabajos */
.carousel-container {
    max-width: 950px;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
}
.carousel { flex: 1; overflow: hidden; border-radius: var(--radius-md); }
.carousel-item { display: none; flex-direction: column; }
.carousel-item.active { display: flex; }
.carousel-item img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.carousel-item .text-content { padding: 1.5rem 0 0; }
.carousel-nav {
    background: #ffffff;
    color: var(--corp-blue);
    border: 1.5px solid var(--border-light);
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.22s;
}
.carousel-nav:hover { background: var(--corp-blue); color: #ffffff; }

/* ══════════════════════════════════════════════════════
   CLIENTES PORTAFOLIO
══════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════
   CLIENTES LOGOS SLIDER
══════════════════════════════════════════════════════ */
#clientes {
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 4rem 0;
    overflow: hidden;
}

.cliente-logos-track {
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
}

.cliente-logos-slide {
    display: flex;
    gap: 4rem;
    animation: scrollLogos 25s linear infinite;
    width: max-content;
}

.cliente-logos-slide img {
    height: 80px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════
   CLIENTES PORTAFOLIO
══════════════════════════════════════════════════════ */
#cliente-info {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    color: var(--text-body);
    box-shadow: var(--shadow-sm);
}
#cliente-info strong { color: var(--corp-blue); }

.cliente-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.cliente-btn {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: all 0.22s;
}
.cliente-btn:hover, .cliente-btn.active {
    background: var(--corp-blue);
    border-color: var(--corp-blue);
    color: #ffffff;
}

/* Carrusel de Clientes — Layout lado a lado (desktop) */
.cliente-carousel-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    max-width: 950px;
    margin: 2rem auto 0;
}

#carousel-container {
    flex: 1;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.client-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
}

#carousel-image {
    flex: 0 0 50%;
    max-width: 50%;
    overflow: hidden;
    border-radius: var(--radius-md);
}

#carousel-image .carousel-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: opacity 0.3s ease;
}

#pie-texto {
    flex: 1;
    min-width: 0;
    max-height: 420px;
    overflow-y: auto;
    padding: 0.5rem 0.25rem 0.5rem 0;
    font-size: 0.93rem;
    color: var(--text-body);
    line-height: 1.7;
    transition: opacity 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
}

#pie-texto::-webkit-scrollbar { width: 5px; }
#pie-texto::-webkit-scrollbar-track { background: transparent; }
#pie-texto::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

#prev-btn, #next-btn {
    background: #ffffff;
    color: var(--corp-blue);
    border: 1.5px solid var(--border-light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.22s;
    font-size: 1rem;
    flex-shrink: 0;
}

#prev-btn:hover, #next-btn:hover {
    background: var(--corp-blue);
    color: #ffffff;
    border-color: var(--corp-blue);
}

/* ── Responsive Clientes ─────────────────────────────── */
@media (max-width: 768px) {
    .cliente-carousel-area {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .cliente-carousel-area #prev-btn,
    .cliente-carousel-area #next-btn {
        order: 0;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    #carousel-container {
        order: 1;
        width: 100%;
        padding: 1rem;
    }

    .client-content-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    #carousel-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    #carousel-image .carousel-image {
        max-height: 260px;
        object-fit: cover;
    }

    #pie-texto {
        max-height: 200px;
        overflow-y: auto;
        padding: 0.5rem 0;
        font-size: 0.88rem;
    }

    .cliente-btn { font-size: 0.75rem; padding: 0.4rem 0.9rem; }
}

/* ══════════════════════════════════════════════════════
   CERTIFICACIONES
══════════════════════════════════════════════════════ */
#certificaciones {
    background-color: var(--bg-subtle);
    padding: 5rem 0;
    border-top: 1px solid var(--border-light);
}

#certificaciones h2 {
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--corp-blue);
    margin-bottom: 2.5rem;
}

.cert-grid {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 950px;
    margin: 0 auto;
}

.cert-logo {
    flex: 0 0 200px;
    text-align: center;
}

.cert-logo img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.cert-list {
    flex: 1;
}

.cert-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
}

.cert-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-list ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.5;
    border-bottom: 1px solid var(--border-light);
}

.cert-list ul li:last-child {
    border-bottom: none;
}

.cert-list ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: #16a34a;
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .cert-grid {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .cert-logo {
        flex: none;
    }

    .cert-list ul li {
        text-align: left;
    }
}

/* ══════════════════════════════════════════════════════
   CALCULADORA DE COTIZACIONES (Clean Corporate UI)
══════════════════════════════════════════════════════ */
#calculadora {
    background-color: var(--bg-page);
    padding: 5.5rem 0 6.5rem;
    border-top: 1px solid var(--border-light);
}

.calc-header { text-align: center; margin-bottom: 3rem; }
.calc-badge {
    display: inline-block;
    background-color: #fff7ed;
    border: 1px solid #ffedd5;
    color: var(--corp-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1.25rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.calc-header h2 { color: var(--corp-blue); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.calc-header h2::after { display: none; }
.calc-header p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* Barra de progreso */
.calc-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}
.calc-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.calc-step-dot span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    background: #ffffff;
    border: 2px solid var(--border-light);
    color: var(--text-muted);
    transition: all 0.3s ease;
}
.calc-step-dot label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.calc-step-dot.active span {
    background: var(--corp-accent);
    border-color: var(--corp-accent);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}
.calc-step-dot.done span {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}
.calc-step-dot.active label,
.calc-step-dot.done label { color: var(--corp-blue); }

.calc-progress-line {
    width: clamp(40px, 8vw, 100px);
    height: 3px;
    background: var(--border-light);
    margin: 0 6px 24px;
    flex-shrink: 0;
    transition: background 0.3s;
}
.calc-progress-line.done { background: #16a34a; }

/* Contenedor principal del Wizard */
.calc-wizard {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}

/* Regla CRÍTICA de visibilidad del wizard */
.calc-step {
    display: none !important;
}
.calc-step.active {
    display: block !important;
    animation: calcFadeIn 0.35s ease;
}
@keyframes calcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calc-step h3 {
    color: var(--corp-blue);
    font-size: 1.4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

/* Service Cards en Wizard */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.service-select-card {
    background: #ffffff;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
}
.service-select-card:hover {
    border-color: var(--corp-accent);
    background: #fff7ed;
    transform: translateY(-3px);
}
.service-select-card.selected {
    border-color: var(--corp-accent);
    background: #fff7ed;
    box-shadow: 0 0 0 3px rgba(234,88,12,0.2);
}
.ssc-icon { font-size: 2.4rem; margin-bottom: 0.75rem; }
.ssc-title { font-weight: 700; color: var(--corp-blue); font-size: 1.05rem; margin-bottom: 0.35rem; }
.ssc-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

/* Campos de Formulario */
.calc-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}
.calc-field { display: flex; flex-direction: column; gap: 0.5rem; }
.calc-field-full { grid-column: 1 / -1; }

.calc-field label {
    color: var(--corp-blue);
    font-size: 0.88rem;
    font-weight: 700;
}

.calc-field input,
.calc-field select,
.calc-field textarea {
    background: #ffffff;
    border: 2px solid #94a3b8;
    border-radius: var(--radius-sm);
    color: #0f172a;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}
.calc-field input::placeholder,
.calc-field textarea::placeholder {
    color: #475569;
    opacity: 1;
}
.calc-field textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}
.calc-field input:focus,
.calc-field select:focus,
.calc-field textarea:focus {
    border-color: var(--corp-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}

.calc-check-group { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; }
.calc-check { display: flex; align-items: center; gap: 0.5rem; color: var(--text-body); font-size: 0.92rem; cursor: pointer; }
.calc-check input[type="checkbox"],
.calc-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--corp-accent); }

.calc-info-note {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    color: #92400e;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* Botones de Navegación */
.calc-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.25rem;
    gap: 1rem;
}
.calc-btn-back {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: var(--text-body);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.calc-btn-back:hover { border-color: var(--corp-blue); color: var(--corp-blue); }

.calc-btn-next {
    background: var(--corp-accent);
    border: none;
    color: #ffffff;
    padding: 0.85rem 2.25rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-glow);
}
.calc-btn-next:hover:not(:disabled) {
    background: var(--corp-accent-hover);
    transform: translateY(-2px);
}
.calc-btn-next:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Botones resultado (Paso 5) */
.calc-nav-resultado { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.calc-btn-wa {
    background: #25d366;
    border: none;
    color: #ffffff;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}
.calc-btn-wa:hover { background: #1ebe57; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(37,211,102,0.3); }
.calc-btn-email {
    background: transparent;
    border: 2px solid var(--corp-blue);
    color: var(--corp-blue);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}
.calc-btn-email:hover { background: var(--corp-blue); color: #ffffff; }
.calc-btn-limpiar {
    background: transparent;
    border: 1px solid var(--border-light);
    color: #64748b;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}
.calc-btn-limpiar:hover { background: #f1f5f9; color: #334155; }

/* Panel Resultado */
.calc-res-header {
    text-align: center;
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
}
.calc-res-header h3 { color: #16a34a; font-size: 1.35rem; margin-bottom: 0.5rem; }
.calc-res-total {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--corp-blue);
    margin: 0.5rem 0;
}
.calc-res-range {
    display: inline-block;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.calc-desglose {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}
.calc-desglose-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.calc-desglose-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}
.calc-desglose-row:last-child { border-bottom: none; }
.calc-desglose-row .value { font-weight: 700; color: var(--corp-blue); }
.calc-desglose-row.total-row .value { color: var(--corp-accent); font-size: 1.25rem; }

.calc-aviso {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
    color: #166534;
    line-height: 1.6;
}

.calc-envio-status {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
}
.calc-envio-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.calc-envio-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.calc-envio-dot.loading { background: var(--corp-accent); animation: calcDotPulse 1.2s infinite; }
.calc-envio-dot.done { background: #16a34a; }
.calc-envio-dot.error { background: #dc2626; }

@keyframes calcDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(234,88,12,0.6); }
    60% { box-shadow: 0 0 0 6px rgba(234,88,12,0); }
    100% { box-shadow: 0 0 0 0 rgba(234,88,12,0); }
}

/* ── Responsive Calculadora ───────────────────────────── */
@media (max-width: 768px) {
    #calculadora { padding: 3.5rem 0 4.5rem; scroll-margin-top: 60px; }
    .calc-wizard { padding: 1.5rem; }
    .calc-header { margin-bottom: 2rem; }

    /* Barra de progreso: reducir tamaño de dots y líneas */
    .calc-progress { margin-bottom: 2rem; gap: 0; }
    .calc-step-dot span { width: 34px; height: 34px; font-size: 0.85rem; }
    .calc-step-dot label { font-size: 0.6rem; }
    .calc-progress-line { width: 20px; margin: 0 2px 20px; }

    .calc-fields-grid { grid-template-columns: 1fr; }
    .service-cards-grid { grid-template-columns: 1fr 1fr; }
    .calc-step h3 { font-size: 1.15rem; margin-bottom: 1.25rem; }
    .calc-nav { flex-direction: column; gap: 0.75rem; }
    .calc-nav .calc-btn-next,
    .calc-nav .calc-btn-back { width: 100%; text-align: center; justify-content: center; }

    /* Ocultar botón Siguiente en pasos de selección (1 y 2) */
    #calcStep1 .calc-nav,
    #calcStep2 .calc-nav { display: none; }

    /* Evitar que inputs muevan el viewport al hacer focus */
    .calc-field input,
    .calc-field select,
    .calc-field textarea {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .calc-progress { flex-wrap: nowrap; }
    .calc-step-dot span { width: 30px; height: 30px; font-size: 0.8rem; }
    .calc-step-dot label { font-size: 0.55rem; letter-spacing: 0; }
    .calc-progress-line { width: 12px; margin: 0 1px 18px; }
    .service-cards-grid { grid-template-columns: 1fr; }
    .calc-res-total { font-size: 2rem; }
}

/* ══════════════════════════════════════════════════════
   VISÍTANOS (Mapa) & CONTACTO
══════════════════════════════════════════════════════ */
#visitanos { background-color: #ffffff; border-top: 1px solid var(--border-light); }
#visitanos iframe { border-radius: var(--radius-lg); margin-top: 2rem; box-shadow: var(--shadow-card); }

#contacto { background-color: var(--bg-page); border-top: 1px solid var(--border-light); }
.contacto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.direccion, .contacto-info {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-card);
}
.direccion h3, .contacto-info h3 {
    color: var(--corp-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════
   COOKIE TOAST (Floating Notification Bottom-Left)
══════════════════════════════════════════════════════ */
.cookie-toast {
    display: none;
    position: fixed;
    bottom: 2.75rem;
    left: 1.5rem;
    max-width: 380px;
    width: calc(100% - 3rem);
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 35px -5px rgba(15,23,42,0.18);
    padding: 1.15rem 1.25rem;
    z-index: 10050;
    animation: toastSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cookie-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.cookie-toast-icon { font-size: 1.5rem; line-height: 1; }
.cookie-toast-text p {
    font-size: 0.84rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.45;
}
.cookie-toast-text a {
    color: var(--corp-accent);
    font-weight: 600;
}
.cookie-toast-buttons {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}
.cookie-button.accept {
    background: var(--corp-accent);
    color: #ffffff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.cookie-button.accept:hover { background: var(--corp-accent-hover); }
.cookie-button.reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.cookie-button.reject:hover { border-color: var(--text-muted); color: var(--text-heading); }

/* ══════════════════════════════════════════════════════
   FIXED STATUS-BAR FOOTER
══════════════════════════════════════════════════════ */
footer.status-bar-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 34px;
    background-color: #0b1329;
    color: #ffffff !important;
    z-index: 9999;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.35);
}

.status-bar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.status-bar-left span { color: #ffffff !important; font-weight: 600; }
.status-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #ffffff !important;
}
.status-bar-right a { color: #fde047 !important; font-weight: 700; text-decoration: underline; }
.status-bar-right a:hover { color: #ffffff !important; }
.status-pill {
    background: #16a34a;
    color: #ffffff !important;
    padding: 0.15rem 0.65rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.72rem;
    box-shadow: 0 0 6px rgba(22,163,74,0.4);
}

@media (max-width: 768px) {
    footer.status-bar-footer { font-size: 0.68rem; padding: 0 0.5rem; }
    .status-bar-right { gap: 0.5rem; width: 100%; justify-content: center; }
    .status-bar-right span,
    .status-bar-right a { white-space: nowrap; }
    .status-bar-left { display: none; }

    /* Flotantes: subir sobre el footer y reducir tamaño */
    .floating-social { bottom: 2.75rem; right: 0.75rem; gap: 0.6rem; }
    .social-btn { width: 46px; height: 46px; }
    .social-btn img { width: 46px; height: 46px; }

    .floating-accessibility { bottom: 2.75rem; left: 0.75rem; }
    .access-btn { width: 44px; height: 44px; font-size: 1.2rem; }
}

/* Floating social buttons */
.floating-social {
    position: fixed;
    bottom: 3.25rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    z-index: 999;
}
.social-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(15,23,42,0.25);
    background: #ffffff;
    transition: transform 0.25s;
}
.social-btn:hover { transform: scale(1.1); }
.social-btn img { width: 54px; height: 54px; border-radius: 50%; }

/* ══════════════════════════════════════════════════════
   WIDGET DE ACCESIBILIDAD FLOTANTE (♿)
══════════════════════════════════════════════════════ */
.floating-accessibility {
    position: fixed;
    bottom: 3.25rem;
    left: 1.5rem;
    z-index: 10000;
}
.access-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--corp-blue);
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(10,37,64,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
}
.access-btn:hover {
    transform: scale(1.1);
    background: var(--corp-accent);
}
.access-menu {
    display: none;
    position: absolute;
    bottom: 64px;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 35px rgba(15,23,42,0.2);
    padding: 0.85rem;
    width: 220px;
    flex-direction: column;
    gap: 0.5rem;
}
.access-menu.open {
    display: flex;
    animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.access-menu-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--corp-blue);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.25rem;
}
.access-menu button {
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-heading);
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}
.access-menu button:hover {
    background: var(--corp-blue);
    color: #ffffff;
    border-color: var(--corp-blue);
}

/* ══════════════════════════════════════════════════════
/* ================================================================
   MODO ALTO CONTRASTE (ACCESIBILIDAD)
   Fondo negro, texto blanco/amarillo, bordes amarillos
================================================================ */

body.high-contrast-mode {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast-mode header,
body.high-contrast-mode section,
body.high-contrast-mode footer,
body.high-contrast-mode .top-bar,
body.high-contrast-mode .service-card,
body.high-contrast-mode .calc-wizard,
body.high-contrast-mode .calc-desglose,
body.high-contrast-mode .calc-envio-status,
body.high-contrast-mode .calc-field input,
body.high-contrast-mode .calc-field select,
body.high-contrast-mode .calc-field textarea,
body.high-contrast-mode .service-select-card,
body.high-contrast-mode .service-select-card.selected,
body.high-contrast-mode .direccion,
body.high-contrast-mode .contacto-info,
body.high-contrast-mode .carta,
body.high-contrast-mode .carta-acerca,
body.high-contrast-mode #cliente-info,
body.high-contrast-mode #carousel-container,
body.high-contrast-mode .client-content-wrapper,
body.high-contrast-mode #pie-texto,
body.high-contrast-mode .cookie-toast,
body.high-contrast-mode .access-menu,
body.high-contrast-mode .carousel-container,
body.high-contrast-mode #trabajos-section ul li,
body.high-contrast-mode #inicio,
body.high-contrast-mode #quienes-somos,
body.high-contrast-mode #clientes,
body.high-contrast-mode #visitanos,
body.high-contrast-mode #contacto,
body.high-contrast-mode #servicios,
body.high-contrast-mode #trabajos-section,
body.high-contrast-mode #calculadora,
body.high-contrast-mode .container,
body.high-contrast-mode .calc-info-note,
body.high-contrast-mode .calc-res-range,
body.high-contrast-mode .calc-badge,
body.high-contrast-mode .calc-step-dot span,
body.high-contrast-mode .calc-step-dot label,
body.high-contrast-mode .calc-progress-line,
body.high-contrast-mode .calc-step h3 {
    background-color: #000000 !important;
    border-color: #ffff00 !important;
    color: #ffffff !important;
}

body.high-contrast-mode h1,
body.high-contrast-mode h2,
body.high-contrast-mode h3,
body.high-contrast-mode h4,
body.high-contrast-mode p,
body.high-contrast-mode span,
body.high-contrast-mode label,
body.high-contrast-mode li,
body.high-contrast-mode strong,
body.high-contrast-mode b,
body.high-contrast-mode .ssc-title,
body.high-contrast-mode .ssc-desc,
body.high-contrast-mode .calc-desglose-row,
body.high-contrast-mode .calc-desglose-title,
body.high-contrast-mode .calc-aviso,
body.high-contrast-mode .calc-info-note,
body.high-contrast-mode .calc-envio-item,
body.high-contrast-mode .section-title p,
body.high-contrast-mode .calc-step-dot label,
body.high-contrast-mode .calc-check {
    color: #ffffff !important;
}

body.high-contrast-mode a,
body.high-contrast-mode nav a,
body.high-contrast-mode .top-bar-info a,
body.high-contrast-mode .status-bar-right a,
body.high-contrast-mode .cookie-toast-text a {
    color: #ffff00 !important;
}

body.high-contrast-mode button,
body.high-contrast-mode .hero-actions button,
body.high-contrast-mode .hero-btn-primary,
body.high-contrast-mode .btn-secondary,
body.high-contrast-mode .calc-btn-next,
body.high-contrast-mode .calc-btn-back,
body.high-contrast-mode .cookie-button,
body.high-contrast-mode #prevBtn,
body.high-contrast-mode #nextBtn,
body.high-contrast-mode .carousel-nav {
    background-color: #ffff00 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border: 2px solid #ffffff !important;
}

body.high-contrast-mode #hero {
    background: #000000 !important;
    background-image: none !important;
}

body.high-contrast-mode #hero h1,
body.high-contrast-mode #hero p {
    color: #ffffff !important;
}

body.high-contrast-mode .top-bar {
    background-color: #000000 !important;
    border-bottom: 2px solid #ffff00 !important;
}

body.high-contrast-mode .top-bar-info span {
    color: #ffffff !important;
}

body.high-contrast-mode footer.status-bar-footer {
    background-color: #000000 !important;
    border-top: 2px solid #ffff00 !important;
}

body.high-contrast-mode .status-bar-left span,
body.high-contrast-mode .status-bar-right span {
    color: #ffffff !important;
}

body.high-contrast-mode .calc-step-dot.active span {
    background-color: #ff8800 !important;
    border-color: #ff8800 !important;
    color: #000000 !important;
}

body.high-contrast-mode .calc-step-dot.done span {
    background-color: #00cc00 !important;
    border-color: #00cc00 !important;
    color: #000000 !important;
}

body.high-contrast-mode .calc-step-dot.active label,
body.high-contrast-mode .calc-step-dot.done label {
    color: #ffff00 !important;
}

body.high-contrast-mode .calc-progress-line {
    background-color: #ffff00 !important;
}

body.high-contrast-mode .calc-field input,
body.high-contrast-mode .calc-field select,
body.high-contrast-mode .calc-field textarea {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: #ffff00 !important;
}
body.high-contrast-mode .calc-field input::placeholder,
body.high-contrast-mode .calc-field textarea::placeholder {
    color: #cccccc !important;
    opacity: 1 !important;
}

body.high-contrast-mode .calc-field label {
    color: #ffff00 !important;
}

body.high-contrast-mode img {
    border: 2px solid #ffff00 !important;
}

body.high-contrast-mode .cookie-toast {
    background-color: #111111 !important;
    border-color: #ffff00 !important;
}

body.high-contrast-mode .cookie-button.accept {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

body.high-contrast-mode .cookie-button.reject {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

body.high-contrast-mode .floating-accessibility .access-btn {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

body.high-contrast-mode .access-menu {
    background-color: #111111 !important;
    border-color: #ffff00 !important;
}

body.high-contrast-mode .access-menu-header {
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.high-contrast-mode .access-menu button {
    background-color: #222222 !important;
    color: #ffffff !important;
    border-color: #ffff00 !important;
}

body.high-contrast-mode .access-menu button:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

body.high-contrast-mode #visitanos iframe {
    border: 3px solid #ffff00 !important;
}

body.high-contrast-mode .calc-check input[type="checkbox"],
body.high-contrast-mode .calc-check input[type="radio"] {
    accent-color: #ffff00 !important;
}

/* ══════════════════════════════════════════════════════
   FAQ SECTION — Preguntas Frecuentes
══════════════════════════════════════════════════════ */
#faq {
    background-color: var(--bg-subtle);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: var(--shadow-card);
}

.faq-item summary {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: var(--text-heading);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background-color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--corp-accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background-color: var(--bg-subtle);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item p a {
    color: var(--corp-accent);
    font-weight: 600;
}

.faq-item p a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq-item summary { padding: 1rem; font-size: 0.95rem; }
    .faq-item p { padding: 0 1rem 1rem; font-size: 0.9rem; }
}

body.high-contrast-mode .faq-item {
    background-color: #111111 !important;
    border-color: #ffff00 !important;
}

body.high-contrast-mode .faq-item summary {
    color: #ffffff !important;
}

body.high-contrast-mode .faq-item summary::after {
    color: #ffff00 !important;
}

body.high-contrast-mode .faq-item p {
    color: #ffffff !important;
}

body.high-contrast-mode .faq-item summary:hover {
    background-color: #222222 !important;
}