/* ============================================================
   MASC CARIBE — Hoja de Estilos Principal
   Versión: 2.0 | Junio 2026
   ============================================================ */

/* BASE & RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root {
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --gris-borde: #e9ecef;
    --gris-texto: #4a4a4a;
    --negro: #111111;
    --dorado: #caa43d;
    --dorado-hover: #b58f2f;
    --azul-marino: #0f2041;
}

body {
    background-color: var(--blanco);
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   SISTEMA DE ENRUTADO (SPA)
   ============================================================ */
.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.page-view.active-page {
    display: block !important;
    opacity: 1;
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--blanco);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.whatsapp-float:hover {
    transform: scale(1.06) translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* ============================================================
   HEADER & NAVEGACIÓN - VERSIÓN CORREGIDA
   ============================================================ */
header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--gris-borde);
    z-index: 999;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    height: 80px; /* Altura estándar fija */
}

/* === CONTENEDOR DEL LOGO === */
.logo-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
}

/* Logo */
.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.logo img {
    height: 70px; /* Logo más grande */
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gris-texto);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--negro);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo span.logo-fallback {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo span.logo-fallback span {
    color: var(--dorado);
}

/* === NAVEGACIÓN === */
nav {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

nav ul li {
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gris-texto);
    transition: color 0.3s;
    white-space: nowrap;
    padding: 0 2px;
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
}

nav ul li:hover,
nav ul li.active-nav {
    color: var(--azul-marino);
    border-bottom-color: var(--dorado);
}

/* Links dentro del nav */
nav ul li a {
    display: flex;
    align-items: center;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--negro);
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   SLIDER HERO
   ============================================================ */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background-color: var(--negro);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.slide.active-slide {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 1;
}

.glass-box {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px 60px;
    border-radius: 16px;
    max-width: 850px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}

.glass-box p {
    font-size: 1.35rem;
    color: var(--negro);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.3px;
}

/* ============================================================
   SECCIÓN TRIAGE (INICIO)
   ============================================================ */
.triage-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 90px 20px;
    text-align: center;
}

.triage-section h2 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: var(--negro);
}

.triage-section > p {
    font-size: 1.15rem;
    color: var(--gris-texto);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.triage-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.triage-card {
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    padding: 40px 25px;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.triage-card:hover {
    border-color: var(--dorado);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.triage-emoji {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1;
}

.service-emoji {
    font-size: 3.2rem;
    margin-bottom: 15px;
    display: block;
    line-height: 1;
}

.triage-card h3 {
    font-size: 1.15rem;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--negro);
    line-height: 1.4;
}

.triage-link {
    display: inline-flex;
    align-items: center;
    color: var(--dorado);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: auto;
}

.triage-link svg {
    margin-left: 8px;
    transition: transform 0.3s;
}

.triage-card:hover .triage-link svg {
    transform: translateX(5px);
}

/* ============================================================
   CONTENEDORES INTERNOS DE PÁGINAS
   ============================================================ */
.content-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 60px 20px 100px 20px;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gris-texto);
    margin-bottom: 45px;
    text-align: center;
}

/* ============================================================
   CHECKLISTS
   ============================================================ */
.checklist-group {
    margin-bottom: 40px;
}

.checklist-group h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--negro);
    border-left: 3px solid var(--dorado);
    padding-left: 12px;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 14px;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    color: var(--gris-texto);
    font-size: 1.05rem;
}

.checklist li::before {
    content: "•";
    color: var(--dorado);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -0.5em;
    flex-shrink: 0;
}

/* ============================================================
   ENCABEZADOS DE SERVICIO
   ============================================================ */
.service-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    color: var(--negro);
    line-height: 1.3;
}

.service-meta {
    font-size: 1.1rem;
    color: var(--gris-texto);
    margin-bottom: 40px;
}

