/* ============================================================
   custom.css — Sobreescrituras del template Turmet para el
   cliente Pedro Astillero (iCruises). Cargado DESPUÉS del CSS
   principal del template para que tenga prioridad.
   ============================================================ */

/* ------------------------------------------------------------
   Logo wordmark del cliente — renderizado en HTML/CSS para
   garantizar legibilidad sobre cualquier fondo y a cualquier
   tamaño. Sustituye al PNG en header, offcanvas y footer.
   Acentos: "Con" y ".com" en color secundario (dorado).
   ------------------------------------------------------------ */
.logo-wordmark {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.5px;
    color: #fff;                       /* default: contexto oscuro (header / footer) */
    white-space: nowrap;
    display: inline-block;
    user-select: none;
}

.logo-wordmark .lw-accent {
    color: var(--color-secundario, #C9A961);
    font-weight: 900;
}

/* Override: offcanvas con fondo blanco — texto en color primario */
.offcanvas__logo .logo-wordmark,
.offcanvas__info .logo-wordmark {
    color: var(--color-primario, #0A2540);
}

/* Tamaño un poco mayor en el footer (más aire visual) */
.footer-section .widget-head .logo-wordmark {
    font-size: 30px;
}

/* En responsive el header pierde el fondo azul y queda blanco —
   forzar el logo del header a color primario para que se lea.
   El footer mantiene fondo azul (sigue en blanco). */
@media (max-width: 991px) {
    .header-section-10 .logo-wordmark,
    .header-logo .logo-wordmark,
    .logo-2 .logo-wordmark {
        color: var(--color-primario, #0A2540);
    }
}

/* Móvil — reducir para no comer ancho */
@media (max-width: 575px) {
    .logo-wordmark { font-size: 22px; letter-spacing: -0.4px; }
    .footer-section .widget-head .logo-wordmark { font-size: 24px; }
}

/* Compatibilidad: si por error queda algún <img> de logo huérfano,
   le seguimos forzando altura razonable */
.header-logo img,
.logo a img,
.logo-2 img,
.offcanvas__logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-section .widget-head img,
.footer-section .single-widget-items img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* ------------------------------------------------------------
   Hero CTA dual (sustituye al booking-list-area del template)
   ------------------------------------------------------------ */
.hero-cta-dual {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.theme-btn-outline {
    background: transparent !important;
    border: 2px solid currentColor !important;
}

/* CTAs marcados como pendientes — visualmente más tenues para
   recordar que aún no son funcionales */
[data-pending] {
    opacity: 0.85;
    cursor: help;
}

/* Hero sub-title — +2pt sobre el 18px que viene del template */
.hero-section .hero-content .sub-title {
    font-size: 25px;
    line-height: 1.4;
}

/* HOME.04 — sub-title del slider de destinos al mismo tamaño que el del hero */
.destination-category-section .section-title .sub-title {
    font-size: 25px;
    line-height: 1.4;
}

/* HOME.05 — sub-title "¿Por qué?" al mismo tamaño que el del hero */
.about-section .section-title .sub-title {
    font-size: 25px;
    line-height: 1.4;
}

/* ------------------------------------------------------------
   Preloader — logo del cliente girando en lugar del texto
   "TURMET" letra a letra que trae el template
   ------------------------------------------------------------ */
.preloader .innov-preloader-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    animation: innov-spin 2.6s linear infinite;
}

.preloader .innov-preloader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes innov-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.preloader p {
    color: var(--color-primario, #0A2540);
    font-weight: 500;
    margin-top: 12px;
}

/* ------------------------------------------------------------
   WhatsApp flotante (F.2) — botón fijo bottom-right en todas
   las páginas si WHATSAPP_NUMERO está definido en config.php
   ------------------------------------------------------------ */
.whatsapp-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.whatsapp-floating:hover,
.whatsapp-floating:focus {
    transform: scale(1.1);
    color: #fff;
    background: #1ebe57;
}

/* Que no tape el botón "back to top" del template */
#back-top {
    bottom: 90px !important;
}

/* ------------------------------------------------------------
   Disclaimer legal MLM (F.3) — sello + texto en footer
   ------------------------------------------------------------ */
.legal-disclaimer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 32px;
    flex-wrap: wrap;
}

.legal-disclaimer .disclaimer-logo {
    max-height: 60px;
    width: auto;
    flex-shrink: 0;
}

.legal-disclaimer .disclaimer-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    min-width: 280px;
}

/* ============================================================
   G — Adaptación cromática
   Mapeo paleta Turmet → paleta Pedro Astillero (iCruises)
   - --theme   #1CA8CB (cian)        → #0A2540 azul marino primario
   - --header  #0A1F24 (verde oscuro) → #0A2540 (mismo primario)
   - acentos   #F7921E / #FE6902 / #FFB700 (naranja/amarillo) → #C9A961 dorado secundario
   ============================================================ */

/* Sobrescribir las CSS variables del template Turmet con las
   del cliente. Como custom.css se carga DESPUÉS de main.css,
   estas vars ganan en cualquier `var(--theme)` posterior. */
:root {
    --theme: var(--color-primario);
    --header: var(--color-primario);
    --bg: var(--color-fondo);
}

/* Botones primarios — el template define `.theme-btn` con
   gradiente o background hardcoded #1CA8CB. */
.theme-btn,
button.theme-btn,
a.theme-btn {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
    color: #fff;
}

.theme-btn:hover,
.theme-btn:focus,
.theme-btn.style-2:hover {
    background-color: var(--color-secundario);
    border-color: var(--color-secundario);
    color: #fff;
}

/* Variante outline (la usamos en CTAs duales) */
.theme-btn.theme-btn-outline {
    background: transparent !important;
    border: 2px solid var(--color-primario) !important;
    color: var(--color-primario) !important;
}

.theme-btn.theme-btn-outline:hover,
.theme-btn.theme-btn-outline:focus {
    background: var(--color-primario) !important;
    color: #fff !important;
}

/* Reglas con #1CA8CB hardcoded en main.css (líneas 2027, 4087)
   afectan a: hero-content, badges, bordes de input. */
.hero-section .swiper-pagination-bullet-active,
.popular-destination-section .heart-icon:hover,
.cta-bg-section .video-btn,
.about-section .video-btn {
    background-color: var(--color-primario) !important;
}

/* Inputs/selects con borde cian del template */
input:focus,
textarea:focus,
select:focus,
.form-clt input:focus,
.form-clt textarea:focus {
    border-color: var(--color-primario) !important;
    outline: none;
}

/* Sub-titles del template usan color #FFB700 / #F7921E (naranja
   y amarillo) — sustituirlos por el dorado del cliente. */
.section-title .sub-title,
.section-title-area .sub-title,
.feature-content .sub-title {
    color: var(--color-secundario) !important;
}

/* Ratings de estrella (precio en cards) usaban #F7921E naranja */
.destination-card-items .rating .star i,
.testimonial-card-items .star i,
.tour-details-content .rating .star i,
.activities-details-content .rating .star i {
    color: var(--color-secundario);
}

/* Precios y badges destacados (-50% Off, Featured) en deals-offer */
.offer-content .offer-btn li,
.offer-content .offer-btn li.bg-color,
.deals-offer-section .offer-btn li {
    background-color: var(--color-primario);
    color: #fff;
}

.offer-content .offer-btn li.bg-color {
    background-color: var(--color-secundario);
    color: var(--color-primario);
}

/* Headings y subrayados de acento — el template usa naranja */
.about-section .vdeo-item h5,
.cta-bg-section .watch-btn h6 {
    color: var(--color-secundario);
}

/* Header sticky / nav background */
#header-sticky.sticky,
.header-section-10 .header-top-section-new,
.header-section-10 .header-top-wrapper-new {
    background-color: var(--color-primario);
}

/* Footer — el template lo deja con --header oscuro, ahora
   queda azul marino del cliente. Reforzar texto blanco. */
.footer-section {
    background-color: var(--color-primario);
}

.footer-section,
.footer-section h4,
.footer-section h6,
.footer-section p,
.footer-section a {
    color: #fff;
}

.footer-section a:hover {
    color: var(--color-secundario);
}

/* Links del menú principal hover */
.main-menu ul li a:hover,
.main-menu ul li.active > a {
    color: var(--color-secundario) !important;
}

/* Counter en hero (números grandes) — quitar el color cian */
.counter-area .counter-text h2,
.counter-area .counter-text h2 .count {
    color: #fff;
}

.counter-area .counter-text p {
    color: rgba(255, 255, 255, 0.85);
}

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

/* Hero counter con 6 métricas — reducir gap y permitir wrap
   para que entren en horizontal sin desbordar */
.hero-1 .counter-area .counter-items {
    gap: 32px 28px;
    flex-wrap: wrap;
}

@media (max-width: 1399px) {
    .hero-1 .counter-area .counter-items .counter-text h2 {
        font-size: 30px;
    }
}

/* Iconos check-mark del about + travel-feature usan azul cian */
.activities-list .check-icon svg path,
.feature-icon-item svg path {
    fill: var(--color-primario);
}

/* ------------------------------------------------------------
   H — Páginas legales (RGPD)
   Tipografía legible para aviso-legal, privacidad y cookies
   ------------------------------------------------------------ */
.legal-content {
    background: #fff;
    color: var(--color-texto);
}

.legal-content h3 {
    color: var(--color-primario);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.legal-content h4 {
    color: var(--color-primario);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.legal-content p,
.legal-content li {
    line-height: 1.75;
    color: var(--color-texto);
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--color-primario);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--color-secundario);
}

.legal-content .text-muted {
    color: #888 !important;
}

.legal-content em {
    color: #666;
}

/* ============================================================
   I — Ajustes responsive para los componentes Innovabyte
   El template Turmet ya tiene 329 media queries propias.
   Aquí solo cubrimos los bloques que hemos AÑADIDO o
   modificado (CTAs duales, WhatsApp, disclaimer, panel
   canales rápidos, legal-content). Tres anchos de control:
     - 575px (móvil 375 / iPhone SE)
     - 991px (tablet 768 / iPad portrait)
     - 1399px+ desktop ya cubierto por defecto
   ============================================================ */

/* --- Tablet y móvil (≤991px) --- */
@media (max-width: 991px) {
    /* CTA-bg cierre — reducir padding vertical para no comer pantalla */
    .cta-bg-section[style*="padding: 80px 0"] {
        padding: 60px 0 !important;
    }

    /* Logo del header un poco más pequeño en tablet */
    .header-logo img,
    .logo a img,
    .logo-2 img,
    .offcanvas__logo img {
        max-height: 44px;
    }

    /* Panel canales rápidos en contacto — quitar exigencia de
       altura completa cuando se apila bajo el formulario */
    .contact-quick-channels {
        height: auto !important;
        margin-top: 24px;
    }
}

/* --- Móvil (≤575px) --- */
@media (max-width: 575px) {
    /* CTAs duales — apilarlos a ancho completo para que no
       se pisen ni se desborden con textos largos como
       "Quiero saber más" + "Quiero ser miembro" */
    .hero-cta-dual {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

    .hero-cta-dual .theme-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* CTA-bg cierre — padding aún más reducido en móvil */
    .cta-bg-section[style*="padding"] {
        padding: 48px 0 !important;
    }

    /* Panel canales rápidos — padding reducido para no robar
       ancho de pantalla en 375px */
    .contact-quick-channels {
        padding: 32px 24px !important;
    }

    .contact-quick-channels h3 {
        font-size: 1.25rem;
    }

    /* WhatsApp flotante — un pelín más pequeño y más cerca del
       borde para no tapar el contenido en móviles */
    .whatsapp-floating {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }

    /* Mover back-to-top correspondientemente */
    #back-top {
        bottom: 76px !important;
    }

    /* Disclaimer legal — apilar logo arriba y texto debajo,
       centrado para que respire */
    .legal-disclaimer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .legal-disclaimer .disclaimer-logo {
        max-height: 48px;
    }

    .legal-disclaimer .disclaimer-text {
        font-size: 0.8rem;
    }

    /* Páginas legales — reducir tamaño de h3/h4 en móvil */
    .legal-content h3 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    .legal-content h4 {
        font-size: 1rem;
    }

    /* Hero — los textos del template ya escalan, pero los
       CTAs en hero-content quedan mejor con margen-top
       reducido en pantallas pequeñas */
    .hero-section .hero-content .hero-cta-dual {
        margin-top: 16px;
    }

    /* Counter dentro del hero — en móvil ocupa demasiado
       vertical; reducir gap */
    .counter-area .counter-items {
        gap: 16px;
        flex-wrap: wrap;
    }

    .counter-area .counter-text h2 {
        font-size: 1.75rem;
    }

    /* Footer-bottom links — apilar en lugar de horizontal */
    .footer-section .footer-bottom .bottom-list {
        flex-wrap: wrap;
        gap: 8px 16px;
        justify-content: center;
    }
}

/* ------------------------------------------------------------
   HOME 4 — Carrusel de países visitados.
   Pie siempre visible: continente (izquierda) + país (derecha).
   Gradiente inferior permanente para legibilidad del texto.
   ------------------------------------------------------------ */
.destination-category-item .category-image::before {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(180deg, rgba(10, 31, 36, 0) 40%, rgba(10, 31, 36, 0.85) 100%);
}

.destination-category-item .category-image .category-content {
    opacity: 1;
    visibility: visible;
    bottom: 20px;
}

.destination-category-item:hover .category-image .category-content {
    bottom: 24px;
}

.destination-category-item .category-image .category-content .category-continent {
    font-size: 14px;
    font-weight: 500;
    color: var(--white, #fff);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.destination-category-item .category-image .category-content h5 {
    margin: 0;
    text-align: right;
}

/* ------------------------------------------------------------
   HOME 5 — Sección "Una forma diferente de viajar".
   Iconos esféricos en los bullets "¿Por qué?". Sin estos
   overrides, el flex-shrink del padre achata la bola cuando
   el <p> de al lado se va a 2-3 líneas.
   ------------------------------------------------------------ */
.about-wrapper .about-content .about-area .about-items .icon {
    flex: 0 0 67px;
    width: 67px;
    height: 67px;
    min-width: 67px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

/* HOME 5 — La foto lateral derecha (cliente/home5/derecha.jpg)
   vive en position:absolute bottom/right. Reservamos hueco a la
   derecha de la columna de texto para que las líneas sean más
   cortas y no se monten con la foto en escritorio. */
@media (min-width: 1200px) {
    .about-wrapper .about-content {
        padding-right: 140px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .about-wrapper .about-content {
        padding-right: 80px;
    }
}

/* Sobre Pedro — slider "Mis destinos como fotógrafo de viajes de grupo".
   El template solo blanquea el texto cuando el h4 contiene un <a>.
   Aquí los destinos no son enlaces, así que forzamos color blanco
   en h4 (y descendientes) al hacer hover sobre la card. */
.team-wrapper .team-card-items-2:hover .team-content h4,
.team-wrapper .team-card-items-2:hover .team-content h4 a {
    color: var(--white);
}

/* Sobre Pedro — slider de destinos.
   - Pie pegado al borde inferior de la foto (sin solapar hacia arriba
     ni indentar a la derecha como hace el template original).
   - Caja baja y compacta, texto centrado. */
.team-wrapper .team-card-items-2 .team-content {
    padding: 14px 20px;
    margin: 0;
    border-radius: 0 0 10px 10px;
}
.team-wrapper .team-card-items-2 .team-content h4 {
    font-size: 18px;
    margin: 0;
    line-height: 1.2;
}

/* Footer — los links de los widgets heredan del template el color
   var(--theme) en hover, que aquí es el azul primario (--color-primario)
   y se confunde con el fondo. Mantenemos la animación de desplazamiento
   (margin-left: 5px) pero forzamos el texto en blanco. */
.footer-section .footer-widget-wrapper-new .single-widget-items .list-items li:hover a,
.footer-section .footer-widget-wrapper-new .single-widget-items .list-items li:hover i {
    color: #fff;
}

/* Footer — bloque tras la primera columna.
   El template lo pinta en #242625 (gris carbón opaco) que rompe la
   paleta primario/secundario y tapa la foto. Lo igualamos al primario
   con opacidad ~0.72 para que actúe como capa oscura del propio fondo
   sin ocultar la imagen. */
.footer-widget-wrapper-new::before {
    background: rgba(10, 37, 64, 0.72);
}
