:root {
    --primary-color: #0b3d66; /* Formal Blue */
    --secondary-color: #007bff;
    --accent-color: #f39c12;
    --text-color: #333333;
    --light-gray: #f4f7f9;
    --border-color: #e1e4e8;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.sub-title {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.peru-logo { 
    height: 60px !important; 
    width: auto !important;
    max-width: 240px;
    object-fit: contain;
}

/* --- Estilo de Logo Proporcional (Tipo SENAMHI) --- */
.logo-link {
    text-decoration: none;
    display: block;
}

.logo-container-proportional {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre globo y texto */
    padding: 5px 0;
}

.globe-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-img-new {
    height: 60px; /* Tamaño del globo reducido para igualar a SENAMHI */
    width: 60px;
    object-fit: contain;
}

.globe-text-prefix {
    position: absolute;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    display: flex;
}

.ide-blue { color: #0b3d66; }
.space-yellow { color: #f1c40f; }

.logo-text-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid #ddd;
    padding-left: 15px;
    height: 50px; /* Altura corregida y alineada */
}

.logo-text-vertical span {
    display: block;
    color: #444;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.logo-text-vertical .line-1 { font-size: 0.85rem; }
.logo-text-vertical .line-2 { font-size: 1rem; }
.logo-text-vertical .line-3 { font-size: 0.8rem; color: #666; }

@media (max-width: 768px) {
    .logo-container-proportional { gap: 10px; }
    .globe-img-new { height: 80px; width: 80px; }
    .logo-text-vertical { height: 60px; padding-left: 10px; }
    .logo-text-vertical .line-1 { font-size: 0.9rem; }
    .logo-text-vertical .line-2 { font-size: 1rem; }
    .logo-text-vertical .line-3 { font-size: 0.8rem; }
}

.main-logo-img {
    display: none; /* Desactivar la versión anterior de un solo PNG */
}

/* Badge & Hero Enhanced */
.badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.slide h1 span {
    color: var(--secondary-color);
}

.btn-glow {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 10px;
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Stats Bar */
.stats-bar {
    padding: 2.5rem 0;
    color: var(--white);
    position: relative;
    z-index: 20;
}

.bg-primary { background: var(--primary-color); }

.stats-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.stat-plus {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    color: #bdc3c7;
}

.stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* Quick Tools */
.quick-tools {
    padding-top: 6rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tool-card {
    padding: 2rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tool-card i {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
}

.tool-card h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.tool-card p {
    font-size: 0.85rem;
    color: #666;
}

.tool-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.glass {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

/* Highlighting key box */
.comp-box.highlight {
    border: 2px solid var(--secondary-color);
    position: relative;
}

.comp-box.highlight::after {
    content: 'Recomendado';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 700;
}

/* Margin Utilities */
.margin-top-2 { margin-top: 2rem; }
.margin-top-3 { margin-top: 3rem; }

.info-card-blue {
    background: #eef7ff;
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
}

.info-card-blue i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Header & Top Bar Layout */
.top-bar {
    background: #000000;
    border-bottom: 1px solid #222;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 15px;
    transition: var(--transition);
}

.top-links a:hover {
    color: var(--white);
}

.institutional-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.entity-name { 
    font-weight: 700; 
    color: var(--white);
    font-size: 1.5rem;
    max-width: none;
    line-height: 1.2;
    border-left: 2px solid #444;
    padding-left: 20px;
}

.main-header {
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--secondary-color); }

.nav-links .dropdown { position: relative; }
.nav-links .dropdown i { font-size: 0.7rem; margin-left: 3px; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    list-style: none;
    display: none;
    border-top: 2px solid var(--primary-color);
    z-index: 100;
}

.nav-links .dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: #f4f7f9;
    color: var(--primary-color);
}

.academy-link a {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 4px;
    display: inline-block;
}

/* Menu Toggle (SENAMHI Style) */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #447edb;
    border: 1px solid #447edb;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Hero Slider Centered (SENAMHI Style) */
.hero-slider {
    height: 450px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 60, 0.4); /* Slight overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.center-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-center-logo {
    height: 110px;
    margin-bottom: 5px;
}

.hero-svg-logo {
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.hero-center-title {
    font-size: 4rem;
    font-weight: 800;
    color: #f39c12; /* Golden/Accent color for IDESPACE */
    line-height: 1.1;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
}

.hero-center-subtitle {
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary { background: var(--secondary-color); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary-color); margin-left: 10px; }

/* --- Components Section (Identical to Image) --- */
.components-section {
    background-color: #eeeeee; /* Exact light gray background from image */
    padding: 80px 0;
    text-align: center;
}

.section-title-center {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
}

.title-underline {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    height: 4px;
}

.title-underline .line-dark {
    width: 35px;
    background-color: #333;
}

.title-underline .line-light {
    width: 35px;
    background-color: #ccc;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.component-card {
    background: #ffffff;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfdfdf;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-icon-container {
    font-size: 5rem;
    color: #666666; /* All icons are gray in the image */
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-card h3 {
    font-size: 1.25rem;
    color: #4d4d4d;
    margin-bottom: 35px;
    font-weight: 500;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
}

.card-btn {
    background-color: #447edb; /* Exact blue from image */
    color: #fff;
    text-decoration: none;
    padding: 13px 0;
    width: 170px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-align: center;
    display: block;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.card-btn:hover {
    background-color: #3569c0;
}

/* Layout */
.main-layout {
    display: flex;
    gap: 3rem;
    padding: 4rem 0;
}

/* --- Temática Section (Unified with tematica.html) --- */
.tematica-section {
    padding: 80px 0;
    background: #fff;
}

.tematica-title {
    font-size: 2.2rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: left;
}

.tematica-underline {
    width: 40px;
    height: 5px;
    background-color: #3b7dd8;
    margin-bottom: 40px;
}

.tematica-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.filter-link {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    text-transform: uppercase;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
}

.filter-link.active, .filter-link:hover {
    background-color: #3b7dd8;
    color: #fff;
    border-color: #3b7dd8;
}

.tematica-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tematica-card {
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.tematica-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tematica-tag {
    display: inline-block;
    background: #e8f0fd;
    color: #3b7dd8;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    align-self: flex-start;
}

.tematica-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tematica-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tematica-leer {
    color: #3b7dd8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tematica-leer i {
    transition: transform 0.2s;
}

.tematica-leer:hover i {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .tematica-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .tematica-grid { grid-template-columns: 1fr; }
    .tematica-title { font-size: 1.8rem; }
}

/* --- Actividades Section (Estilo SENAMHI) --- */
.actividades-section {
    background: #fff;
    padding: 60px 0;
}

.actividades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.actividad-card {
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.actividad-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.actividad-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.actividad-body {
    padding: 18px;
}

.actividad-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.actividad-body p {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.actividad-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #3b7dd8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.act-leer-mas {
    color: #3b7dd8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.act-leer-mas:hover {
    color: #2a6bc0;
}

/* Navegación Flechas */
.actividades-nav {
    display: flex;
    gap: 5px;
}

.nav-btn {
    width: 35px;
    height: 35px;
    background-color: #3b7dd8;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.nav-btn:hover {
    background-color: #2a6bc0;
}

@media (max-width: 900px) {
    .actividades-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .actividades-grid { grid-template-columns: 1fr; }
}

/* Footer Moderno (Estilo Premium Dark) */
.main-footer {
    background: #000000;
    color: #ffffff;
    padding: 5rem 0 2rem;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid #1a1a1a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-col-brand .footer-logo {
    width: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.footer-col-brand p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #999;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

/* Redes Sociales Estilo NASA */
.social-follow h4 {
    margin-bottom: 1.2rem;
}

.social-icons-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.social-icon-circle {
    width: 38px;
    height: 38px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-circle:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

/* Formulario Simple Footer */
.footer-form {
    margin-top: 1.5rem;
}

.footer-form-group {
    display: flex;
    gap: 0;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.footer-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.footer-form button {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-form button:hover {
    background: #cccccc;
}

/* Libro de Reclamaciones */
.reclamaciones-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    text-decoration: none;
    color: #999;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.reclamaciones-footer:hover {
    color: #fff;
}

.reclamaciones-footer img {
    height: 90px;
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 2rem;
    color: #666;
    font-size: 0.85rem;
}

/* Estilos para la página de Libro de Reclamaciones */
.claims-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 12px;
}

.claims-title {
    text-align: center;
    margin-bottom: 3rem;
}

.claims-form .form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.claims-form h3 {
    font-size: 1.2rem;
    color: #0b3d66;
    margin-bottom: 1.5rem;
}

.claims-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.btn-submit-claim {
    width: 100%;
    padding: 15px;
    background: #0b3d66;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit-claim:hover {
    background: #0057a8;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .claims-grid {
        grid-template-columns: 1fr;
    }
}

.footer-bottom { 
    background: #000000; 
    padding: 2.5rem 0; 
    font-size: 0.75rem; 
    color: #555; 
    border-top: 1px solid #1a1a1a;
    letter-spacing: 0.5px;
    font-family: 'Open Sans', sans-serif;
}

.footer-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item span {
    color: #888;
}

.info-item strong {
    color: #fff;
    margin-left: 5px;
}

.system-status {
    color: #00ff00;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
}

.footer-copyright-text {
    text-align: center;
    color: #444;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.95rem; }
}

@media (max-width: 900px) {
    .components-grid { grid-template-columns: repeat(2, 1fr); }
    .tematica-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-center-title { font-size: 3rem; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: row; justify-content: space-between; padding: 15px 1rem; }
    
    .menu-toggle { display: block; }
    
    .nav-links {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 0;
        gap: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        width: 100%;
        color: #447edb;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 0.9rem;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background: #fdfdfd;
        border-top: none;
        padding-left: 20px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .academy-link a {
        border-radius: 0;
        width: 100%;
        text-align: center;
    }

    .logo-container-proportional { 
        flex-direction: row; /* Horizontal como SENAMHI */
        align-items: center;
        text-align: left;
        gap: 10px; 
    }
    
    .logo-text-vertical {
        border-left: 2px solid #ddd;
        padding-left: 10px;
        height: auto;
    }

    .hero-center-title { font-size: 2.5rem; }
    .card-image { height: 200px; }
    .top-bar .flex-between { flex-direction: column; gap: 10px; text-align: center; }
    .entity-name { font-size: 1.2rem; border-left: none; padding-left: 0; }

    /* Componentes en vertical como imagen */
    .components-grid { grid-template-columns: 1fr; gap: 15px; }
    .component-card { padding: 30px 20px; }
}

/* --- NEWSLETTER NOTIF SYSTEM (Global) --- */
.notif-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    z-index: 7000;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 450px;
    width: 90%;
    font-family: 'Montserrat', sans-serif;
}
.notif-modal.active { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
.notif-modal i.main-icon { font-size: 3.5rem; color: #00acac; margin-bottom: 20px; display: block; }
.notif-modal h3 { font-size: 1.8rem; color: #0b3d66; margin-bottom: 10px; font-weight: 700; }
.notif-modal p { color: #666; margin-bottom: 25px; line-height: 1.5; font-size: 0.95rem; }

.notif-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.notif-social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #555;
    padding: 10px;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s;
    font-size: 0.75rem;
    font-weight: 700;
}
.notif-social-item i { font-size: 1.5rem; }
.notif-social-item:hover { background: #00acac; color: #fff; transform: translateY(-5px); }
.notif-social-item.fb:hover { background: #3b5998; }
.notif-social-item.ig:hover { background: #e1306c; }
.notif-social-item.li:hover { background: #0077b5; }
.notif-social-item.tk:hover { background: #000; }
.notif-social-item.wa:hover { background: #25d366; }
.notif-social-item.yt:hover { background: #ff0000; }

.btn-notif-close { background: #0b3d66; color: #fff; border: none; padding: 12px 35px; border-radius: 50px; cursor: pointer; font-weight: 700; transition: 0.3s; font-family: inherit; }
.btn-notif-close:hover { background: #082d4d; transform: translateY(-2px); }

@media (max-width: 480px) {
    .hero-center-title { font-size: 2rem; }
    .hero-center-subtitle { font-size: 0.9rem; }
    .tematica-filters { justify-content: center; }
    .filter-link { font-size: 0.75rem; padding: 5px 10px; }
}

/* --- Documentos Normativos (Tablet Section) --- */
.normativos-section {
    background-color: #f7f7f7;
    padding: 80px 0;
}

.section-title-left {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
}

.title-underline-left {
    width: 35px;
    height: 4px;
    background-color: #ccc;
    margin-bottom: 50px;
}

.normativos-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.normativos-col {
    flex: 1;
}

.normativo-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 40px;
}

.left-col .normativo-item {
    justify-content: flex-end;
    text-align: right;
}

.right-col .normativo-item {
    justify-content: flex-start;
    text-align: left;
}

.item-text h3 {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 5px;
}

.item-text p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.leer-mas {
    color: #3b7dd8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.blue-check-box {
    width: 45px;
    height: 45px;
    background-color: #3b7dd8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Tablet Styling */
.tablet-frame {
    width: 320px;
    height: 500px;
    background: #fff;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 0 auto;
    padding: 40px 15px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tablet-screen {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.tablet-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.tablet-logo-text {
    font-weight: 800;
    font-size: 1.2rem;
}

.tablet-desc {
    font-size: 0.65rem;
    color: #666;
    line-height: 1.2;
}

.tablet-book-container {
    text-align: center;
    margin-bottom: 15px;
}

.tablet-books {
    width: 120px;
    height: auto;
}

.tablet-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tablet-menu-item {
    background-color: #4d4d44;
    color: #fff;
    padding: 8px;
    font-size: 0.75rem;
    text-align: left;
    border-radius: 2px;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.tablet-menu-item:hover {
    background-color: #66665a;
    color: #fff;
}

.tablet-btn-circle {
    width: 30px;
    height: 30px;
    border: 1px solid #eee;
    border-radius: 50%;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 900px) {
    .normativos-container {
        flex-direction: column;
        gap: 30px;
    }
    .normativos-col {
        width: 100%;
    }
    .left-col .normativo-item, .right-col .normativo-item {
        flex-direction: row-reverse; 
        justify-content: flex-end; /* Pushes to physical left in row-reverse */
        text-align: left;
        gap: 20px;
    }
    .normativo-item {
        width: 100%;
        margin-bottom: 25px;
    }
    .item-text {
        text-align: left !important;
    }
}

/* --- Premium Data Attribution Box (Legal Grade) --- */
.credits-box-premium {
    margin: 60px auto 40px;
    background: linear-gradient(135deg, #0b3d66 0%, #1e3a8a 100%);
    border-radius: 20px;
    padding: 45px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 35px;
    box-shadow: 0 15px 45px rgba(11, 61, 102, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.credits-box-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.credits-box-premium i.fa-copyright {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.credits-content {
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.credits-content h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #f39c12; /* Golden for importance */
}

.credits-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.95;
    color: #f1f5f9;
}

.btn-credits {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #0b3d66 !important;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-credits:hover {
    background: #f39c12;
    color: #fff !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

@media (max-width: 900px) {
    .credits-box-premium {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 25px;
    }
    .credits-box-premium i.fa-copyright {
        font-size: 3.5rem;
    }
}

/* --- Premium Breadcrumb System (Standardized Navigation) --- */
.breadcrumb-premium {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.breadcrumb-premium a {
    color: #ffffff;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.breadcrumb-premium a:hover {
    color: #f39c12;
    text-decoration: none;
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 400;
}

.breadcrumb-current {
    font-weight: 600;
    opacity: 0.9;
}
