@import url("/dc-assets/apariencia/portal.css?v=2");
@import url("/dc-assets/tema-turismo/portadas.css?v=85");

/* DirectoCanarias · cabeceras, buscadores y tarjetas */
:root {
  --dc-mar-profundo: #081c42;
  --dc-mar-medio: #143b7a;
  --dc-mar-claro: #1556a5;
  --dc-azul-texto: #152f53;
  --dc-naranja-texto: #aa421c;
  --dc-naranja-claro: #ffc39a;
  --dc-icono-azul: #1755a3;
  --dc-icono-claro: #b9dfff;
  --dc-naranja-menu: #ffbc87;
  --dc-degradado-cabecera: linear-gradient(108deg, var(--dc-mar-profundo) 0%, var(--dc-mar-medio) 56%, var(--dc-mar-claro) 100%);
}

/* Franjas de navegación y búsqueda de DirectoCanarias. */
body > :is(header.mast, footer),
body .loving-head > .loving-brand,
body :is(.search-strip, .dc-temporal-strip, .dcp-search, div.search, form.search, form[role="search"], form[data-dc-buscador]),
body :is(.loving-filters, .dcp-chooser, label.parallax-filter, label.filter, .gensearch__form, .elm-searchbox__form) {
  color: #fff;
  background-color: var(--dc-mar-profundo);
  background-image: var(--dc-degradado-cabecera);
}
body > :is(header.mast, [data-dc-identidad-restaurante], footer) > :is(.bar, .wrap) {
  background: transparent;
}
body .loving-head > .loving-brand {
  width: fit-content;
  max-width: 100%;
  padding: .22rem .8rem;
  border-radius: 1.5rem;
}

/* Dentro de una franja, el color recorre todo el ancho una sola vez. */
body :is(.search-strip, .dc-temporal-strip, .dcp-search, div.search) form:is(.search, [role="search"], [data-dc-buscador]) {
  background: transparent;
}
/* Sobre la imagen se ve el paisaje a través de toda la caja de búsqueda. */
html:not([data-dc-ficha-navegable]) body:not(.dcp-page)
  :where(.hero, .loving-hero, .category-feature)
  :is(form.search, form[role="search"], form[data-dc-buscador], .search-strip, .dc-temporal-strip, div.search, label.parallax-filter) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body :is(form.search, form[role="search"], form[data-dc-buscador], .loving-filters, .dcp-chooser, .parallax-filter, label.filter, .gensearch__form, .elm-searchbox__form)
  :is(input:not([type="hidden"]), select, button) {
  color-scheme: dark;
  color: #fff;
  background-color: transparent;
  border-color: rgb(255 255 255 / 72%);
}
body :is(form.search, form[role="search"], form[data-dc-buscador], [data-loving-filters], label.filter, .parallax-filter, .gensearch__form, .elm-searchbox__form) input::placeholder {
  color: #fff;
  opacity: 1;
}
body :is(form.search, form[role="search"], form[data-dc-buscador], .loving-filters, .dcp-chooser) select :is(option, optgroup) {
  background-color: var(--dc-mar-profundo);
  color: #fff;
}
body :is(.dcp-chooser, label.filter, label.parallax-filter) {
  padding: .65rem .85rem .8rem;
  border-radius: 1.1rem;
}
body :is(.loving-filters, .dcp-chooser, label.filter, label.parallax-filter) :is(input, select, button) {
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 1.5rem;
}
body :is(form.search, form[role="search"], form[data-dc-buscador], .loving-filters, .dcp-chooser, label.filter, label.parallax-filter)
  :is(input, select, button):focus-visible {
  outline: 2px solid var(--dc-naranja-menu);
  outline-offset: 1px;
}
@media (forced-colors: active) {
  body :is(form.search, form[role="search"], form[data-dc-buscador], .loving-filters, .dcp-chooser, label.filter, label.parallax-filter)
    :is(input, select, button):focus-visible { outline-color: Highlight; }
}

