/* ============================================================
   TURISMO ENCARNACIÓN — HOJA DE ESTILOS EDITABLE
   Cambia colores principales en :root.
   Busca clases por sección: .header, .hero, .card, .footer, etc.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');
:root {
    --primary: #0875a7;
    --secondary: #063f66;
    --accent: #ffbb2e;
    --ink: #122e40;
    --muted: #627586;
    --bg: #f4f8fb;
    --white: #fff
;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 15px/1.7 Montserrat,Arial,sans-serif;
    color: var(--ink);
}

h1,h2,h3,p {
    margin-top: 0;
}

h1,h2,h3 {
    line-height: 1.18;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.5rem,5vw,5rem);
}

h2 {
    font-size: clamp(1.7rem,3vw,2.8rem);
}

h3 {
    font-size: 1.1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

button,input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1250px,100%);
    padding: 0 24px;
    margin: auto;
}

.topbar {
    background: #063b62;
    color: #d6eafa;
    font-size: 12px;
    padding: 7px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    box-shadow: 0 4px 24px #14374a17;
}

.header-inner {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.brand img {
    width: clamp(170px,21vw,290px);
    height: 74px;
    object-fit: contain;
    object-position: left center;
}

.nav {
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav a {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.nav a:hover,.footer a:hover {
    color: var(--accent);
}

.social-icons,.footer-social {
    display: flex;
    gap: 8px;
}

.social-icons a,.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #edf5fa;
    display: grid;
    place-items: center;
    color: var(--primary);
}

.social-icons svg,.footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 28px;
}

.hero {
    background: linear-gradient(90deg,#062e50dd,#06385870),url('../img/hero.svg') center/cover;
    min-height: 590px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-inner {
    padding-top: 80px;
    padding-bottom: 95px;
}

.hero p {
    font-size: clamp(16px,2vw,20px);
    max-width: 740px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #dc9b16;
    display: block;
    margin-bottom: 14px;
}

.hero .eyebrow {
    color: #ffca57;
}

.searchbar {
    max-width: 850px;
    background: #fff;
    padding: 9px;
    display: flex;
    gap: 8px;
    border-radius: 14px;
    box-shadow: 0 18px 40px #0003;
    margin: 26px 0 15px;
}

.searchbar input {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    padding: 16px;
    color: var(--ink);
}

.searchbar button,.filter button,.btn {
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #122b38;
    padding: 14px 25px;
    font-weight: 800;
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 13px;
}

.search-suggestions a {
    border: 1px solid #ffffff70;
    border-radius: 30px;
    padding: 4px 12px;
}

.section {
    padding: 78px 0;
}

.soft {
    background: var(--bg);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.section-head p {
    color: var(--muted);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 13px;
}

.feature-card {
    background: #fff;
    border: 1px solid #e6edf1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 9px 25px #153f5312;
    transition: transform .22s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card>img {
    display: block;
    width: 100%;
    aspect-ratio: 1.13;
    object-fit: cover;
}

.feature-content {
    padding: 12px;
}

.feature-content h3 {
    font-size: 13px;
    margin: 0 0 7px;
}

.feature-content .rating {
    font-size: 12px;
    min-height: 46px;
    color: #657887;
}

.stars {
    color: #f3a416;
    letter-spacing: 1px;
    white-space: nowrap;
}

.feature-content .mini-link {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    margin: 8px 0;
}

.wa-image {
    width: 100%;
    max-width: 130px;
    height: auto;
    display: block;
    margin: 8px auto 0;
}

.wa-disabled {
    font-size: 10px;
    color: #7a8994;
    display: block;
}

.ratings-note {
    font-size: 11px;
    color: #748493;
    margin-top: 18px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 13px;
}

.category {
    background: white;
    padding: 23px 12px;
    text-align: center;
    border: 1px solid #e5edf2;
    border-radius: 14px;
    box-shadow: 0 7px 24px #183b5010;
    transition: transform .2s;
}

.category:hover {
    transform: translateY(-6px);
}

.category .emoji {
    font-size: 34px;
    display: block;
    margin-bottom: 9px;
}

.category strong {
    display: block;
    font-size: 12px;
}

.testimonials-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 8px 3px 18px;
}

.testimonial {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e7eef2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px #0b34420b;
}

.testimonial img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    display: block;
}

.testimonial-body {
    padding: 20px;
}

.testimonial-body p {
    font-size: 13px;
    color: var(--muted);
}

.slider-buttons {
    display: flex;
    gap: 8px;
}

.slider-buttons button {
    width: 42px;
    height: 42px;
    border: 1px solid #cddde6;
    border-radius: 50%;
    background: white;
    font-size: 21px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.step {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e6edf2;
}

.step b {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: #dff2fc;
    color: var(--primary);
    border-radius: 50%;
    margin-bottom: 16px;
}

.step p {
    color: var(--muted);
}

.contact-strip {
    background: var(--secondary);
    color: white;
    padding: 55px 0;
}

.contact-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.contact-inner p {
    color: #d8eaf4;
}

.footer {
    background: #062c49;
    color: #c6dce8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.1fr 1.1fr;
    gap: 36px;
    padding: 65px 0;
}

.footer h3 {
    font-size: 16px;
    color: #fff;
}

.footer a:not(.footer-about a) {
    display: block;
    margin: 8px 0;
    font-size: 13px;
}

.footer-about img {
    width: min(100%,320px);
    height: auto;
    object-fit: contain;
}

.footer-about p {
    text-align: justify;
    font-size: 13px;
    line-height: 1.9;
    margin-top: 18px;
}

.footer-credit {
    background: #031d31;
    text-align: center;
    padding: 24px 0;
    font-size: 12px;
}

.footer-credit p {
    margin: 4px;
}

.footer-credit img {
    max-width: 160px;
    max-height: 43px;
    vertical-align: middle;
    margin-left: 6px;
}

.pagehero {
    padding: 70px 0;
    background: linear-gradient(120deg,#06456e,#0a8ab1);
    color: white;
}

.pagehero p {
    max-width: 750px;
}

.filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.filter input {
    flex: 1;
    border: 1px solid #dbe7ef;
    padding: 16px;
    border-radius: 10px;
    min-width: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}

.card {
    border: 1px solid #e3edf3;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 25px #123d5012;
}

.card>img {
    width: 100%;
    aspect-ratio: 1.65;
    object-fit: cover;
}

.card-body {
    padding: 22px;
}

.card-body p {
    color: var(--muted);
    font-size: 13px;
}

.card-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.card-links a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.pill {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
}

.legal {
    padding: 65px 0;
}

.article {
    max-width: 850px;
}

.article p {
    color: var(--muted);
}

.empty {
    padding: 25px;
    border: 1px dashed #9db8c8;
    border-radius: 12px;
}

.detail {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 35px;
}

.detail img {
    width: 100%;
    border-radius: 14px;
}

.detail p {
    color: var(--muted);
}

@media (max-width:1150px) {
    .header-inner {
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .social-icons {
        margin-left: auto;
    }

    .featured-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3,1fr);
    }

}

@media (max-width:720px) {
    .topbar-inner {
        flex-wrap: wrap;
    }

    .header-inner {
        flex-wrap: nowrap;
        min-height: 78px;
    }

    .brand img {
        width: 195px;
        height: 58px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .social-icons {
        display: none;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 18px 24px;
        box-shadow: 0 15px 24px #0002;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav.open {
        display: flex;
    }

    .hero {
        min-height: 560px;
    }

    .hero-inner {
        padding-top: 65px;
        padding-bottom: 75px;
    }

    .searchbar {
        flex-direction: column;
    }

    .featured-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .cards,.steps,.footer-grid {
        grid-template-columns: 1fr;
    }

    .detail {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 58px 0;
    }

    .section-head {
        align-items: start;
    }

    .contact-inner {
        display: block;
    }

    .contact-inner .btn {
        display: inline-block;
        margin-top: 12px;
    }

    .testimonial {
        flex-basis: 280px;
    }

    .testimonial img {
        width: 280px;
        height: 280px;
    }

}

@media (prefers-reduced-motion:reduce) {
    *,*:before,*:after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

}

/* V3: menú desplegable, hero slider y márgenes móviles */
.footer h3 {
    color: var(--footer-heading-color,#fff);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: transparent;
    border: 0;
    padding: 8px 2px;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
}

.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 35px #0002;
    padding: 10px;
    z-index: 80;
}

