:root {
    /* Colors Palette */
    --bg-main: #0A192F;
    /* Deep dark technical bg (Azul Noche Profundo) */
    --bg-surface: #112240;
    --bg-surface-glass: rgba(17, 34, 64, 0.75);

    --steel-gray: #8892B0;
    /* Gris Platino oscuro para texto secundario */
    --steel-light: #CBD5E1;
    /* Gris Platino */
    --blue-radio: #0077FF;
    /* Azul Radioeléctrico */
    --blue-radio-glow: rgba(0, 119, 255, 0.4);
    --green-valdivia: #2DBE60;
    /* Verde Bosque Valdiviano */
    --green-glow: rgba(45, 190, 96, 0.3);

    --text-primary: #CCD6F6;
    /* Gris Platino brillante */
    --text-muted: #8892B0;

    --border-subtle: rgba(255, 255, 255, 0.08);

    /* Fonts */
    --font-ui: 'Roboto', sans-serif;
    --font-head: 'Montserrat', sans-serif;
    --font-tech: 'JetBrains Mono', monospace;

    /* Layout */
    --nav-height: 100px;
    --container-w: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.tech-font {
    font-family: var(--font-tech);
    color: var(--blue-radio);
    letter-spacing: 1px;
}

.highlight {
    color: var(--blue-radio);
}

.highlight-green {
    color: var(--green-valdivia);
}

.text-muted {
    color: var(--text-muted);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section.dark-bg {
    background-color: #060F1E;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-ui);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--blue-radio);
    color: white;
    box-shadow: 0 4px 15px var(--blue-radio-glow);
}

.btn-primary:hover {
    background: #0088D6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--blue-radio-glow);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--blue-radio), #0059B3);
    color: white;
    position: relative;
    z-index: 1;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0059B3, var(--blue-radio));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--blue-radio-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--steel-gray);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-outline-green {
    background: transparent;
    border: 2px solid var(--green-valdivia);
    color: var(--green-valdivia);
}

.btn-outline-green:hover {
    background: var(--green-glow);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--green-glow);
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-main);
    background-image: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.95)), url('1_inicio/valdivia.png');
    background-size: cover;
    background-position: center top;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background-image: linear-gradient(rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.98)), url('1_inicio/valdivia.png');
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.callsign {
    font-family: var(--font-tech);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.location {
    font-size: 0.75rem;
    color: var(--steel-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--steel-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--blue-radio);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-intranet {
    display: flex;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition-smooth);
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    background-image: url('1_inicio/valdivia.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 119, 255, 0.3) 0%, rgba(10, 25, 47, 0.9) 60%),
        radial-gradient(circle at 20% 80%, rgba(45, 190, 96, 0.15) 0%, rgba(10, 25, 47, 0.85) 50%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(45, 190, 96, 0.1);
    border: 1px solid rgba(45, 190, 96, 0.3);
    border-radius: 50px;
    color: var(--green-valdivia);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--green-valdivia);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(45, 190, 96, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(45, 190, 96, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(45, 190, 96, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(45, 190, 96, 0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--steel-light);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Carousel */
.hero-carousel-wrapper {
    position: relative;
    width: 85%;
    margin: 0 auto;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-carousel-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-carousel-media.active {
    opacity: 1;
    z-index: 2;
}

/* Slider Track */
.hero-slider-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-subtle);
    padding: 1rem 0;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 3rem;
    width: calc(200px * 8);
    /* approximate */
    animation: slide-left 30s linear infinite;
}

.slide-item {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-family: var(--font-tech);
    color: var(--steel-light);
}

.slide-item i {
    color: var(--blue-radio);
    font-size: 1.2rem;
}

@keyframes slide-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Sections Global */
.section-badge {
    font-family: var(--font-tech);
    color: var(--blue-radio);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* Quiénes Somos */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    font-family: var(--font-head);
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--steel-light);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.features-list i {
    color: var(--blue-radio);
    font-size: 1.25rem;
    background: rgba(0, 162, 255, 0.1);
    padding: 0.4rem;
    border-radius: 50%;
}

.about-gallery {
    position: relative;
    height: 480px;
}

.historical-card {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.historical-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 1.5rem 1rem 1rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-tech);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-1 {
    width: 55%;
    height: 210px;
    top: 0;
    left: 0;
    z-index: 2;
}

.card-2 {
    width: 55%;
    height: 210px;
    top: 100px;
    right: 0;
    z-index: 3;
}

.card-3 {
    width: 65%;
    height: 190px;
    bottom: 0;
    left: 10%;
    z-index: 4;
}

.historical-card:hover {
    z-index: 10;
    transform: scale(1.05);
}

/* CB6MAR Section */
.technical-bg {
    background-color: var(--bg-surface);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-valdivia);
    font-family: var(--font-tech);
    font-weight: 700;
    background: rgba(45, 190, 96, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(45, 190, 96, 0.3);
    margin-bottom: 1rem;
}

.blinking-dot {
    width: 10px;
    height: 10px;
    background: var(--green-valdivia);
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.tag-combo {
    font-family: var(--font-tech);
    color: var(--steel-light);
    margin-bottom: 3rem;
}

.tag-combo strong {
    color: var(--text-primary);
}

.diploma-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

.hierarchical-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.list-group-title {
    font-size: 1.2rem;
    color: var(--blue-radio);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-subtle);
}

.list-items span,
.list-items .item-with-desc {
    color: var(--text-primary);
    position: relative;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition-fast);
    cursor: default;
}

.list-items span:hover,
.list-items .item-with-desc:hover {
    background: rgba(0, 119, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.list-items span::before,
.item-with-desc::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 12px;
    width: 10px;
    height: 2px;
    background: var(--border-subtle);
    transition: var(--transition-fast);
}

.list-items span:hover::before,
.item-with-desc:hover::before {
    background: var(--blue-radio);
}

.desc-micro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.map-card {
    border-radius: 12px;
    overflow: hidden;
}

.map-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    font-family: var(--font-tech);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.map-container {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.map-container img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Frecuencias - Modern LCD Cards */
.freq-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.freq-card {
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.freq-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 162, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 162, 255, 0.15);
}

.freq-screen {
    background: #000;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid var(--blue-radio);
}

.freq-screen img {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 120, 0, 0.3));
    /* Naranja suave típico de LCD */
}

.freq-details {
    padding: 2rem;
}

.freq-details h3 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.8rem;
}

.freq-details p {
    color: var(--steel-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.freq-specs {
    list-style: none;
}

.freq-specs li {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
}

.freq-specs li strong {
    color: var(--blue-radio);
    margin-right: 0.5rem;
}

/* Actividades / Masonry */
.masonry-gallery {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: var(--transition-smooth);
}

.masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 162, 255, 0.2);
    opacity: 0;
    transition: var(--transition-fast);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item:hover::after {
    opacity: 1;
}

/* Contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--blue-radio);
    background: rgba(0, 162, 255, 0.1);
    height: max-content;
    padding: 0.8rem;
    border-radius: 12px;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
}

.contact-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--steel-light);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-ui);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-radio);
    background: rgba(0, 0, 0, 0.4);
}

.map-full {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
    background: #05080C;
    padding: 4rem 0 0 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--blue-radio);
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--blue-radio);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--steel-light);
}

.footer-links a:hover {
    color: var(--blue-radio);
    padding-left: 0.5rem;
}

.affiliate-logos {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.partner-logo {
    height: 40px;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-fast);
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
}

.footer-bottom {
    background: #030508;
    padding: 1.5rem 0;
    color: var(--text-muted);
}

.micro-text {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 3rem 2rem;
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--steel-light);
}

.input-with-icon .form-control {
    padding-left: 2.5rem;
}

.text-link {
    color: var(--blue-radio);
    text-decoration: underline;
}

/* Enlaces Destacados - Home */
.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.25rem;
    width: 170px;
    transition: var(--transition-smooth);
}

.link-img-wrapper {
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    padding: 12px;
    transition: var(--transition-fast);
}

.link-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.link-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--steel-light);
    text-align: center;
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 162, 255, 0.15);
    border-color: rgba(0, 162, 255, 0.4);
}

.link-card:hover .link-img-wrapper {
    background: rgba(255, 255, 255, 0.1);
}

.link-card:hover span {
    color: var(--text-primary);
}

/* Inner Pages Header */
.page-content {
    padding-top: var(--nav-height);
    min-height: calc(100vh - 200px);
}

.page-header {
    position: relative;
    padding: 8rem 0 4rem;
    text-align: center;
    background-color: var(--bg-main);
    background-image: linear-gradient(rgba(10, 25, 47, 0.4), rgba(10, 25, 47, 0.98)), url('1_inicio/valdivia.png');
    background-size: cover;
    background-position: center 30%;
    border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 992px) {

    .hero-content,
    .about-grid,
    .diploma-grid,
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .nav-links,
    .btn-intranet {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .masonry-gallery {
        column-count: 2;
    }

    .about-gallery {
        height: 350px;
        margin-top: 3rem;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .masonry-gallery {
        column-count: 1;
    }

    .historical-card {
        position: relative;
        width: 100%;
        height: 200px;
        inset: auto;
        margin-bottom: 1rem;
    }

    .about-gallery {
        height: auto;
        display: flex;
        flex-direction: column;
    }
}