/* ═══════════════════════════════════════════════
   CRISTALARQ.PRO — Estilos personalizados
   Bootstrap 5 complementario
   ═══════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
    --cr-navy: #0a1f3c;
    --cr-blue: #0d47a1;
    --cr-mid: #1565c0;
    --cr-sky: #1e88e5;
    --cr-celeste: #29b6f6;
    --cr-light: #e3f2fd;
    --cr-accent: #00e5ff;
    --cr-white: #ffffff;
    --cr-grey: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a2a3a;
    background: #fff;
}

/* ─── NAVBAR ─── */
.navbar-brand .brand-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--cr-white);
    letter-spacing: -0.5px;
}

.navbar-brand .brand-sub {
    font-size: 0.6rem;
    color: var(--cr-celeste);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-top: -4px;
}

.navbar {
    background: var(--cr-navy) !important;
    padding: 0.8rem 0;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.88rem;
    transition: color .2s;
    padding: 0.5rem 0.9rem !important;
}

.navbar .nav-link:hover {
    color: var(--cr-celeste) !important;
}

.btn-cta-nav {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.45rem 1.2rem !important;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform .2s, box-shadow .2s;
}

.btn-cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ─── DROPDOWN SERVICIOS ─── */
.dropdown-menu-dark-custom {
    background: var(--cr-navy);
    border: 1px solid rgba(41, 182, 246, 0.2);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 220px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.dropdown-menu-dark-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.86rem;
    font-weight: 500;
    transition: background .2s, color .2s;
}

.dropdown-menu-dark-custom .dropdown-item:hover,
.dropdown-menu-dark-custom .dropdown-item:focus {
    background: rgba(41, 182, 246, 0.15);
    color: var(--cr-celeste);
}

.dropdown-menu-dark-custom .dropdown-item i {
    color: var(--cr-celeste);
}


/* ─── HERO ─── */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: url('../../img/hero.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 31, 60, 0.88) 0%, rgba(13, 71, 161, 0.60) 60%, rgba(13, 71, 161, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--cr-accent);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.4rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
}

.hero-section h1 span {
    color: var(--cr-celeste);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.7;
    margin-top: 1.2rem;
}

.hero-authority {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.hero-authority a {
    color: var(--cr-celeste);
    text-decoration: none;
    font-weight: 600;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--cr-sky), var(--cr-celeste));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    transition: all .25s;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(41, 182, 246, 0.5);
    color: #fff;
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    transition: all .25s;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat .number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--cr-celeste);
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── TRUST BAR ─── */
.trust-bar {
    background: var(--cr-navy);
    padding: 2.5rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(41, 182, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon i {
    font-size: 1.4rem;
    color: var(--cr-celeste);
}

.trust-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.92rem;
}

.trust-text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.trust-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    align-self: stretch;
}

/* ─── SECCIONES (compartido) ─── */
.section-tag {
    display: inline-block;
    background: var(--cr-light);
    color: var(--cr-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--cr-navy);
    line-height: 1.2;
}

.section-title span {
    color: var(--cr-sky);
}

/* ─── SERVICIOS ─── */
.services-section {
    padding: 5rem 0;
    background: var(--cr-grey);
}

.service-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(13, 71, 161, 0.18);
}

.service-card .card-img-top {
    height: 230px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 1.5rem;
}

.service-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cr-sky);
    margin-bottom: 0.5rem;
}

.service-card .card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cr-navy);
}

.service-card .card-text {
    font-size: 0.85rem;
    color: #5a7080;
    line-height: 1.6;
}

.btn-service {
    background: var(--cr-light);
    color: var(--cr-blue);
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.3rem;
    font-size: 0.82rem;
    margin-top: 0.8rem;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-service:hover {
    background: var(--cr-blue);
    color: #fff;
}

/* ─── AUTORIDAD ─── */
.authority-section {
    padding: 5rem 0;
    background: #fff;
}

.authority-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.authority-img-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.authority-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--cr-navy);
    color: #fff;
    border-radius: 14px;
    padding: 14px 20px;
}

