/* ==================== FHINIX - Custom Theme (Bootstrap 5 Dark) ==================== */

/* ---------- CSS Variables ---------- */
:root {
    --fh-primary: #DC3546;
    --fh-dark: #0f0f0f;
    --fh-card: #1c1c1e;
    --fh-hover: #2c2c2e;
}

/* ---------- Button overrides ---------- */
.btn-danger {
    background-color: #DC3546 !important;
    border-color: #DC3546 !important;
    color: #000 !important;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: #B82D3A !important;
    border-color: #B82D3A !important;
    color: #000 !important;
}
.text-danger { color: #DC3546 !important; }

/* ---------- Global ---------- */
body {
    background-color: #ffffff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.fw-black { font-weight: 900 !important; }
.letter-spacing { letter-spacing: 3px; }
.letter-spacing-sm { letter-spacing: 1px; }

/* ---------- Navbar ---------- */
.navbar:not(.navbar-dark) {
    background: #ffffff !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    /* Pin Bootstrap 5.3 CSS vars to light theme */
    --bs-navbar-color: #1a1a1a;
    --bs-navbar-hover-color: #DC3546;
    --bs-navbar-active-color: #DC3546;
    --bs-navbar-brand-color: #1a1a1a;
    --bs-navbar-brand-hover-color: #1a1a1a;
    --bs-nav-link-color: #1a1a1a;
    --bs-nav-link-hover-color: #DC3546;
}

/* Admin Navbar Override */
body.admin-page .navbar,
.navbar.navbar-dark {
    background-color: #111827 !important;
    background: #111827 !important;
    color: #ffffff !important;
}

body.admin-page #logoutBtn {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #b91c1c !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Consistent container width inside navbar across all pages */
.navbar > .container,
.navbar > .container-fluid,
.navbar > .container-sm,
.navbar > .container-md,
.navbar > .container-lg,
.navbar > .container-xl {
    max-width: 1320px;
}

.navbar .nav-link {
    color: #1a1a1a !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
}

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

.navbar .dropdown-menu {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    padding: 8px 0;
}

.navbar .dropdown-item:hover {
    background: #e8e8ea;
    color: #1a1a1a;
}

/* Hamburger toggler - siempre visible */
.navbar-toggler {
    padding: 6px 10px;
    color: #1a1a1a;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280%2C0%2C0%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Botón de Contacto Estilo Especial */
.btn-contacto {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 8px 14px 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.67rem;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-contacto:hover {
    background: #e8e8ea;
    color: #dc3545;
    transform: translateY(-2px);
}

.btn-contacto-text {
    line-height: 1;
}

.btn-contacto-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background: white;
    border-radius: 50%;
    color: #dc3545;
    font-size: 0.77rem;
    transition: all 0.3s ease;
}

.btn-contacto:hover .btn-contacto-icon {
    background: #dc3545;
    color: white;
    transform: translateX(3px);
}

/* Menú desplegable mejorado */
.navbar .dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
}

.navbar .dropdown-menu {
    min-width: 250px;
    max-height: 80vh;
    overflow-y: auto;
}

.navbar .dropdown-divider {
    margin: 0.25rem 0;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive para botón de contacto */
@media (max-width: 991px) {
    .btn-contacto {
        margin-top: 10px;
        margin-bottom: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .navbar-nav {
        align-items: stretch;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        align-items: center;
    }
}

/* ---------- Alert Banner ---------- */
.alert-banner {
    font-family: system-ui, -apple-system, sans-serif;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.2);
}

.alert-banner .container {
    max-width: 1200px;
}

.alert-banner strong {
    font-weight: 700;
}

.alert-banner .btn-close-white:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* ---------- Carousel ---------- */
.carousel-section {
    /* Container for carousel */
}

.carousel-section .carousel {
    background-color: #000;
    aspect-ratio: 1210 / 423;
    width: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--fh-primary);
    width: 30px;
    border-radius: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    opacity: 0.5;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 14px;
    height: 14px;
}

/* ---------- Hero ---------- */
.hero-section {
    min-height: 500px;
}

.hero-img {
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

/* ---------- Event Cards ---------- */
.event-card {
    background: var(--fh-card) !important;
    border-radius: 1rem !important;
    transition: all 0.4s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 71, 87, 0.3) !important;
}

.event-card-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.event-card:hover .event-card-img {
    transform: scale(1.05);
}

/* ---------- Training Links ---------- */
.training-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.training-link:hover {
    color: #ffffff !important;
    padding-left: 8px !important;
}

.training-link:hover .bi-arrow-right {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* ---------- Sponsors Section ---------- */
.sponsors-section {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 1;
}

.sponsor-logo {
    height: 65px;
    max-width: 234px;
    object-fit: contain;
}

.sponsor-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
    letter-spacing: 2px;
}

/* ---------- Footer ---------- */
.footer-main {
    background: var(--fh-card);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--fh-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ---------- Login Page ---------- */
.login-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 59, 63, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: pulse 4s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 59, 63, 0.08) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.login-card {
    background: rgba(28, 28, 30, 0.98) !important;
    backdrop-filter: blur(20px);
    border-radius: 1.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6) !important;
    position: relative;
    z-index: 1;
}

/* ---------- Admin Page ---------- */
.admin-page {
    background: var(--fh-dark);
    min-height: 100vh;
}

.admin-page .card {
    background: var(--fh-card) !important;
    border-radius: 1rem !important;
}

/* ---------- Upload Area ---------- */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: var(--fh-primary);
    background: rgba(255, 71, 87, 0.05);
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ---------- Bootstrap Overrides for Dark Admin Forms ---------- */
.admin-page .form-control {
    background: var(--fh-dark);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-page .form-control:focus {
    border-color: var(--fh-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 71, 87, 0.15);
    background: rgba(255, 71, 87, 0.03);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .carousel-hero-section {
        margin-top: -30px;
    }

    .carousel-hero-section .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .carousel-hero-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .carousel-hero-bg {
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-radius: 0 !important;
    }

    .carousel-section .carousel {
        aspect-ratio: auto;
    }

    .carousel-img {
        width: 100% !important;
        height: auto;
        object-fit: contain;
        aspect-ratio: unset;
    }

    .hero-section,
    .hero-img {
        min-height: 350px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 24px;
        height: 24px;
        margin: 0 4px;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
    }

    .carousel-indicators .active {
        width: 24px;
    }
}

/* ---------- Newsletter Form ---------- */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
    background-color: #1a1a1a !important;
    border-color: var(--fh-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 71, 87, 0.25) !important;
    color: #fff !important;
}

.contact-form-footer-svg {
    position: relative;
}

/* ---------- Event Detail Page ---------- */
.event-header-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   SISTEMA DE CONVOCATORIA UNIFORME
   ============================================ */

.event-convocatoria-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a1a;
}