.nav-submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
}

.nav-submenu a:hover {
    background: #edf5fa;
}

.nav-dropdown:hover .nav-submenu,.nav-dropdown:focus-within .nav-submenu,.nav-dropdown.expanded .nav-submenu {
    display: block;
}

.hero-slider {
    position: relative;
    isolation: isolate;
    min-height: var(--hero-height,730px);
    background: #063b62;
    overflow: hidden;
}

.hero-slider .hero-slides {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.045);
    transition: opacity 1.1s ease,transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slider:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg,var(--hero-overlay-1,rgba(4,33,59,.83)),var(--hero-overlay-2,rgba(4,68,93,.34)));
}

.hero-slider .hero-inner {
    position: relative;
    z-index: 2;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    right: max(20px,calc((100vw - 1250px)/2));
    bottom: 25px;
    display: flex;
    gap: 10px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid #ffffff88;
    border-radius: 50%;
    background: #001b3055;
    color: white;
    font-size: 28px;
}

@media (max-width:720px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .nav {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-submenu {
        position: static;
        box-shadow: none;
        border-left: 2px solid var(--primary);
        border-radius: 0;
        margin: 5px 0 5px 10px;
        padding: 0 8px;
    }

    .nav-dropdown-toggle {
        font-size: 13px;
    }

    .hero-slider {
        min-height: var(--hero-mobile-height,630px);
    }

    .hero-controls {
        right: 14px;
        bottom: 12px;
    }

    .section,.footer,.contact-strip {
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
    }

}

@media (prefers-reduced-motion:reduce) {
    .hero-slide {
        transition: none;
        transform: none !important;
    }

}

/* ===== PATROCINADORES SUPERIORES Y FOOTER: CONFIGURABLES DESDE JSON ===== */
.sponsors {
    background: var(--sponsors-bg,#f4f8fc);
    color: var(--sponsors-text,#173b56);
    padding: 14px 0;
    overflow: hidden;
}

.sponsors-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 92px;
}

.sponsors-title {
    font: 800 13px/1.4 Montserrat,Arial,sans-serif;
    margin: 0;
    flex: 0 0 155px;
    color: inherit;
    text-transform: none;
    letter-spacing: 0;
}

.sponsors-window {
    overflow: hidden;
    min-width: 0;
    flex: 1;
    mask-image: linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);
}

.sponsors-track {
    display: flex;
    align-items: center;
    gap: 26px;
    width: max-content;
    animation: sponsors-scroll var(--sponsors-duration,28s) linear infinite;
}

.sponsors-window:hover .sponsors-track,.sponsors-window:focus-within .sponsors-track {
    animation-play-state: paused;
}

.sponsor-logo {
    display: flex;
    flex: 0 0 142px;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    padding: 7px 10px;
    background: rgba(255,255,255,.09);
    border-radius: 9px;
}

.sponsor-logo img {
    display: block;
    max-width: 132px;
    width: 100%;
    height: var(--sponsors-logo-height,64px);
    object-fit: contain;
}

.sponsor-logo:hover {
    transform: translateY(-3px);
    transition: transform .2s;
}

.sponsors-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
}