.authority-badge .big {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--cr-celeste);
}

.authority-badge .sm {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
}

.authority-point {
    display: flex;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.authority-point .dot {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--cr-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.authority-point .dot i {
    color: var(--cr-blue);
    font-size: 1rem;
}

.authority-point p {
    font-size: 0.88rem;
    color: #4a6070;
    margin: 0;
}

.authority-point strong {
    color: var(--cr-navy);
    display: block;
    font-size: 0.92rem;
}

/* ─── GALERÍA / CARRUSEL ─── */
.gallery-section {
    padding: 5rem 0;
    background: var(--cr-navy);
}

.gallery-section .section-title {
    color: #fff;
}

.gallery-section .section-tag {
    background: rgba(41, 182, 246, 0.15);
    color: var(--cr-celeste);
}

.carousel-item img {
    height: 480px;
    object-fit: cover;
    border-radius: 18px;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(10, 31, 60, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 12px 18px;
    text-align: left;
}

.carousel-caption-custom h5 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
}

.carousel-caption-custom p {
    color: var(--cr-celeste);
    font-size: 0.78rem;
    margin: 0;
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

/* ─── FORMULARIO ─── */
.form-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--cr-light) 0%, #fff 100%);
}

.form-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(13, 71, 161, 0.12);
    padding: 3rem;
}

.form-label {
    font-weight: 600;
    color: var(--cr-navy);
    font-size: 0.85rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1.5px solid #d0dff0;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cr-sky);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, var(--cr-blue), var(--cr-sky));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    width: 100%;
    transition: all .25s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.35);
}

.form-promise {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5a7080;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* ─── FOOTER ─── */
.site-footer {
    background: var(--cr-navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 2rem;
}

.footer-logo .brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.footer-logo .brand-sub {
    font-size: 0.6rem;
    color: var(--cr-celeste);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    margin-top: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
    color: var(--cr-celeste);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--cr-celeste);
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.footer-contact-item i {
    color: var(--cr-celeste);
    font-size: 1rem;
    margin-top: 1px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

.footer-seo {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ─── BOTÓN FLOTANTE WHATSAPP ─── */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    transition: transform .25s;
}

.wa-float:hover {
    transform: scale(1.12);
}

.wa-float i {
    color: #fff;
    font-size: 1.7rem;
}

.wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .7;
    }

    50% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .trust-divider {
        display: none;
    }

    .hero-stats {
        gap: 1.5rem;
    }
}

/* ─── BLOG ─── */
.blog-section {
    padding: 5rem 0;
    background: var(--cr-grey);
}

.blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(13, 71, 161, 0.16);
}

.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .5s;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--cr-blue);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
}

.blog-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #8a9ab0;
    margin-bottom: 0.75rem;
}

.blog-meta i {
    margin-right: 4px;
    color: var(--cr-celeste);
}

.blog-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--cr-navy);
    line-height: 1.4;
    margin-bottom: 0.7rem;
}

.blog-excerpt {
    font-size: 0.83rem;
    color: #5a7080;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cr-blue);
    text-decoration: none;
    transition: gap .2s, color .2s;
}

.blog-read-more:hover {
    gap: 10px;
    color: var(--cr-sky);
}

.btn-blog-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cr-navy);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    text-decoration: none;
    transition: all .25s;
}

.btn-blog-all:hover {
    background: var(--cr-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.3);
}

/* ─── PORTAFOLIO FILTRABLE ─── */
.portfolio-page-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 3.5rem;
}

.filter-btn {
    padding: 8px 24px;
    background: #fff;
    border: 1px solid var(--cr-celeste);
    color: var(--cr-navy);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--cr-celeste);
    color: #fff;
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.4);
}

.portfolio-item {
    transition: all 0.4s ease;
}