/* Navegación de las guías, directorios, publicaciones y reservas. */
body > header.mast .bar > a,
body > header.mast .bar .logo span,
body > header.mast .bar :is(nav a, details a, summary) {
  color: #fff;
}
body > header.mast .bar > a:not(.logo, .identity):is(:hover, :focus-visible),
body > header.mast .bar :is(nav a, details a, summary):is(:hover, :focus-visible),
body > header.mast[data-dc-pub-menu] .mobile-menu nav > a:is(:hover, :focus-visible) {
  color: var(--dc-naranja-menu);
}
body > header.mast .bar :is(.language-menu > div, .mobile-menu > nav, .languages > .pop, .hamburger > .pop),
body > header.mast[data-dc-pub-menu] .mobile-menu[open] > nav {
  color: #fff;
  background: linear-gradient(148deg, #0a214a, #184784);
}
body > header.mast .bar .pop a:is(:hover, :focus-visible, [aria-current]) {
  background: #ffffff15;
}
body > header.mast .bar :focus-visible {
  outline: 2px solid var(--dc-naranja-menu);
  outline-offset: 3px;
}
body > header.mast .logo > b,
body > header.mast .identity > .dc {
  color: white;
}

/* Sobre una portada fotográfica, el fondo se hace opaco al bajar. */
body.dc-turismo-editorial > header.mast {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  z-index: 105;
  isolation: isolate;
}
@supports (animation-timeline: scroll()) and (animation-range: 0px 180px) {
  @media screen {
    body.dc-turismo-editorial > header.mast {
      background: transparent;
    }
    body.dc-turismo-editorial > header.mast::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      z-index: -1;
      pointer-events: none;
      background-image: var(--dc-degradado-cabecera);
      animation: dc-turismo-cabecera 1s linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 180px;
    }
    body.dc-turismo-editorial > header.mast:is(:focus-within, :has(details[open]))::before {
      animation: none;
      opacity: 1;
    }
  }
}
/* Los resultados de búsqueda recuperan la altura normal de la barra. */
body.dc-turismo-editorial.dc-query-open > header.mast {
  position: sticky;
  background-image: var(--dc-degradado-cabecera);
}
body.dc-turismo-editorial.dc-query-open > header.mast::before {
  animation: none;
  opacity: 1;
}
@keyframes dc-turismo-cabecera {
  from { opacity: .9; }
  to { opacity: 1; }
}

/* Banda bajo la barra del portal en la ficha artesanal de un restaurante. */
body > [data-dc-identidad-restaurante] {
  color: #fff;
  background: var(--dc-degradado-cabecera);
}
[data-dc-identidad-restaurante] .bar :is(.brand, nav a) {
  color: #fff;
}
[data-dc-identidad-restaurante] .bar nav a:is(:hover, :focus-visible) {
  color: var(--dc-naranja-menu);
}
[data-dc-identidad-restaurante] .sig {
  background: #fff;
}

/* La cabecera personalizada conserva sus imágenes y su logotipo. */
html[data-dc-ficha-navegable] body > header[data-dc-pub-menu]:not(.mast) {
  isolation: isolate;
}
html[data-dc-ficha-navegable] body > header[data-dc-pub-menu]:not(.mast)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background-image: linear-gradient(105deg, #0a214b16, transparent 43%, #1d5caa1b);
}