/* JERARQUÍA DE TÍTULOS - Con pesos diferenciados */
.event-convocatoria-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #DC3546;
    padding-bottom: 0.5rem;
}

.event-convocatoria-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.event-convocatoria-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.event-convocatoria-content h5 {
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.event-convocatoria-content h6 {
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* PÁRRAFOS Y TEXTO */
.event-convocatoria-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.event-convocatoria-content strong,
.event-convocatoria-content b {
    font-weight: 600;
    color: #1a1a1a;
}

/* LISTAS */
.event-convocatoria-content ul,
.event-convocatoria-content ol {
    font-size: 1rem;
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}

.event-convocatoria-content li {
    margin-bottom: 0.625rem;
    line-height: 1.7;
}

/* TABLAS - Uniformes y sin bordes */
.event-convocatoria-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.95rem;
}

.event-convocatoria-content thead {
    background-color: #EFEFEF;
}

.event-convocatoria-content thead th {
    background-color: #EFEFEF !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.875rem 1rem !important;
    text-align: left !important;
    border: none !important;
}

.event-convocatoria-content tbody tr {
    background-color: #fff !important;
    border: none !important;
}

.event-convocatoria-content tbody td {
    background-color: #fff !important;
    color: #1a1a1a !important;
    padding: 0.875rem 1rem !important;
    border: none !important;
    font-size: 0.95rem;
}

.event-convocatoria-content tbody tr:hover {
    background-color: #f8f8f8 !important;
}

/* Primera columna en bold */
.event-convocatoria-content tbody td:first-child {
    font-weight: 600;
}

/* ENLACES */
.event-convocatoria-content a {
    color: #DC3546;
    text-decoration: underline;
    font-weight: 500;
}

.event-convocatoria-content a:hover {
    color: #B82D3A;
}

/* LÍNEAS HORIZONTALES */
.event-convocatoria-content hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 1.5rem 0;
}

