/* ══════════════════════════════════════════
   VARIABLES Y RESET
══════════════════════════════════════════ */
:root {
    --primary-blue:  #1d2d45;
    --accent-orange: #f39c12;
    --text-color:    #333333;
    --text-light:    #666666;
    --white:         #ffffff;
    --max-width:     1260px;
}
* { box-sizing: border-box; }
body { font-family: 'Ubuntu', sans-serif; color: var(--text-color); background-color: var(--white); line-height: 1.6; font-size: 16px; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
/* Para la visualización de hiperenlaces */
.link-visible {
    color: #2980b9;
    text-decoration: underline;
    font-weight: 500;
}

.link-visible:hover {
    color: var(--accent-orange);
}

ul { list-style: none; }

/* ══════════════════════════════════════════
   TOP BAR  — layout original:
   [redes sociales] [buscador] [banners/links]
══════════════════════════════════════════ */
.top-bar {background-color: #F1F5F9; padding: 6px 0; font-size: 0.85rem;}
.top-bar-content {display: table; justify-content: space-between; align-items: center; width: 100%; margin: 0 auto; padding: 0 20px; gap: 14px;}

/* Redes sociales */
.social-icons { display: flex; align-items: center; flex: 1 1 auto; padding-left: 5%;}
.social-icons a { margin-right: 15px; color: var(--primary-blue); font-size: 1.5rem; }
.social-icons a .fa-facebook::before { color: #3B5999; }
.social-icons a .fa-twitter::before  { color: #2CA9E1; }
.social-icons a .fa-instagram::before{ color: #AB0298; }
.social-icons a .fa-youtube::before  { color: #F00;    }
.social-icons a:hover { opacity: 0.75; }

/* Buscador en topbar */
/*.search-topbar {float: right; display: flex; align-items: center; background: #fff; border: 1px solid #d0d7e2; border-radius: 20px; padding: 3px 12px; gap: 6px; flex-shrink: 0;}
.search-topbar input {border: none; outline: none; background: transparent; font-size: 0.82rem; width: 160px; font-family: 'Ubuntu', sans-serif; color: var(--text-color);}
.search-topbar button {background: none; border: none; padding: 0; cursor: pointer; color: var(--primary-blue); font-size: 0.85rem; display: flex; align-items: center;}
.search-topbar button:hover { color: var(--accent-orange); }*/

/*********** BUSCADOR DESPLEGABLE ***************/

.search-topbar {height: 40px; border-radius: 50px; padding: 8px; width: auto; transition: 1s !important; border:2px solid #333; float: right;}
/* input */
.search-topbar input {outline: none !important; border: none !important; background: none !important; width: 0 !important; padding: 0 !important; color: var(--text-color);  float: left; font-size: 16px; transition: all .5s !important; line-height: 40px; box-shadow: none !important; line-height: 21px !important;}
.search-topbar input::placeholder {color: #999;}
/* icon */
.search-btn {color: #333; float: right !important; width: 40px !important; height: 40px !important; border-radius: 50px; display: flex !important; justify-content: center !important; align-items: center !important; text-decoration: none !important; transition: .3s !important; width: 20px !important; height: 23px !important;}
.search-btn i {font-size: 20px;}
.search-focus .search-topbar input {width: 150px !important; padding: 0 6px !important; height: auto; outline:0px #fff !important; color: var(--text-color);}
.search-topbar:focus { width: 195px;}
.search-topbar:focus > .search-topbar input {width: 150px !important; padding: 0 6px !important;}
.search-topbar:hover > .search-btn, .search-topbar input:focus + .search-btn, .search-topbar input:not(:placeholder-shown) + .search-btn {background: transparent; color: #f39c12;}

/* Top-links con imágenes de banners (igual al HTML original) */
.top-links {display: flex; align-items: center; gap: 25px; padding: 3px 0 0; margin-right: 50px; flex: 0 1 auto;}
.top-links a {display: inline-flex; align-items: center;}
.top-links a img {width: auto; display: block; transition: opacity 0.2s;}
.top-links a:hover img { opacity: 0.8; }
/* Fallback de texto si la imagen no carga */
.top-links a .link-fallback {background: var(--primary-blue); color: #fff; font-size: 0.72rem; font-weight: 500; padding: 4px 10px; border-radius: 4px; white-space: nowrap;}

/* ══════════════════════════════════════════
   HEADER — navbar ocupa TODO el ancho disponible
══════════════════════════════════════════ */
header {background-color: var(--white); padding: 25px 0 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-bottom: 10px solid #FAA214; position: sticky; top: 0; z-index: 1030;}
header .header-content {display: flex; align-items: center; flex-wrap: wrap; gap: 20px; padding: 0 20px;}
header .logo img { height: 70px; flex-shrink: 0; }
header .flex-shrink-0 {flex: 1 0 auto;}
header .form-search {flex: 0 1 auto;}

/* Nav ocupa el espacio restante entre logo y hamburguesa */
.main-nav {flex: 1 1 100%; min-width: 0; overflow: visible; width: 100%; display: inline-block !important;}
.main-nav > ul.navbar-nav {width: 100%; display: flex !important; flex-wrap: nowrap !important; justify-content: space-between !important; padding: 0; margin: 0;}
.main-nav .nav-link {font-size: 15px !important; font-weight: 300 !important; color: var(--text-color) !important; padding: 6px 4px !important; white-space: nowrap; text-transform: uppercase;}
.main-nav .nav-link:hover, .main-nav .nav-link:focus { color: var(--accent-orange) !important; }
.main-nav .dropdown-menu  { font-size: 0.88rem; padding: 0;}
.main-nav .dropdown-item:hover { color: var(--accent-orange); background: none; }
.main-nav .dropdown-item {border-bottom: 1px solid #dedede; padding: 10px 15px;}
.main-nav li:last-child .dropdown-item {border-bottom: 0px;}

.hamburger-btn {background: none; border: none; padding: 4px; cursor: pointer; flex-shrink: 0;}

@media (min-width: 1000px) {
    .d-desktop-flex  { display: flex !important; }
    .d-desktop-none  { display: none !important; }
}
@media (max-width: 999px) {
    .d-desktop-flex  { display: none !important; }
}

/* ══════════════════════════════════════════
   OFFCANVAS MÓVIL — submenús acordeón
══════════════════════════════════════════ */
.mobile-menu-item { border-bottom: 1px solid #eee; }
.mobile-menu-item > a {display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; color: var(--primary-blue); font-weight: 500; font-size: 0.95rem; cursor: pointer;}
.mobile-menu-item > a:hover { color: var(--accent-orange); background-color: #fafafa; }
.mobile-menu-item > a .toggle-icon { font-size: 0.75rem; transition: transform 0.25s; color: #999; }
.mobile-menu-item > a[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }

.mobile-submenu { background-color: #f8f9fc; }
.mobile-submenu a {display: block; padding: 10px 20px 10px 36px; font-size: 0.88rem; color: #555; border-bottom: 1px solid #eee;}
.mobile-submenu a:last-child { border-bottom: none; }
.mobile-submenu a:hover { color: var(--accent-orange); background-color: #fff; }

.mobile-menu-plain { border-bottom: 1px solid #eee; }
.mobile-menu-plain a {display: block; padding: 13px 20px; color: var(--primary-blue); font-weight: 500; font-size: 0.95rem;}
.mobile-menu-plain a:hover { color: var(--accent-orange); background-color: #fafafa; }

/* ══════════════════════════════════════════
   WIDGET ACCESIBILIDAD
══════════════════════════════════════════ */
.float-accesibilidad {position: fixed; right: 0; top: 30%; transform: translateY(-50%); z-index: 9999; display: flex; flex-direction: row-reverse; align-items: stretch;}
.float-accesibilidad .texto-invertido {background-color: var(--primary-blue); color: #fff; writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); padding: 14px 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; cursor: default; user-select: none; display: flex; align-items: center; justify-content: center;}
.float-accesibilidad ul {
    background-color: var(--primary-blue);
    padding: 10px 7px;
    margin: 0;
    list-style: none !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
    box-shadow: -3px 3px 12px rgba(0,0,0,0.3);
    border-radius: 6px 0 0 6px;
}
.float-accesibilidad ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.13);
    color: #fff !important;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s;
}
.float-accesibilidad ul li a:hover { background-color: var(--accent-orange); }
.float-accesibilidad ul li a img {
    width: 20px; height: 20px;
    filter: brightness(0) invert(1);
}

/* ══════════════════════════════════════════
   HERO CARRUSEL
══════════════════════════════════════════ */

.hero-slide .hero-text h1 {
    max-width: 600px;    /* controla en qué punto quiebra */
    text-wrap: balance;  /* mejora adicional en navegadores modernos */
}

/* Wrapper que crea el espacio para que quick-links se sobreponga */
.hero-carousel-wrapper {
    position: relative;
    margin-bottom: 80px; /* mismo valor que tenía .hero */
}

/* Cada slide replica el aspecto del hero original */
.hero-slide {height: 550px; background-size: cover; background-position: center; display: flex; align-items: center; padding: 0 5%; position: relative;}

/* El velo degradado (igual que antes) */
.hero-slide .velo-header {
    position: absolute;
    background: linear-gradient(90deg, rgba(13,45,81,0.2) 10%, rgba(255,135,0,0.5) 100%);
    width: 100%; height: 100%; top: 0; left: 0;
}

/* Oscurecer levemente la foto para legibilidad */
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 0;
}

/* El texto encima de todo */
.hero-slide .hero-text {
    position: relative;
    z-index: 10;
}

/* Indicadores (puntos): subirlos para que no queden en la zona quick-links */
#heroCarousel .carousel-indicators {
    bottom: 20px; /* sale de la zona cubierta por las cards */
}

#heroCarousel .carousel-indicators [data-bs-slide-to] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.6);
    border: none;
    transition: background-color 0.3s, transform 0.3s;
}

#heroCarousel .carousel-indicators .active {
    background-color: var(--accent-orange);
    transform: scale(1.3);
}

/* Flechas: subirlas también para que no queden tapadas */
#heroCarousel .carousel-control-prev, #heroCarousel .carousel-control-next {width: 48px; height: 48px; top: 60%; /* Desplazamos hacia arriba la mitad del overlap de quick-links (~60px) */ transform: translateY(calc(-50% - 60px)); background-color: rgba(255, 255, 255, 0.25); border-radius: 50%; margin: 0 12px; transition: background-color 0.2s;}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background-color: var(--accent-orange);
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-carousel-wrapper { margin-bottom: 30px; }

    .hero-slide {
        height: 400px;
        padding: 0 20px;
        text-align: center;
        justify-content: center;
    }

    .hero-slide .hero-text h1 { font-size: 2rem; }

    /* En móvil las quick-links bajan mucho menos, ajustamos */
    #heroCarousel .carousel-indicators { bottom: 0; }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        transform: translateY(calc(-50% - 30px));
        width: 38px;
        height: 38px;
        margin: 0 6px;
    }
}
.velo-header {
    position: absolute;
    background: linear-gradient(90deg, rgba(13,45,81,0.2) 10%, rgba(255,135,0,0.5) 100%);
    width: 100%; height: 100%; top: 0; left: 0;
}
.hero-text { color: var(--white); position: relative; z-index: 10; }
.hero-text .badge-label {
    border-radius: 20px;
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 5px 10px;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}
.hero-text h1 { font-size: 56px; line-height: 1.2; margin: 20px 0; font-weight: 700; text-shadow: 2px 2px 1px #000; color: var(--white); }
.btn-hero { display: inline-block; background-color: var(--white); color: var(--primary-blue); padding: 10px 25px; border-radius: 25px; font-weight: bold; font-size: 14.4px; }
.btn-hero:hover { background-color: var(--accent-orange); color: var(--white); }

/* ══════════════════════════════════════════
   QUICK LINKS
══════════════════════════════════════════ */
.quick-links { position: relative; margin: -130px auto 30px; z-index: 10; max-width: var(--max-width); padding: 0 20px; }
.card-icon { background-color: var(--white); padding: 50px 20px; text-align: center; border-radius: 8px; box-shadow: 3px 3px 7px rgba(0,0,0,0.3); transition: transform 0.3s; height: 100%; }
.card-icon:hover { transform: translateY(-5px); }
.card-icon.border-orange { border-top: 5px solid #FF8700; }
.card-icon.border-blue   { border-top: 5px solid #1C63B0; }
.card-icon i { font-size: 2.5rem; color: var(--accent-orange); margin-bottom: 15px; display: block; }
.card-icon h3 { font-size: 19.2px; color: var(--primary-blue); margin-bottom: 0; }
.card-icon p  { font-size: 19.2px; color: var(--text-light); margin-top: -3px; }

/* ══════════════════════════════════════════
   SECCIONES
══════════════════════════════════════════ */
.section { padding: 60px 0; max-width: var(--max-width); margin: 0 auto; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-left: 4px solid var(--accent-orange); padding-left: 15px; }
.section-header h2 { color: var(--primary-blue); font-size: 28.8px; margin: 0; }
.view-more { color: #2980b9; font-weight: 400; font-size: 16px; }
.view-more:hover { color: var(--accent-orange); }
.subtitle { margin-top: -15px; margin-bottom: 40px; color: var(--text-light); font-size: 15.2px; }

/* ══════════════════════════════════════════
   NEWS CARDS
══════════════════════════════════════════ */
.news-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 3px 3px 7px rgba(0,0,0,0.3); height: 100%; }
.news-card img { width: 100%; height: 180px; object-fit: cover; }
.news-content { padding: 20px; }
.news-content .date { font-size: 12.8px; color: var(--text-light); display: block; margin-bottom: 10px; }
.news-card h3 { font-size: 17.6px; color: var(--primary-blue); margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 14.4px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.news-link { text-decoration: none; }

/* ══════════════════════════════════════════
   BANNERS DESTACADOS
══════════════════════════════════════════ */
.grid-banners { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 20px; }
.grid-banners img { width: 100%; border-radius: 8px; transition: opacity 0.3s; }
.grid-banners img:hover { opacity: 0.9; }

/* ══════════════════════════════════════════
   TOURISM
══════════════════════════════════════════ */
/* --- Tourism Cards --- */
.tour-card {height: 400px; background-size: cover; background-position: center; border-radius: 8px; position: relative; overflow: hidden; cursor: pointer;}
.tour-card::before {content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.1), rgba(0,0,0,0.8));}
.tour-info {position: absolute; top: 5%; left: 20px; right: 20px; color: var(--white); text-align: center; height: 90%;}
.tour-info h3 {font-size: 19.2px; margin-bottom: 10px; text-align: left; line-height: 1.8rem;}
.tour-info i {font-size: 2.4rem; opacity: 0.7; margin: 0 auto; bottom: 0; position: absolute; left: 44%;}
.tour-info i:hover {transition: all ease-in-out 0.2s; opacity: 1;}

/* ══════════════════════════════════════════
   BOTTOM BANNERS SLIDER
══════════════════════════════════════════ */
.bottom-banners { padding: 40px 0; }

.bottom-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Viewport: ventana que recorta el track */
.bottom-viewport {
    overflow: hidden;
    flex: 1 1 0;
    min-width: 0;
}

/* Track: todos los items en fila */
.bottom-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.bottom-banner-item {
    /* El ancho se calcula por JS según perPage */
    flex-shrink: 0;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}
.bottom-banner-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

/* Flechas */
.bottom-arrow {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0 6px;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}
.bottom-arrow:hover { color: var(--accent-orange); }
.bottom-arrow:disabled,
.bottom-arrow[data-hidden="true"] { visibility: hidden; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { background-color: var(--primary-blue); color: #cbd5e1; padding-top: 60px; font-size: 0.9rem; margin-top: 70px; border-top: 7px solid #FF8700; background-image: url('/goreayp/imag/backfooter.png'); background-repeat: no-repeat; background-position: bottom; background-size: contain; }
.footer-grid { max-width: var(--max-width); margin: 0 auto; padding-bottom: 150px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 22.4px; font-weight: 500; }
.footer-col li { margin-bottom: 10px; }
.footer-col li a { font-size: 16px; font-weight: normal; color: #cbd5e1; padding: 5px 10px;}
.footer-col li a:hover {background: rgba(256,256,256,.1); border-radius: 7px;}
.footer-col a:hover { color: var(--accent-orange); }
.sub-footer { max-width: var(--max-width); padding: 30px 0; display: flex; justify-content: space-between; align-items: center; margin: 0 auto; flex-wrap: wrap; gap: 20px; }
.logo-footer img { height: 60px; }
.contact-info { display: flex; gap: 50px; font-size: 0.9rem; flex-wrap: wrap; }
.contact-info a:hover {color: var(--accent-orange);}
.contact-info span { display: flex; align-items: center; gap: 6px; }
.contact-info i { font-size: 1.1rem; }
.legal-links { text-align: center; padding: 20px 0; background-color: #222; font-size: 12.8px; }
.legal-links a { color: #818998; padding: 5px 15px; }
.legal-links a:hover { color: #FF8700; }
@media (max-width: 1000px) {
    .footer-grid {
        justify-content: flex-start !important;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .grid-banners { grid-template-columns: repeat(2,1fr); }
    .search-topbar input { width: 110px; }
}
@media (max-width: 768px) {
    .top-bar-content { flex-wrap: wrap; gap: 8px; }
    .search-topbar input { width: 120px; }
    .top-links a img { height: 22px; }
    .hero { height: 400px; text-align: center; padding: 0 20px; margin-bottom: 30px; }
    .hero-text h1 { font-size: 2rem; }
    .quick-links { margin-top: -30px; }
    .grid-banners { grid-template-columns: 1fr; }
    .contact-info { flex-direction: column; gap: 5px; }
    footer { background-position: center bottom 80px; }
}
@media (max-width: 480px) {
	header .flex-shrink-0 {text-align: center;}
	header .form-search {position: absolute; right: 25%; bottom: 5%;}
	header .search-topbar {background: #fff;}
    .top-links { display: none; }
    .social-icons a { font-size: 1.2rem; margin-right: 8px; }
	.main-nav {display:none !important;}
	.quick-links .col-6 {width: 100%;}
}

/* ══════════════════════════════════════════
   BREADCRUMB — página de noticia
══════════════════════════════════════════ */
.news-breadcrumb-wrapper {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}
.news-breadcrumb-wrapper .breadcrumb {
    margin: 0;
    font-size: 0.85rem;
}
.news-breadcrumb-wrapper .breadcrumb-item a {
    color: var(--primary-blue);
    font-weight: 500;
}
.news-breadcrumb-wrapper .breadcrumb-item a:hover {
    color: var(--accent-orange);
}
.news-breadcrumb-wrapper .breadcrumb-item.active {
    color: var(--text-light);
}
.news-breadcrumb-wrapper .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #aab4c4;
    font-size: 16px;
}

/* ══════════════════════════════════════════
   ARTICLE — página de noticia
══════════════════════════════════════════ */
.news-article {margin: 0 auto; padding: 40px 0 20px;}
.news-header { margin-bottom: 28px; }
.category-line {display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px;}
.category-tag {background-color: var(--accent-orange); color: var(--white); font-size: 11.52px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 20px;}
.news-date { font-size: 0.85rem; color: var(--text-light); }
.news-date i { margin-right: 5px; color: var(--accent-orange); }
.news-header h1 {font-size: 32px; font-weight: 700; color: var(--primary-blue); line-height: 1.3; margin-bottom: 14px; border-left: 4px solid var(--accent-orange); padding-left: 16px;}

.lead-text {font-size: 17.6px; color: var(--text-light); font-weight: 300; padding-left: 20px; margin-bottom: 0;}

.main-news-image {margin: 0 0 20px; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.12);}
.main-news-image img {width: 100%; max-height: 480px; object-fit: cover; display: block;}
.main-news-image figcaption {background: #f8fafc; color: var(--text-light); font-size: 0.8rem; padding: 8px 14px;}

.news-toolbar {display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 32px;}
.access-tools { display: flex; align-items: center; gap: 6px; }
.access-tools button {border: 1px solid #d0d7e2; background: var(--white); color: var(--primary-blue); border-radius: 6px; padding: 5px 11px; font-size: 0.82rem; cursor: pointer; font-family: 'Ubuntu', sans-serif; transition: all 0.2s;}
.access-tools button:hover {background: var(--primary-blue); color: var(--white); border-color: var(--primary-blue);}
.share-tools { display: flex; align-items: center; gap: 8px; }
.share-tools span { font-size: 0.8rem; color: var(--text-light); margin-right: 4px; }
.share-tools a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.9rem;
    color: var(--white);
    transition: transform 0.2s, opacity 0.2s;
}
.share-tools a:hover { transform: translateY(-2px); opacity: 0.85; }
.share-fb  { background-color: #1877F2; }
.share-tw  { background-color: #1DA1F2; }
.share-wa  { background-color: #25D366; }
.share-print { background-color: #64748b; }

.news-body { font-size: 1.05rem; line-height: 1.85; color: #3a3a3a; }
.news-body p { margin-bottom: 1.4em; }
.news-body p:first-child::first-letter {
    float: left;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 0.85;
    color: var(--primary-blue);
    margin: 4px 10px 0 0;
}

/* Separador antes de Últimas Noticias */
.section-divider {
    border: none;
    border-top: 3px solid #e2e8f0;
    margin: 50px 0 0;
}

@media (max-width: 768px) {
    .news-header h1 { font-size: 1.4rem; }
    .lead-text { font-size: 1rem; }
    .news-article { padding: 24px 0 16px; }
    .news-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════
   PAGE CONTENT — portada de categoría
══════════════════════════════════════════ */
.page-content {
    padding-top: 0;
    padding-bottom: 60px;
}

/* Breadcrumb reutilizado sin el wrapper externo */
.news-breadcrumb-wrapper.mt-0 {
    background: none;
    border-bottom: none;
    padding: 16px 0 0;
}

/* Listado */
.taxport-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.taxport-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.taxport-item:first-child {
    border-top: 1px solid #e2e8f0;
}

.taxport-body {
    flex: 1 1 0;
    min-width: 0;
}

.taxport-date {
    display: inline-block;
    font-size: 12.8px;
    color: var(--text-light);
    margin-bottom: 6px;
}
.taxport-date i {
    color: var(--accent-orange);
    margin-right: 4px;
}

.taxport-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.4;
}
.taxport-title a {
    color: inherit;
}
.taxport-title a:hover {
    color: var(--accent-orange);
}

.taxport-actions {
    flex-shrink: 0;
}
.taxport-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 13.12px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.2s;
}
.taxport-btn:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

/* ── Paginación estilo Google ── */
.taxport-pagination,
.pags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.taxport-pagination .page-item,
.pags a,
.pags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 6px;
    border-radius: 50%;
    font-size: 14.4px;
    color: var(--primary-blue);
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.taxport-pagination .page-item:hover,
.pags a:hover {
    background-color: #f1f5f9;
    color: var(--accent-orange);
    text-decoration: none;
}
.taxport-pagination .page-item.active,
.pags .pag_actual{
    background-color: var(--primary-blue);
    color: var(--white);
    cursor: default;
    pointer-events: none;
}
.taxport-pagination .page-item.disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}
.taxport-pagination .page-ellipsis {
    color: var(--text-light);
    cursor: default;
    letter-spacing: 1px;
}

@media (max-width: 576px) {
    body {padding-right: 0 !important;}
	
	.float-accesibilidad {top: initial; bottom: 0;}
	
	.nav-arrow.next-bottom {right: 0;}
	.nav-arrow.prev-bottom {left: 0;}
	
	.taxport-item { flex-direction: column; align-items: flex-start; }
    .taxport-actions { width: 100%; }
    .taxport-btn { width: 100%; justify-content: center; }
	
	.search-focus .search-topbar input {width: 130px !important;}
	.search-topbar input {font-size: 14px;}
	
}

/* ══════════════════════════════════════════
   PÁGINAS INTERIORES
══════════════════════════════════════════ */

/* Título principal */
.interior-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-blue);
    border-left: 4px solid var(--accent-orange);
    padding-left: 16px;
    margin-bottom: 24px;
    line-height: 1.3;
}

/* Cuerpo WYSIWYG — normaliza lo que genera el CMS */
.interior-body {
    font-size: 16.32px;
    line-height: 1.85;
    color: #3a3a3a;
}
.interior-body p   { margin-bottom: 1.2em; }
.interior-body h2  { font-size: 1.4rem; color: var(--primary-blue); margin: 1.6em 0 0.6em; font-weight: 600; }
.interior-body h3  { font-size: 1.2rem; color: var(--primary-blue); margin: 1.4em 0 0.5em; font-weight: 600; }
.interior-body h4  { font-size: 1.05rem; color: var(--primary-blue); margin: 1.2em 0 0.4em; font-weight: 600; }
.interior-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 10px 0; }
.interior-body ul,
.interior-body ol  { padding-left: 1.4em; margin-bottom: 1.2em; }
.interior-body li  { margin-bottom: 0.4em; }
.interior-body a   { color: #2980b9; text-decoration: underline; }
.interior-body a:hover { color: var(--accent-orange); }
.interior-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.4em;
    font-size: 0.93rem;
}
.interior-body table th,
.interior-body table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: left;
}
.interior-body table th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 500;
}
.interior-body table tr:nth-child(even) { background-color: #f8fafc; }

/* Sidebar */
.sidebar-widget {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}
.sidebar-widget-header {
    background-color: var(--primary-blue);
    padding: 14px 18px;
}
.sidebar-widget-header h3 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu li a {
    display: block;
    padding: 11px 18px;
    font-size: 14.72px;
    color: var(--text-color);
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.sidebar-menu li:last-child a { border-bottom: none; }
.sidebar-menu li a:hover {
    background-color: #f1f5f9;
    color: var(--accent-orange);
    padding-left: 24px;
}
.sidebar-menu li.active a {
    background-color: #f1f5f9;
    color: var(--accent-orange);
    font-weight: 600;
    border-left: 3px solid var(--accent-orange);
}

@media (max-width: 991px) {
    .sidebar-widget { position: static; margin-top: 20px; }
    .interior-title { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════
   FICHA DE PERFIL
══════════════════════════════════════════ */

.profile-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 32px;
}

/* Cabecera azul con patrón diagonal sutil */
.profile-card-header {
    background-color: var(--primary-blue);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 18px,
        rgba(255,255,255,0.03) 18px,
        rgba(255,255,255,0.03) 36px
    );
    padding: 32px 32px 0;
    display: flex;
    align-items: flex-end;
    gap: 28px;
    flex-wrap: wrap;
}

/* Foto: se asoma sobre el cuerpo de la tarjeta */
.profile-photo-wrap {
    flex-shrink: 0;
    position: relative;
    margin-bottom: -44px;
}
.profile-photo-wrap img,
.profile-photo-fallback {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    display: block;
    background-color: #cdd5e0;
}
.profile-photo-fallback {
    background: var(--accent-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
}

/* Nombre y cargo sobre el header azul */
.profile-header-info {
    flex: 1 1 200px;
    padding-bottom: 22px;
}
.profile-section-tag {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.profile-header-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--white);
    line-height: 1.2;
}
.profile-role {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.78);
    margin: 0;
}

/* Cuerpo */
.profile-card-body {
    padding: 60px 32px 32px;
}

/* Metadatos en grilla */
.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.profile-meta-item {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 3px solid var(--accent-orange);
}
.meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
}
.meta-value {
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--primary-blue);
}

/* Bloque de contacto */
.profile-contact-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.profile-contact-block .block-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: block;
}
.profile-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.profile-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.93rem;
}
.contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon i {
    font-size: 0.82rem;
    color: var(--white);
}
.profile-contact-list a {
    color: #2980b9;
    text-decoration: underline;
    font-weight: 500;
}
.profile-contact-list a:hover { color: var(--accent-orange); }

/* Divisor con etiqueta */
.profile-section-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
}
.profile-section-divider .divider-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    white-space: nowrap;
}
.profile-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Trayectoria / biografía */
.profile-bio {
    font-size: 1rem;
    line-height: 1.85;
    color: #3a3a3a;
}
.profile-bio p { margin-bottom: 1.2em; }
.profile-bio p:last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .profile-card-header { padding: 24px 20px 0; gap: 20px; }
    .profile-card-body   { padding: 60px 20px 24px; }
    .profile-header-info h2 { font-size: 1.4rem; }
}
@media (max-width: 576px) {
    .profile-card-header { flex-direction: column; align-items: flex-start; }
    .profile-photo-wrap  { margin-bottom: -44px; }
    .profile-meta-grid   { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════
   DESCARGA DE DOCUMENTOS — lista compacta
══════════════════════════════════════════ */
.doc-download-section {
    margin: 28px 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.doc-download-header {
    display: flex;
    align-items: center;
    gap: 9px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doc-download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}
.doc-download-item:last-child {
    border-bottom: none;
}
.doc-download-item:hover {
    background-color: #f8fafc;
}

/* Ícono genérico del archivo */
.doc-file-icon {
    font-size: 1.1rem;
    color: var(--accent-orange);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Nombre del documento — ocupa el espacio disponible */
.doc-download-item .doc-name {
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón compacto */
.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-blue);
    color: var(--white) !important;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none !important;
    transition: background 0.2s;
}
.doc-btn i { font-size: 0.72rem; }
.doc-btn:hover {
    background-color: var(--accent-orange);
    color: var(--white) !important;
}

/* Responsive */
@media (max-width: 576px) {
    .doc-download-item {
        flex-wrap: wrap;
    }
    .doc-download-item .doc-name {
        flex: 1 1 calc(100% - 36px);
        white-space: normal;
    }
    .doc-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════
   MAPA DEL SITIO — árbol visual
══════════════════════════════════════════ */
.sitemap-wrapper {
    max-width: var(--max-width);
    margin: 40px auto 60px;
    padding: 0 20px;
}

/* Contenedor flex horizontal: cada columna es una sección */
.sitemap-tree {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

/* Columna de sección */
.sitemap-section {
    flex: 1 1 200px;
    min-width: 170px;
}

/* Nodo de sección (raíz) */
.sitemap-section > .node-section {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 7px 12px;
    border-radius: 4px;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}
.sitemap-section > .node-section:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

/* Línea vertical que baja desde la sección hacia los temas */
.sitemap-topics {
    margin-top: 0;
    padding-left: 16px;
    border-left: 2px solid #aab4c4;
    margin-left: 12px;
}

/* Nodo de tema */
.sitemap-topic {
    margin-top: 8px;
    position: relative;
}

/* Línea horizontal que conecta la vertical con el nodo */
.sitemap-topic::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 13px;
    width: 16px;
    height: 2px;
    background-color: #aab4c4;
}

.sitemap-topic > .node-topic {
    display: inline-block;
    background-color: #e2e8f0;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    word-break: break-word;
    line-height: 1.3;
}
.sitemap-topic > .node-topic:hover {
    background-color: var(--accent-orange);
    color: var(--white);
}

/* Línea vertical hacia subtemas */
.sitemap-subtopics {
    margin-top: 0;
    padding-left: 14px;
    border-left: 2px dashed #cbd5e1;
    margin-left: 10px;
}

/* Nodo de subtema */
.sitemap-subtopic {
    margin-top: 6px;
    position: relative;
}

.sitemap-subtopic::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 11px;
    width: 14px;
    height: 2px;
    background-color: #cbd5e1;
}

.sitemap-subtopic > .node-subtopic {
    display: inline-block;
    font-size: 0.78rem;
    color: #2980b9;
    padding: 3px 8px;
    border: 1px solid #d0d7e2;
    border-radius: 3px;
    background: #f8fafc;
    text-decoration: none;
    word-break: break-word;
    line-height: 1.3;
}
.sitemap-subtopic > .node-subtopic:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: #fff;
}

@media (max-width: 768px) {
    .sitemap-tree {
        flex-direction: column;
        gap: 24px;
    }
    .sitemap-section {
        min-width: 0;
        width: 100%;
    }
}

/* ══════════════════════════════════════════
   PÁGINA DE RESULTADOS DE BÚSQUEDA
══════════════════════════════════════════ */

/* Contenedor principal */
.inner-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezado de resultados */
.search-results .section-header {
    margin-bottom: 4px;
}

.search-results .subtitle strong {
    color: var(--primary-blue);
}

/* Resaltar término buscado si el CMS lo envuelve en <b> o <strong> */
.search-results .taxport-body b,
.search-results .taxport-body strong {
    color: var(--accent-orange);
    font-weight: 700;
    background-color: rgba(243, 156, 18, 0.1);
    padding: 0 2px;
    border-radius: 2px;
}