:root {
    --orange: #f36c21;
    --orange2: #ff8c45;
    --black: #0d0d0d;
    --ink: #1a1a1a;
    --soft: #f4f4f4;
    --white: #fff;
}

/* =========================================================
   GENERAL
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.main-nav {
    background: rgba(9, 9, 9, 0.96);
    border-bottom: 3px solid var(--orange);
}

.nav-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1.05rem;
}

.brand-copy small {
    font-size: 0.66rem;
    max-width: 330px;
    color: #bbb;
    margin-top: 4px;
}

.navbar .nav-link {
    color: #eee !important;
    font-weight: 600;
    margin: 0 0.15rem;
    padding: 0.75rem 0.8rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--orange) !important;
}

.btn-contact {
    border: 1px solid var(--orange);
    border-radius: 999px;
}

.dropdown-menu {
    border: 0;
    border-top: 3px solid var(--orange);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.dropdown-item:active {
    background: var(--orange);
}

/* =========================================================
   CARRUSEL / HERO
   ========================================================= */

.carousel {
    background: #000;
}

.carousel-inner {
    background: #000;
}

/*
    IMPORTANTE:
    La imagen mantiene su proporción original.

    Recomendación para las imágenes:
    1920 x 800 px
*/
.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/*
    Capa oscura sobre la fotografía.
*/
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.42) 48%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

/*
    Texto del carrusel.
*/
.carousel-caption {
    left: 0;
    right: 0;
    bottom: 14%;
    z-index: 3;
}

.carousel-caption h1 {
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    font-weight: 900;
    max-width: 850px;
    line-height: 1;
}

.carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.35rem);
    max-width: 720px;
}

/*
    Flechas del carrusel.
*/
.carousel-control-prev,
.carousel-control-next {
    width: 7%;
    z-index: 5;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
}

/*
    Indicadores inferiores.
*/
.carousel-indicators {
    z-index: 5;
}

/* =========================================================
   BOTONES
   ========================================================= */

.btn-brand {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.75rem 1.35rem;
}

.btn-brand:hover {
    background: #d9530d;
    border-color: #d9530d;
    color: #fff;
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

.section-space {
    padding: 82px 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--orange);
}

.eyebrow.light {
    color: #ff9b60;
}

.section-heading h2,
.intro-section h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 850;
    line-height: 1.15;
    margin-top: 0.35rem;
}

.intro-section h2 {
    max-width: 900px;
}
/* =========================================================
   LOGO / PRESENTACIÓN
   ========================================================= */

.logo-stage {
    max-width: 420px;
    margin: 0 auto;
    background: radial-gradient(circle, #fff 55%, #f5f5f5);
    border-radius: 30px;
    padding: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    border-bottom: 5px solid var(--orange);
}

.logo-stage img {
    width: 100%;
    max-width: 380px;
    height: auto;
}

/* =========================================================
   CARDS
   ========================================================= */

.news-card,
.benefit-card,
.director-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: 0.25s;
    position: relative;
}

.news-card:hover,
.benefit-card:hover,
.director-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.11);
}

/* =========================================================
   ACTUALIDAD
   ========================================================= */

.news-image-wrap {
    position: relative;
}