#eventTabs .nav-link {
    background-color: #EFEFEF;
    color: #1a1a1a;
    border: 1px solid #EFEFEF;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

#eventTabs .nav-link:hover {
    color: #1a1a1a;
    background-color: #e0e0e0;
}

#eventTabs .nav-link.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

@media (max-width: 767px) {
    .event-header-img {
        height: auto;
    }

    #eventTabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #eventTabs::-webkit-scrollbar {
        display: none;
    }

    #eventTabs .nav-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* RESPONSIVE CONVOCATORIA */
    .event-convocatoria-content {
        font-size: 0.9375rem;
    }
    
    .event-convocatoria-content h2,
    .event-convocatoria-content h3,
    .event-convocatoria-content h4 {
        font-size: 1.15rem;
    }
    
    .event-convocatoria-content h5,
    .event-convocatoria-content h6 {
        font-size: 0.9375rem;
    }
    
    .event-convocatoria-content table {
        font-size: 0.85rem;
    }
    
    .event-convocatoria-content thead th,
    .event-convocatoria-content tbody td {
        padding: 0.625rem 0.75rem !important;
        font-size: 0.85rem !important;
    }
}

/* ---------- RSS Feed Widget ---------- */
.rss-section {
    position: relative;
    padding: 0 !important;
}

.rss-section-background {
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('img/download-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 50px;
    margin: 0 20px;
    padding: 80px 0;
}

.rssSwiper {
    padding: 20px 50px 60px 50px;
}

.rssSwiper .swiper-button-next,
.rssSwiper .swiper-button-prev {
    color: #ffffff;
    background: var(--fh-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
    transition: all 0.3s ease;
}

.rssSwiper .swiper-button-next:hover,
.rssSwiper .swiper-button-prev:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.7);
}

.rssSwiper .swiper-button-next:after,
.rssSwiper .swiper-button-prev:after {
    font-size: 22px;
    font-weight: bold;
}

.rssSwiper .swiper-pagination-bullet {
    background: var(--fh-primary);
    opacity: 0.5;
}

.rssSwiper .swiper-pagination-bullet-active {
    opacity: 1;
}

#rssFeedContainer .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 380px !important;
}

#rssFeedContainer .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

#rssFeedContainer .card-img-top {
    transition: transform 0.3s ease;
    height: 170px !important;
    object-fit: cover;
    flex-shrink: 0;
}

#rssFeedContainer .card:hover .card-img-top {
    transform: scale(1.05);
}

#rssFeedContainer .card-body {
    height: 210px !important;
    display: flex;
    flex-direction: column;
}

#rssFeedContainer .card-title,
.rss-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 1.4;
    height: 4.2em;
    margin-bottom: 0.5rem !important;
}

#rssFeedContainer .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#rssFeedContainer .btn-outline-light:hover {
    background-color: var(--fh-primary);
    border-color: var(--fh-primary);
    color: white;
}

@media (max-width: 768px) {
    .rssSwiper {
        padding: 20px 30px 60px 30px;
    }
    
    .rssSwiper .swiper-button-next,
    .rssSwiper .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .rssSwiper .swiper-button-next:after,
    .rssSwiper .swiper-button-prev:after {
        font-size: 18px;
    }
}

/* ---------- Newsletter Subscription ---------- */
.newsletter-subscription-section {
    background: #f8f9fa;
    min-height: 600px;
    display: flex;
    align-items: stretch;
}

.newsletter-container {
    padding: 0;
    max-width: 100%;
}

.newsletter-form-column {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
}

.newsletter-form-wrapper {
    width: 100%;
    max-width: 500px;
}

.newsletter-image-column {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.newsletter-image {
    width: 100%;
    height: 100%;
    max-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.newsletter-title {
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
}

.newsletter-label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
}

.newsletter-input {
    background: white;
    border: 1px solid #dee2e6;
    color: #1a1a1a;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: #adb5bd;
}

.newsletter-input:focus {
    background: white;
    border-color: #dc3545;
    color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    outline: none;
}

.newsletter-submit-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.newsletter-submit-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.newsletter-submit-btn:active {
    transform: translateY(0);
}

.newsletter-footer-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0;
    text-align: left;
}