@keyframes sponsors-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 13px));
    }

}

@media (max-width:720px) {
    .sponsors {
        padding: 10px 0;
    }

    .sponsors-inner {
        gap: 10px;
        min-height: 80px;
    }

    .sponsors-title {
        flex-basis: 104px;
        font-size: 11px;
    }

    .sponsor-logo {
        flex-basis: 112px;
        min-height: 66px;
    }

    .sponsor-logo img {
        max-width: 104px;
    }

}

/* Patrocinadores: carrusel continuo, sin barras de desplazamiento. */
.sponsors-window {
    overflow: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sponsors-window::-webkit-scrollbar,.sponsors-track::-webkit-scrollbar {
    display: none !important;
    width: 0;
    height: 0;
}

.sponsors-track {
    overflow: visible !important;
    max-width: none !important;
    animation: sponsors-scroll var(--sponsors-duration,28s) linear infinite;
}

@media (prefers-reduced-motion:reduce) {
    .sponsors-window {
        overflow: hidden !important;
    }

    .sponsors-track {
        animation: sponsors-scroll var(--sponsors-duration,28s) linear infinite;
    }

}

/* V7: ajustes editables y responsive */
.topbar-inner {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.topbar-inner span+span {
    padding-left: 10px;
    border-left: 1px solid #ffffff77;
}

.header-whatsapp {
    white-space: nowrap;
    background: #1caa5b;
    color: #fff !important;
    border-radius: 28px;
    padding: 11px 15px;
    font-weight: 800;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
}

.header-whatsapp:hover {
    background: #11894a;
}

.hero-controls {
    display: none !important;
}

.steps {
    grid-template-columns: repeat(4,minmax(0,1fr));
}

.step {
    position: relative;
    isolation: isolate;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #124e69;
    color: white;
    overflow: hidden;
    border: 0;
}

.step::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg,#052c49ed,#052c4966),var(--benefit-bg) center/cover no-repeat;
}

.step b {
    background: #fff;
    color: #075c83;
}

.step p {
    color: #fff;
}

.featured-grid.carousel-autoplay {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: none;
    padding: 8px 0 18px;
}

.featured-grid.carousel-autoplay::-webkit-scrollbar,.testimonials-track.images-only::-webkit-scrollbar {
    display: none;
}

.featured-grid.carousel-autoplay .feature-card {
    flex: 0 0 calc((100% - 5*13px)/6);
    min-width: 0;
}

.testimonials-track.images-only {
    gap: 12px;
    scrollbar-width: none;
    scroll-snap-type: none;
    overflow-x: auto;
}

.opinion-image {
    flex: 0 0 calc((100% - 5*12px)/6);
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e4e8ed;
    background: #f5f5f5;
}

.opinion-image img {
    display: block;
    width: 100%;
    aspect-ratio: 450/409;
    object-fit: cover;
}

.contact-strip {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    background: linear-gradient(100deg,#053653eb,#075474a3),var(--cta-image) center/cover no-repeat;
}

.contact-inner {
    width: 100%;
}

.contact-inner h2 {
    max-width: 620px;
}

.sponsors-bottom .sponsor-logo {
    background: #fff;
}

.footer-credit,.footer-credit p,.footer-credit a {
    color: #fff !important;
}

.floating-whatsapp {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    background: #20b65a;
    color: white !important;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 800;
    box-shadow: 0 8px 26px #0004;
}

@media (max-width:1150px) {
    .steps {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .featured-grid.carousel-autoplay .feature-card {
        flex-basis: calc((100% - 2*13px)/3);
    }

    .opinion-image {
        flex-basis: calc((100% - 3*12px)/4);
    }

}

@media (max-width:720px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .topbar-inner {
        flex-wrap: nowrap;
        gap: 7px;
        font-size: 10px;
    }

    .topbar-inner span+span {
        padding-left: 7px;
    }

    .header-whatsapp {
        padding: 8px 10px;
        font-size: 10px;
        margin-left: auto;
    }

    .brand img {
        width: 145px;
    }

    .menu-toggle {
        margin-left: 0;
    }

    .steps {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .step {
        min-height: 235px;
        padding: 15px;
    }

    .step h3 {
        font-size: 15px;
    }

    .step p {
        font-size: 11px;
    }

    .featured-grid.carousel-autoplay .feature-card {
        flex-basis: calc((100% - 13px)/2);
    }

    .opinion-image {
        flex-basis: calc((100% - 12px)/2);
    }

    .contact-strip {
        min-height: 380px;
    }

    .floating-whatsapp {
        width: 54px;
        height: 54px;
        right: 12px;
        bottom: 12px;
    }

}

@media (max-width:380px) {
    .brand img {
        width: 125px;
    }

    .header-inner {
        gap: 6px;
    }

    .header-whatsapp {
        font-size: 9px;
        padding: 8px;
    }

}

/* V8: navegación manual inferior y alineación del bloque turístico */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.carousel-nav button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #bfd1dd;
    background: #fff;
    color: #063b62;
    font-size: 25px;
    line-height: 1;
    box-shadow: 0 3px 12px #0b34421a;
    transition: background .2s,color .2s;
}

.carousel-nav button:hover,.carousel-nav button:focus-visible {
    background: #063b62;
    color: white;
}

.contact-strip>.container.contact-inner {
    width: min(1250px,100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.contact-strip .contact-inner>div {
    flex: 1;
    min-width: 0;
}

.contact-strip .contact-inner .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width:720px) {
    .contact-strip>.container.contact-inner {
        padding-left: 12px;
        padding-right: 12px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .contact-strip .contact-inner .btn {
        white-space: normal;
        margin-top: 4px;
    }

    .carousel-nav {
        margin-top: 14px;
    }

}

/* ============================================================
   PROPUESTA 9 — COLORES DE TEXTO
   Editar aquí para cambiar solamente la barra superior y footer.
   El JSON datos/configuracion.json también define el color del
   footer (footer.color_texto); ambos quedan establecidos en blanco.
   ============================================================ */
/* Barra azul superior: ubicación y lema */
.topbar,
.topbar #topbar-location,
.topbar #topbar-motto,
.topbar .topbar-inner,
.topbar .topbar-inner span {
    color: #ffffff !important;
}

/* Footer: descripción, enlaces, títulos y créditos */
#footer-configurable,
#footer-configurable p,
#footer-configurable h3,
#footer-configurable a,
#footer-configurable .footer-about,
#footer-configurable .footer-credit,
#footer-configurable .footer-credit p,
#footer-configurable .footer-credit a {
    color: #ffffff !important;
}

/* ===== V10: FICHAS, GALERÍA Y REDES ===== */
.detail-v10 {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 30px;
    align-items: start;
    margin: 28px 0 55px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: #e9f1f6;
    cursor: zoom-in;
}

.gallery-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    min-width: 0;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    flex: 1;
    padding: 4px 0;
}

.gallery-thumb {
    padding: 0;
    border: 3px solid transparent;
    background: transparent;
    border-radius: 10px;
    flex: 0 0 80px;
    cursor: pointer;
}

.gallery-thumb[aria-current=true] {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 7px;
}

.gallery-arrow {
    border: 1px solid #cbdce6;
    background: white;
    border-radius: 9px;
    padding: 10px;
    cursor: pointer;
    flex: none;
}

.detail-copy p.description-v10 {
    text-align: justify;
    line-height: 1.85;
    hyphens: auto;
}

.detail-copy h1 {
    font-size: clamp(25px,3vw,37px);
    margin: 8px 0 18px;
}

.detail-contact {
    margin: 18px 0;
}

.detail-wa-image {
    display: block;
    width: min(200px,100%);
    height: auto;
}

.detail-social {
    display: flex;
    gap: 13px;
    margin-top: 12px;
    align-items: center;
}

.detail-social a {
    display: inline-flex;
    width: 39px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e4ed;
    border-radius: 50%;
    color: #17638c;
}

.detail-social svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.gallery-modal {
    border: 0;
    background: #071b28e8;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    padding: 45px 12px 20px;
    text-align: center;
}

.gallery-modal::backdrop {
    background: #051522db;
}

.gallery-modal img {
    max-width: 94vw;
    max-height: 85vh;
    object-fit: contain;
}

.gallery-modal button {
    position: absolute;
    right: 20px;
    top: 10px;
    border: 0;
    background: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width:760px) {
    .detail-v10 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gallery-thumb {
        flex-basis: 67px;
    }

}


/* V12: video de fondo del hero; el texto y buscador quedan por encima. */
.hero-slider .hero-slides { overflow: hidden; background-position: center; background-size: cover; }
.hero-background-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slider [hidden] { display: none !important; }