.service-meta strong {
    color: var(--negro);
    display: block;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.service-meta p {
    margin-bottom: 15px;
}

/* ============================================================
   ACORDEONES
   ============================================================ */
.accordion-wrapper {
    margin: 30px 0;
    border: 1px solid var(--gris-borde);
    border-radius: 4px;
}

.accordion-trigger {
    width: 100%;
    padding: 22px 20px;
    background: var(--gris-claro);
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-trigger:hover {
    background: var(--gris-borde);
}

.accordion-trigger span.arrow {
    transition: transform 0.3s;
    display: inline-block;
}

.accordion-trigger.active span.arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: var(--blanco);
}

.accordion-content.open {
    max-height: 2000px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.inner-steps {
    padding: 35px 25px;
}

.step-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed var(--gris-borde);
}

.step-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-title {
    font-weight: 600;
    color: var(--negro);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.step-desc {
    color: var(--gris-texto);
    font-size: 1rem;
}

/* ============================================================
   DESCARGAS
   ============================================================ */
.download-box {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--gris-borde);
}

.download-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    color: var(--gris-texto);
    transition: color 0.3s;
}

.download-btn:hover {
    color: var(--dorado);
}

.download-btn svg {
    margin-right: 10px;
    fill: currentColor;
}

/* ============================================================
   ZONA DE ACCIÓN Y FORMULARIOS
   ============================================================ */
.action-zone {
    margin-top: 45px;
    text-align: left;
}

.action-text {
    font-size: 1.05rem;
    color: var(--gris-texto);
    margin-bottom: 18px;
}

.btn-evaluar {
    display: inline-block;
    border: 1px solid var(--dorado);
    background-color: var(--blanco);
    color: var(--negro);
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-evaluar:hover {
    background-color: var(--azul-marino);
    color: var(--blanco);
    border-color: var(--azul-marino);
}

.form-wrapper {
    width: 100%;
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.form-wrapper iframe {
    width: 100%;
    height: 960px;
    display: block;
    border: 0;
}

/* ============================================================
   AVISO INSOLVENCIA (lista de espera profesional)
   ============================================================ */
.aviso-insolvencia-box {
    display: none;
    margin-top: 24px;
    padding: 28px 30px;
    background-color: var(--gris-claro);
    border-left: 4px solid var(--dorado);
    border-radius: 4px;
    text-align: left;
    line-height: 1.7;
}

.aviso-insolvencia-box .aviso-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 10px;
}

.aviso-insolvencia-box p {
    font-size: 1rem;
    color: var(--gris-texto);
    margin-bottom: 16px;
}

.aviso-insolvencia-box .aviso-cta {
    display: inline-block;
    margin-top: 6px;
    background-color: var(--azul-marino);
    color: var(--blanco);
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.3s;
}

.aviso-insolvencia-box .aviso-cta:hover {
    background-color: var(--dorado);
    color: var(--negro);
}

/* ============================================================
   SECCIÓN UBICACIÓN
   ============================================================ */
.location-section {
    border-top: 1px solid var(--gris-borde);
    background-color: var(--blanco);
    padding: 70px 20px;
}

.location-container {
    max-width: 950px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.location-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--negro);
}

.location-info p {
    font-size: 1.1rem;
    color: var(--gris-texto);
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.location-info svg {
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}

.map-box {
    width: 100%;
    height: 320px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--gris-borde);
    background: var(--gris-claro);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: var(--gris-claro);
    padding: 60px 20px;
    border-top: 1px solid var(--gris-borde);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gris-texto);
}

footer p {
    margin-bottom: 10px;
}

footer .legal-note {
    font-weight: 500;
    color: var(--negro);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--blanco);
        border-bottom: 1px solid var(--gris-borde);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        height: auto;
        align-items: flex-start;
    }

    nav.show-mobile-menu {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        width: 100%;
        height: auto;
    }

    nav ul li {
        height: auto;
        padding: 8px 0;
        border-bottom: 1px solid var(--gris-borde);
        width: 100%;
        border-bottom-color: transparent;
    }

    nav ul li:hover,
    nav ul li.active-nav {
        border-bottom-color: transparent;
        color: var(--dorado);
    }

    .nav-container {
        height: 70px;
        padding: 8px 15px;
    }

    .logo img {
        height: 45px;
    }

    .logo-title {
        font-size: 0.55rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .logo {
        gap: 12px;
    }

    .glass-box {
        padding: 30px 20px;
        width: 92%;
    }

    .glass-box p {
        font-size: 1.15rem;
    }

    .slider-container {
        height: 300px;
    }

    .triage-container {
        grid-template-columns: 1fr;
    }

    .service-header h2 {
        font-size: 1.9rem;
    }

    .location-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-wrapper iframe {
        height: 1350px;
    }
}