.newsletter-link {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.newsletter-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .newsletter-form-column {
        padding: 3rem 2rem;
    }
    
    .newsletter-image-column {
        min-height: 400px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .newsletter-form-column {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-image-column {
        min-height: 300px;
        order: -1;
        padding: 1.5rem;
    }
    
    .newsletter-image {
        border-radius: 20px;
    }
    
    .newsletter-submit-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .newsletter-footer-text {
        text-align: center;
    }
}

/* ==================== FAQ CARDS (Contacto Page) ==================== */
.faq-card {
    background: #F5F5F7;
    border-radius: 14px;
    padding: 20px;
    transition: background 0.2s;
}

.faq-card:hover {
    background: #e8e8ea;
}

.faq-question {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.faq-question i {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
    color: #3d3d3d;
}

.faq-answer {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 30px;
}

@media (max-width: 991px) {
    .faq-card {
        margin-bottom: 1rem !important;
    }
}

/* ─── MAGIC BOTTOM NAV (solo móvil) ──────────────────────────── */
.magic-nav { display: none; }

@media (max-width: 768px) {
  body { padding-bottom: 80px; }

  .magic-nav {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
  }

  .magic-nav-inner {
    display: flex;
    width: 100%;
    height: 70px;
    background: #fff;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  .magic-nav-inner li.list {
    position: relative;
    list-style: none;
    flex: 1;
    height: 70px;
    z-index: 1;
  }

  .magic-nav-inner li.list a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
  }

  .magic-nav-inner li.list a .icon {
    position: relative;
    display: block;
    line-height: 75px;
    font-size: 1.5rem;
    text-align: center;
    transition: 0.5s;
    color: #aaa;
  }

  .magic-nav-inner li.list.active a .icon {
    transform: translateY(-5px);
    color: #000;
  }

  .magic-nav-inner li.list a .text {
    position: absolute;
    color: #aaa;
    font-weight: 500;
    font-size: 0.68em;
    letter-spacing: 0.04em;
    transition: 0.5s;
    opacity: 1;
    transform: translateY(20px);
    white-space: nowrap;
  }

  .magic-nav-inner li.list.active a .text {
    transform: translateY(10px);
    opacity: 1;
    color: #555;
  }

  .magic-nav-inner .indicator {
    position: absolute;
    top: 0;
    width: 70px;
    height: 70px;
    background: #F5F5F7;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .magic-nav-inner .indicator::before,
  .magic-nav-inner .indicator::after {
    display: none;
  }
}

/* ─── FOOTER UNIFICADO (home style) ────────────────────────── */
.fh-footer {
    background: #0D0D0D;
    padding: 32px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}
.fh-footer-logo-img {
    display: block;
    height: 44px;
    width: auto;
    margin-bottom: 8px;
}
.fh-footer-right {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.fh-f-link {
    font-size: 12px;
    color: rgba(245,243,238,0.4);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.fh-f-link:hover { color: #F5F3EE; }
.fh-f-social { display: flex; gap: 12px; margin-left: 10px; }
.fh-f-soc {
    width: 44px; height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(245,243,238,0.15);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.fh-f-soc:hover { border-color: rgba(245,243,238,0.5); background: rgba(245,243,238,0.06); }
.fh-f-soc svg { width: 18px; height: 18px; stroke: rgba(245,243,238,0.6); fill: none; stroke-width: 1.5; }
@media (max-width: 767px) {
    .fh-footer { grid-template-columns: 1fr; padding: 24px 20px 32px; gap: 16px; }
    .fh-footer-right { justify-content: flex-start; }
}

/* ==================== PDF Viewer Fullscreen ==================== */
#pdf-wrapper-light:fullscreen,
#pdf-wrapper-dark:fullscreen {
    border-radius: 0 !important;
    background: #000 !important;
    display: flex;
    flex-direction: column;
}

#pdf-wrapper-light:fullscreen object,
#pdf-wrapper-light:fullscreen iframe,
#pdf-wrapper-dark:fullscreen object,
#pdf-wrapper-dark:fullscreen iframe {
    height: 100vh !important;
    width: 100vw !important;
    flex: 1;
}