.news-image,
.news-placeholder {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.news-placeholder {
    display: grid;
    place-items: center;
    background: #111;
    color: #555;
    font-size: 4rem;
}

.type-pill {
    position: absolute;
    left: 18px;
    bottom: 16px;
    background: var(--orange);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.type-pill.static {
    position: static;
    display: inline-block;
}

.news-card h3,
.benefit-card h3 {
    font-size: 1.28rem;
    font-weight: 850;
}

.news-date {
    font-size: 0.82rem;
    color: #7b7b7b;
    margin-bottom: 0.65rem;
}

.read-more {
    color: var(--orange);
    font-weight: 800;
    text-decoration: none;
}

.read-more:hover {
    color: #c84f0f;
}

/* =========================================================
   INSTAGRAM
   ========================================================= */

.feedwidget-box {
    min-height: 250px;
    border: 1px dashed #ddd;
    border-radius: 24px;
    padding: 22px;
    background: #fff;
}

/* =========================================================
   YOUTUBE
   ========================================================= */

.youtube-section {
    background: radial-gradient(
        circle at 80% 20%,
        #2b2b2b,
        #080808 55%
    );
    position: relative;
    overflow: hidden;
}

.youtube-section::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 80px solid rgba(243, 108, 33, 0.13);
    border-radius: 50%;
    right: -120px;
    top: -190px;
}

/* =========================================================
   HERO DE PÁGINAS INTERNAS
   ========================================================= */

.inner-hero {
    padding: 45px 0;
    background: linear-gradient(120deg, #080808, #252525);
    color: #fff;
    border-bottom: 5px solid var(--orange);
    background-size: cover;
    background-position: center;
}

.inner-hero h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 900;
}

.inner-hero p {
    color: #ccc;
    max-width: 760px;
}

/* =========================================================
   CONTENIDO ENRIQUECIDO
   ========================================================= */

.content-panel {
    max-width: 1000px;
    margin: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    padding: clamp(25px, 5vw, 60px);
    border-left: 5px solid var(--orange);
}

.rich-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

.rich-text h2,
.rich-text h3 {
    font-weight: 900;
    margin-top: 1.8rem;
}

/* =========================================================
   DIRECTORIO
   ========================================================= */

.director-photo {
    height: 280px;
    background: linear-gradient(145deg, #161616, #2f2f2f);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #666;
    font-size: 5rem;
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-role {
    display: inline-block;
    color: var(--orange);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.director-card h3 {
    font-weight: 900;
    margin-top: 0.45rem;
}

.director-card a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

/* =========================================================
   MISIÓN Y VISIÓN
   ========================================================= */

.mv-card {
    padding: 42px;
    border-radius: 28px;
    border: 1px solid #eee;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    border-top: 5px solid var(--orange);
}

.mv-card.dark {
    background: #111;
    color: #fff;
    border-color: #111;
}

.mv-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--orange);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mv-card h2 {
    font-weight: 900;
}

/* =========================================================
   DETALLE DE ACTUALIDAD
   ========================================================= */

.article-header {
    background: #f6f6f6;
    border-bottom: 1px solid #ddd;
}

.article-header h1 {
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    font-weight: 900;
    max-width: 1000px;
    margin: 0.8rem 0;
}

.article-header .lead {
    max-width: 900px;
}

.article-date {
    color: #777;
}

.article-shell {
    max-width: 1000px;
    margin: auto;
}

.article-main-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 35px;
}

.article-body {
    font-size: 1.08rem;
}

/* =========================================================
   DOCUMENTOS ADJUNTOS
   ========================================================= */

.attachments {
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #222;
    padding: 15px 18px;
    background: #f7f7f7;
    border-radius: 14px;
    margin: 10px 0;
}

.attachment-item:hover {
    background: #fff3ec;
    color: #b3470b;
}

/* =========================================================
   BENEFICIOS
   ========================================================= */

.benefit-logo {
    height: 180px;
    display: grid;
    place-items: center;
    padding: 30px;
    background: #fafafa;
}

.benefit-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.small-rich {
    font-size: 0.95rem;
}

/* =========================================================
   CONTACTO
   ========================================================= */

.contact-card {
    padding: 34px;
    border-radius: 26px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.09);
    border-top: 5px solid var(--orange);
}

.form-control,
.form-select {
    padding: 0.85rem 1rem;
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.25rem rgba(243, 108, 33, 0.15);
}

.contact-info {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 30px;
}

.contact-info > i {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--orange);
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.4rem;
}

.contact-info small,
.contact-info a {
    display: block;
}

.contact-info a {
    color: #111;
    font-weight: 800;
    text-decoration: none;
}

/* =========================================================
   ESTADO VACÍO
   ========================================================= */

.empty-state {
    padding: 35px;
    text-align: center;
    background: #fafafa;
    border: 1px dashed #ccc;
    border-radius: 18px;
    color: #777;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #0b0b0b;
    color: #fff;
    border-top: 5px solid var(--orange);
}

.footer-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}

.footer-link {
    color: #fff;
    text-decoration: none;
}

.socials a {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1f1f1f;
    color: #fff;
    text-decoration: none;
    margin-left: 6px;
    font-size: 1.2rem;
}

.socials a:hover {
    background: var(--orange);
}

.footer-bottom {
    border-top: 1px solid #272727;
    color: #888;
    font-size: 0.85rem;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .brand-copy small {
        display: none;
    }

    .nav-logo {
        width: 48px;
        height: 48px;
    }

    .navbar-collapse {
        padding: 1rem 0;
    }

    .btn-contact {
        display: inline-block;
    }

    /*
        Mantiene la imagen completa.
    */
    .hero-image {
        width: 100%;
        height: auto;
    }

    .carousel-caption {
        bottom: 8%;
    }

    .carousel-caption h1 {
        font-size: clamp(1.8rem, 5vw, 3.3rem);
    }

    .section-space {
        padding: 60px 0;
    }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 575.98px) {

    /*
        En móvil seguimos manteniendo
        la proporción original.
    */
    .hero-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .carousel-caption {
        bottom: 5%;
    }

    .carousel-caption h1 {
        font-size: 1.75rem;
        line-height: 1.05;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-caption .btn {
        font-size: 0.85rem;
        padding: 0.55rem 1rem;
    }

    .inner-hero {
        padding: 64px 0;
    }

    .section-space {
        padding: 48px 0;
    }

    .contact-card {
        padding: 22px;
    }

    .director-photo {
        height: 330px;
    }
}