/* Identidad comercial en las cabeceras de empresa, hotel y restaurante. */
html[data-dc-ficha-navegable] .directory-profile > .directory-heading,
html[data-dc-ficha-navegable] .hero > :is(.hero-copy, .intro) {
  --dc-tinta-ficha: var(--business-accent, var(--brand, var(--accent, #1755a3)));
  background-color: #f5f8fe;
  background-image: linear-gradient(112deg, #e4effe, #fff 64%, #f0f6ff);
}
html[data-dc-ficha-navegable] .directory-profile > .directory-heading {
  border: 0;
  border-inline-start: .3rem solid var(--dc-tinta-ficha);
  border-radius: .85rem;
  padding: clamp(1rem, 3vw, 2rem);
}
html[data-dc-ficha-navegable] .hero > .hero-copy {
  padding-inline: clamp(1.05rem, 3vw, 2.8rem);
}
html[data-dc-ficha-navegable] .directory-heading .directory-logo {
  background-color: white;
}

/* En las miniaturas el sombreado se concentra cerca del título. */
.island-card > span {
  padding-top: 2.5rem;
  color: #fff;
  background: linear-gradient(0deg, #081c42f7 0%, #102c5bd6 40%, transparent 100%);
}
.dc-turismo-photo-card {
  position: relative;
  isolation: isolate;
}
.dc-turismo-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(0deg, #081c42ed, #1739706b 36%, transparent 74%);
}
.dc-turismo-photo-card > :where(h2, h3, span, div, figcaption):not(picture) {
  position: relative;
  z-index: 1;
}
.town-tile > span,
.dcp-island > span,
.dc-municipio .civic-tile,
main article.card,
.town-card {
  background-color: #f4f8ff;
  background-image: linear-gradient(112deg, #e8f1ff, #fff 66%, #f4f8ff);
}

/* Los textos quedan fuera de las fotos de negocios, productos y excursiones. */
.dc-temporal .dc-temporal-card .dc-card-copy,
.dc-latest-row .dc-latest-text,
.directory-result:not(.dc-temporal-card) > a > div,
.loving-card > .loving-card-body,
.dcp-card > .dcp-card-inner {
  background-color: white;
  background-image: linear-gradient(132deg, #e8f1ff, #fff 46%, #fff 78%, #f2f7ff);
}
.portal-about h3,
.local-visit h2,
.dc-municipio .dc-civic-kicker,
.dc-municipio .dc-civic-website,
.dc-catalogo-local .dc-ficha-categoria a {
  color: var(--dc-naranja-texto);
}
.dc-municipio .civic-tile svg,
.dc-muni-acceso svg,
.dc-muni-simbolo svg {
  color: var(--dc-icono-azul);
  stroke: currentColor;
}

/* Contenido y controles del negocio. El logotipo conserva su identidad. */
html[data-dc-ficha-navegable] :is(.directory-heading, .hero-copy, .intro) h1 {
  color: var(--dc-azul-texto);
}
html[data-dc-ficha-navegable] :is(.hero-copy .eyebrow, .intro .eyebrow, .intro .kicker, .dc-ficha-categoria a),
html[data-dc-ficha-navegable] :is(.directory-details, .hotel-contact, .detail) > h2,
html[data-dc-ficha-navegable] .dcp-profile-group > h2 {
  color: var(--dc-naranja-texto);
}
html[data-dc-ficha-navegable] :is(.directory-icon, .address-icon),
html[data-dc-ficha-navegable] :is(.hero-copy, .intro, .story, .aside, .hotel-contact, .backcat, .dcp-profile, .dc-ficha-categoria) svg,
.dcp-card :is(.dcp-benefits, .dcp-byline, .dcp-product-icon, .dcp-town, .dcp-ticket, .dcp-action) svg {
  color: var(--dc-icono-azul);
}
html[data-dc-ficha-navegable] :is(.directory-actions, .directory-details, .directory-social, .buttons, .actions, .contact-list, .contactlinks, .socials) a:is(:hover, :focus-visible) {
  border-color: var(--dc-icono-azul);
}
html[data-dc-ficha-navegable] :is(.btn.solid, .btn.primary, .directory-contact .btn) {
  color: #fff;
  background: #12376e;
  border-color: #12376e;
  text-shadow: none;
}
html[data-dc-ficha-navegable] :is(.btn.solid, .btn.primary, .directory-contact .btn):is(:hover, :focus-visible) {
  color: #fff;
  background: #174780;
}
html[data-dc-ficha-navegable] :is(.btn.solid, .btn.primary, .directory-contact .btn, .top, .back-to-top, form[data-dc-buscador] button, .mast summary) svg {
  color: var(--dc-icono-claro);
}
html[data-dc-ficha-navegable] .stars { color: #c1cfe1; }
html[data-dc-ficha-navegable] .stars::before,
html[data-dc-ficha-navegable] .stars::after { color: var(--dc-icono-azul); }
html[data-dc-ficha-navegable] .hero-review .one-star { color: var(--dc-icono-azul); }

/* Las plantillas antiguas enlazan algunas redes únicamente con su nombre. */
html[data-dc-ficha-navegable] :is(.socials, .contact-list) a:not(:has(svg, img)):is([href*="instagram.com/"], [href*="facebook.com/"], [href*="youtube.com/"]) {
  display: inline-flex;
  align-items: center;
  gap: .43em;
}
html[data-dc-ficha-navegable] :is(.socials, .contact-list) a[href*="instagram.com/"] { --dc-red: url("iconos/instagram.svg"); }
html[data-dc-ficha-navegable] :is(.socials, .contact-list) a[href*="facebook.com/"] { --dc-red: url("iconos/facebook.svg"); }
html[data-dc-ficha-navegable] :is(.socials, .contact-list) a[href*="youtube.com/"] { --dc-red: url("iconos/youtube.svg"); }
html[data-dc-ficha-navegable] :is(.socials, .contact-list) a:not(:has(svg, img)):is([href*="instagram.com/"], [href*="facebook.com/"], [href*="youtube.com/"])::before {
  content: "";
  flex: 0 0 1.13em;
  width: 1.13em;
  height: 1.13em;
  background: var(--dc-icono-azul);
  -webkit-mask: var(--dc-red) center / contain no-repeat;
  mask: var(--dc-red) center / contain no-repeat;
}
@media (prefers-reduced-motion: reduce) {
  body.dc-turismo-editorial > header.mast::before {
    animation: none;
    opacity: 1;
  }
}
@media print {
  body.dc-turismo-editorial > header.mast {
    position: static;
  }
}