/* ============================================================
   SECCIÓN DIPLOMADOS CORPOPODER
   ============================================================ */
.diplomados-section {
    background: linear-gradient(135deg, var(--azul-marino) 0%, #1a3a6e 100%);
    padding: 70px 20px;
    text-align: center;
}

.diplomados-inner {
    max-width: 760px;
    margin: 0 auto;
}

.diplomados-badge {
    display: inline-block;
    background: rgba(202, 164, 61, 0.2);
    border: 1px solid var(--dorado);
    color: var(--dorado);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.diplomados-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blanco);
    letter-spacing: -0.4px;
    margin-bottom: 18px;
    line-height: 1.3;
}

.diplomados-section p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 36px;
}

.diplomados-section p strong {
    color: var(--blanco);
}

.btn-diplomados {
    display: inline-block;
    background-color: var(--dorado);
    color: var(--negro);
    padding: 15px 38px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-diplomados:hover {
    background-color: #b58f2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(202, 164, 61, 0.35);
}

@media (max-width: 992px) {
    .diplomados-section h2 {
        font-size: 1.6rem;
    }
}

/* ============================================================
   SECCIÓN POR QUÉ MASC CARIBE
   ============================================================ */
.porque-section {
    background-color: var(--gris-claro);
    padding: 80px 20px;
    border-top: 1px solid var(--gris-borde);
    border-bottom: 1px solid var(--gris-borde);
}

.porque-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.porque-header {
    text-align: center;
    margin-bottom: 50px;
}

.porque-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--negro);
    letter-spacing: -0.4px;
    margin-bottom: 14px;
}

.porque-header p {
    font-size: 1.1rem;
    color: var(--gris-texto);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.porque-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.porque-card {
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 6px;
    padding: 32px 28px;
    transition: all 0.3s;
}

.porque-card:hover {
    border-color: var(--dorado);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.porque-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    line-height: 1;
}

.porque-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 10px;
    line-height: 1.4;
}

.porque-card p {
    font-size: 0.97rem;
    color: var(--gris-texto);
    line-height: 1.65;
}

@media (max-width: 992px) {
    .porque-header h2 {
        font-size: 1.7rem;
    }
    .porque-grid {
        grid-template-columns: 1fr;
    }
}

/* Imagen sección diplomados */
.diplomados-imagen {
    margin-bottom: 36px;
    display: flex;
    justify-content: center;
}

.diplomados-imagen img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ================================================
   FORMULARIO DE CONTACTO - NUEVA SECCIÓN
   ================================================ */
.contact-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.contact-container {
    max-width: 720px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-header p {
    color: #6c757d;
    font-size: 1.05rem;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-field {
    display: flex;
    flex-direction: column;
}

.contact-field.full-width {
    grid-column: 1 / -1;
}

.contact-field label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.contact-field label .required {
    color: #dc3545;
}

.contact-field input,
.contact-field textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #fafafa;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #b0b0b0;
}

.btn-enviar-contacto {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #d4af37;
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-enviar-contacto:hover {
    background: #b8962e;
    transform: translateY(-2px);
}

.btn-enviar-contacto:active {
    transform: translateY(0);
}

.contact-privacy {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #6c757d;
}

.contact-privacy a {
    color: #d4af37;
    text-decoration: underline;
}

.contact-privacy a:hover {
    color: #b8962e;
}

/* Responsive */
@media (max-width: 600px) {
    .contact-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-form-wrapper {
        padding: 24px 20px;
    }
    
    .btn-enviar-contacto {
        width: 100%;
        justify-content: center;
    }
}