.portfolio-card {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
    height: 100%;
}

.portfolio-img-wrap {
    overflow: hidden;
    position: relative;
    height: 280px;
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img-wrap img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 31, 60, 0.9) 0%, rgba(10, 31, 60, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-overlay p {
    color: var(--cr-celeste);
    font-size: 0.85rem;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.portfolio-card:hover .portfolio-overlay h4,
.portfolio-card:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* ─── PÁGINA CONTACTO ─── */
.contact-header {
    background: linear-gradient(135deg, var(--cr-navy), #0a2542);
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 5px solid var(--cr-celeste);
}

.contact-page-section {
    padding: 6rem 0;
    background-color: var(--cr-light);
}

.contact-info-panel {
    background: var(--cr-navy);
    color: white;
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    height: 100%;
    box-shadow: 0 15px 35px rgba(13, 71, 161, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(41, 182, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
}

.contact-panel-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.contact-panel-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.contact-info-item .icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(37, 211, 102, 0.15);
    /* Verde WA por defecto */
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-item .info-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.contact-info-item .info-content p,
.contact-info-item .info-content a {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    margin: 0;
    transition: color 0.3s;
}

.contact-info-item .info-content a:hover {
    color: var(--cr-celeste);
}

.contact-social-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.contact-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-social-links a:hover {
    background: var(--cr-celeste);
    color: var(--cr-navy);
    transform: translateY(-3px);
}

.contact-form-wrap {
    background: white;
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-form-wrap h3 {
    font-weight: 800;
    color: var(--cr-navy);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.privacy-note {
    font-size: 0.85rem;
    color: #7b8e9e;
}

@media (max-width: 991px) {
    .contact-form-wrap {
        padding: 2.5rem;
    }
}

@media (max-width: 576px) {
    .contact-form-wrap {
        padding: 1.5rem;
    }

    .contact-info-panel {
        padding: 2rem 1.5rem;
    }
}

/* ─── PÁGINA BLOG ─── */
.blog-header {
    background: linear-gradient(135deg, #0f1c2eb5, var(--cr-navy)), url('../img/hero.png') center/cover;
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 5px solid var(--cr-celeste);
    position: relative;
}

.blog-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 71, 161, 0.35);
    /* Capa oscura azul */
    z-index: 0;
}

.blog-header .container {
    position: relative;
    z-index: 1;
}

.blog-page-section {
    padding: 5rem 0;
    background-color: var(--cr-light);
}

/* Paginación */
.custom-pagination .page-link {
    color: var(--cr-navy);
    border: none;
    background: white;
    margin: 0 4px;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.custom-pagination .page-item.active .page-link,
.custom-pagination .page-link:hover {
    background: var(--cr-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.custom-pagination .page-item.disabled .page-link {
    color: #9cb1c5;
    background: transparent;
    box-shadow: none;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cr-navy);
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--cr-sky);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #e0eaee;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    color: #5a7080;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    transition: color 0.3s, font-weight 0.2s;
}

.widget-list a:hover {
    color: var(--cr-blue);
    font-weight: 600;
}

.widget-list span {
    background: rgba(41, 182, 246, 0.1);
    color: var(--cr-sky);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.2rem;
    align-items: center;
}

.recent-post-item img {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    object-fit: cover;
}

.recent-post-item a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cr-navy);
    text-decoration: none;
    line-height: 1.3;
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.2s;
}

.recent-post-item a:hover {
    color: var(--cr-blue);
}

.recent-post-item .date {
    font-size: 0.75rem;
    color: #8da4b4;
    display: block;
}

.sidebar-cta {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.05), rgba(41, 182, 246, 0.15));
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(41, 182, 246, 0.3);
}

.sidebar-cta h5 {
    color: var(--cr-navy);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.sidebar-cta p {
    font-size: 0.9rem;
    color: #5a7080;
    margin-bottom: 1.5rem;
}