:root {
    --primary: #0056b3;
    --secondary: #00a8cc;
    --accent-top-1: #0056b3;
    --accent-top-2: #dab41c;
    --text: #333;
    --light: #f4f7f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    min-height: 100vh;
    background-color: var(--light);
    color: var(--text);
}

html{
    scroll-behavior: smooth;
}


/* Navbar */
.nav-item {
    position: relative;
    padding-bottom: 0.45rem;
}

.nav-link {
    display: block;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link {
    background: #fff;
    color: #dab41c;
    outline: none;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 14rem;
    display: flex;
    flex-direction: column;
    transform: translateX(-50%) translateY(0.35rem);
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: hidden;
    z-index: 60;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-sublink {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0056b3;
    background: #fff;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-sublink:hover,
.nav-sublink:focus-visible {
    background: #f4f7f6;
    color: #dab41c;
    outline: none;
}

@media (max-width: 768px) {
    .nav-dropdown {
        min-width: min(14rem, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
    }

    .nav-item:hover .nav-dropdown,
    .nav-item:focus-within .nav-dropdown {
        transform: translateX(-50%) translateY(0);
    }

    .nav-sublink {
        text-align: center;
        white-space: normal;
    }
}

/*-------------------------*/

/* Fondos de imágenes */

.fondo-header {
    width: 100%;
    min-height: 20rem;
    background-size: cover;
    background-position: center;
    animation: changeBackground 30s infinite;
}

.fondo-inferior {
    background-image: url('images/frontis.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@keyframes changeBackground {
    0% { background-image: url('images/slider1-1.jpg'); }
    14% { background-image: url('images/slider2-1.jpg'); }
    28% { background-image: url('images/slider4-1.jpg'); }
    46% { background-image: url('images/slider5.jpg'); }
    64% { background-image: url('images/slider6.jpg'); }
    82% { background-image: url('images/slider7.jpg'); }
    100% { background-image: url('images/slider1-1.jpg'); }

}

.container {
    max-width: 600px;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 8px solid #dab41c;
}


/* Estilos para el contenido de las páginas */
.site-content h1 {
    margin-bottom: 10px;
    font-size: 1.9rem;
    line-height: 1.15;
}

.site-content h2 {
    font-size: 1.7rem;
    line-height: 1.2;
}

.site-content h3 {
    font-size: 1.4rem;
    line-height: 1.25;
}

.site-content h4 {
    font-size: 1.2rem;
    line-height: 1.3;
}

.site-content p,
.site-content li {
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: justify;
}

.site-content p + p {
    margin-top: 1rem;
}

.services {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.badge {
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contenedor principal en cuadrícula */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilo base de la tarjeta/botón */
.banner-card {
    text-decoration: none;
    color: #333;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    display: block;
    transition: all 0.3s ease; /* Esta línea hace que la animación sea suave */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Efecto bicolor gubernamental*/ 
.bicolor {
  position: relative;
  min-height: 1px;
}
.bicolor span {
  display: block;
  float: left;
  height: 100%;
}
.bicolor span.azul {
  background: #0f69b4;
  width: 46%;
}
.bicolor span.rojo {
  background: #eb3646;
  width: 54%;
}

/* Hover en tarjetas */
.banner-card:hover {
    transform: translateY(-5px); /* Eleva la tarjeta */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); /* Sombra más profunda */
    border-color: #0056b3; /* Cambia el color del borde */
}

/* Contenido interno */
.banner-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon {
    font-size: 2.5rem;
    background: #f0f7ff;
    padding: 10px;
    border-radius: 50%;
}


/* Colores y espaciados para texto */
.text-wrapper h1 {
    margin: 30px 0 20px;
    font-size: 2rem;
    color: #dab41c;
    font-weight: bold;
}

.text-wrapper h2 {
    margin: 0;
    font-size: 1.7rem;
    color: #0056b3;
}

.text-wrapper h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #0056b3;
}

.text-wrapper h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #dab41c;
}

.text-wrapper p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #666;
}

/* Estilos para imágenes 
y perfiles para la página del equipo directivo */
.leader-profile {
    overflow: flow-root;
    margin-top: 2.5rem;
}

.leader-profile:first-of-type {
    margin-top: 0;
}

.leader-profile h2 + h2 {
    margin-top: 0.15rem;
    margin-bottom: 1rem;
}

.leader-profile__image {
    float: left;
    width: min(220px, 38%);
    margin: 0.35rem 1.5rem 0.75rem 0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

@media (max-width: 640px) {
    .leader-profile__image {
        float: none;
        display: block;
        width: min(100%, 260px);
        margin: 1rem auto;
    }
}

/* Variante para resaltar un botón importante */
.banner-card.highlight {
    background: #0056b3;
}
.banner-card.highlight .text-wrapper h3,
.banner-card.highlight .text-wrapper p {
    color: #ffffff;
}
.banner-card.highlight .icon {
    background: rgba(255,255,255,0.2);
}

/* Estilos para el hero! */
.page-hero-panel {
    position: relative;
    z-index: 10;
    width: min(100%, 56rem);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.5rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(6px);
}

.page-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    border-radius: 9999px;
    background: rgba(218, 180, 28, 0.2);
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Estilos para contenido en general */
/*Su uso principal es para tarjetas e imágenes*/
.page-shell {
    display: grid;
    gap: 1.75rem;
}

.page-intro {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.page-panel {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-top: 8px solid #dab41c;
}

.page-intro-figure {
    overflow: hidden;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.page-intro-figure img {
    width: 100%;
    height: 100%;
    min-height: 20rem;
    object-fit: cover;
    display: block;
}

.page-intro-figure figcaption {
    padding: 1rem 1.25rem;
    color: #5b6470;
    font-size: 0.95rem;
    background: #fff;
}

.page-lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #475569;
}

.page-highlight-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-highlight-card {
    position: relative;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 86, 179, 0.1);
    min-height: 15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.page-highlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.page-highlight-card > * {
    position: relative;
    z-index: 1;
}

.page-highlight-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #fff;
}

.page-highlight-card p {
    margin-bottom: 0;
    color: #fff;
    opacity: 0;
    transform: translateY(0.9rem);
    transition: opacity 0.28s ease, transform 0.28s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (hover: hover) {
    .page-highlight-card:hover::before,
    .page-highlight-card:focus-within::before {
        opacity: 1;
    }

    .page-highlight-card:hover p,
    .page-highlight-card:focus-within p {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: none) {
    .page-highlight-card::before {
        opacity: 1;
        background: rgba(0, 0, 0, 0.18);
    }

    .page-highlight-card p {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-section {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.page-section + .page-section {
    margin-top: 0;
}

.page-section-title {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #0056b3;
}

.page-list {
    padding-left: 1.2rem;
}

.page-list li + li {
    margin-top: 0.6rem;
}

.page-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.page-gallery-card {
    overflow: hidden;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.page-gallery-card img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    display: block;
}

.page-gallery-card figcaption {
    padding: 0.85rem 1rem;
    color: #475569;
    font-size: 0.95rem;
}

.page-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.8rem 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.page-button:hover,
.page-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    outline: none;
}

.page-button-primary {
    background: #0056b3;
    color: #fff;
}

.page-button-secondary {
    background: #fff;
    color: #0056b3;
    border: 1px solid #bfd3ea;
}

.document-frame {
    width: 100%;
    min-height: 34rem;
    border: 1px solid #d7dde5;
    border-radius: 1rem;
    background: #fff;
}

.page-note {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

@media (min-width: 960px) {
    .page-intro {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    }
}

@media (min-width: 768px) {
    .content-with-sidebar {
        grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    }
}

@media (max-width: 640px) {
    .page-hero-panel,
    .page-panel,
    .page-section {
        padding: 1.5rem;
    }

    .page-intro-figure img {
        min-height: 14rem;
    }

    .document-frame {
        min-height: 26rem;
    }
}

/* Fondos de Tarjeta ESPECIFICAMENTE para Documentos Regulatorios */
.doc-card-1 {
    background-image: url('images/doc_regu/1.jpg');
}

.doc-card-2 {
    background-image: url('images/doc_regu/2.jpg');
}

.doc-card-3 {
    background-image: url('images/doc_regu/3.jpg');
}

.doc-card-4 {
    background-image: url('images/doc_regu/4.jpg');
}

.doc-card-5 {
    background-image: url('images/doc_regu/5.jpg');
}

.doc-card-6 {
    background-image: url('images/doc_regu/6.jpg');
}

.doc-card-7 {
    background-image: url('images/doc_regu/7.jpg');
}

.doc-card-8 {
    background-image: url('images/doc_regu/8.jpg');
}

.doc-card-9 {
    background-image: url('images/doc_regu/9.jpg');
}

