/*
 * Dark footer «Pie oscuro» (approved 01-home base.css + mobile.css, .site-footer…).
 * Block Element «Pie» (Site Footer): theme/elements/site-footer.html.
 *
 * GeneratePress wraps the Element in its own <div class="site-footer">, so every rule
 * for the approved dark <footer> is scoped to footer.site-footer; the wrapper and the
 * textile band above stay unpainted. The resets of base.css (:where(.site-footer) …)
 * already clear margins and list styles inside.
 *
 * Columns «Agencia» and the legal links are core/navigation (nav > ul.wp-block-navigation__container
 * > li > a.wp-block-navigation-item__content; the block's className lands on both the nav and
 * the ul); «Destinos» is core/categories (ul > li.cat-item > a).
 * Their link rules carry .wp-block-navigation-item__content twice in :is() to outweigh
 * the block library's «.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{color:inherit}».
 */

footer.site-footer{background:var(--color-night);color:rgba(244,236,221,.82);padding:var(--space-4xl) 0 0}

.site-footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:var(--space-2xl);padding-bottom:var(--space-3xl)}

/* Brand: core/site-logo (same PNG as the header) and the tagline with «Texto destacado» */
footer.site-footer .site-footer__logo{margin:0 0 var(--space-lg);line-height:0}
footer.site-footer .site-footer__logo img{display:block;width:auto;height:112px;max-width:none}
.site-footer__tagline{font-family:var(--font-display);font-weight:600;font-size:1.375rem;line-height:1.3;color:var(--color-white);max-width:260px}
.site-footer__tagline .title-accent{display:block;color:var(--color-ochre)}

/* Column titles. On mobile footer.js puts a .footer-col__toggle button inside (all:unset, it inherits this) */
.footer-col__title{margin:0 0 var(--space-lg);font-family:var(--font-body);font-weight:700;font-size:var(--fs-xs);line-height:1.6;letter-spacing:.2em;text-transform:uppercase;color:var(--color-ochre)}
/* «.footer-col__title >» (0,2,0): GP's button rules and its Typography for buttons (Russo One, no tracking)
   use button:not(.menu-toggle) (0,1,1) and would beat a bare class, even with all:unset */
.footer-col__title > .footer-col__toggle{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:var(--space-sm);width:100%;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit}
.footer-col__title > .footer-col__toggle:is(:hover,:focus,:active){background:none;color:inherit}
.footer-col__title > .footer-col__toggle:focus-visible{outline:3px solid var(--color-ochre);outline-offset:3px;border-radius:var(--radius-xs)}
.footer-col__chevron{display:none;flex:none;color:var(--color-sand);transition:transform .2s}
.footer-col__toggle[aria-expanded="true"] .footer-col__chevron{transform:rotate(180deg)}

/* Link lists: «Destinos» (core/categories) and «Agencia» (core/navigation, vertical) */
footer.site-footer .footer-col__list,
footer.site-footer .footer-col__list .wp-block-navigation__container{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0;padding:0;list-style:none}
footer.site-footer .footer-col__list :is(a, .wp-block-navigation-item__content.wp-block-navigation-item__content){display:inline-flex;align-items:center;min-height:36px;padding:0;font-size:inherit;line-height:1.6;text-decoration:none}
footer.site-footer .footer-col__list :is(a, .wp-block-navigation-item__content.wp-block-navigation-item__content):is(:link,:visited,:focus,:active){color:rgba(244,236,221,.82)}
footer.site-footer .footer-col__list :is(a, .wp-block-navigation-item__content.wp-block-navigation-item__content):hover{color:var(--color-white);text-decoration:underline;text-underline-offset:4px}

/* Contact column: email / phone ({{vac_contact}}; an empty one is not rendered) and social links */
.site-footer__contact{margin-bottom:var(--space-lg)}
.site-footer__contact-link{display:inline-flex;align-items:center;min-height:36px;text-decoration:none}
.site-footer__contact-link:is(:link,:visited,:hover,:focus,:active){color:var(--color-sand)}
.site-footer__contact-link:hover{text-decoration:underline;text-underline-offset:4px}

:root{
  --icon-instagram:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3Ccircle cx='17.2' cy='6.8' r='1.1'/%3E%3C/svg%3E");
  --icon-facebook:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 21v-7.5h2.6l.4-3H14V8.7c0-.9.3-1.5 1.5-1.5H17V4.5a20 20 0 0 0-2.3-.1C12.4 4.4 11 5.8 11 8.3v2.2H8.5v3H11V21'/%3E%3C/svg%3E");
}
.social{display:flex;gap:var(--space-sm)}
/* No social URL filled in yet: no empty list */
.social:not(:has(li)){display:none}
/* The visible name («Instagram») stays as the accessible name; the approved 20px icon is drawn by CSS */
.social__link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--color-line-light);border-radius:var(--radius-pill);font-size:0;line-height:0;text-decoration:none;transition:color .2s,border-color .2s}
.social__link:is(:link,:visited,:focus,:active){color:var(--color-sand)}
.social__link:hover{border-color:var(--color-ochre);color:var(--color-ochre)}
.social__link::before{content:"";flex:none;width:20px;height:20px;background-color:currentColor;-webkit-mask:var(--social-icon) center / contain no-repeat;mask:var(--social-icon) center / contain no-repeat}
.social__link--instagram{--social-icon:var(--icon-instagram)}
.social__link--facebook{--social-icon:var(--icon-facebook)}

/* Bottom line: copyright and legal links (core/navigation, horizontal) */
.site-footer__bottom{display:flex;align-items:center;justify-content:space-between;gap:var(--space-lg);padding:var(--space-lg) 0;border-top:1px solid var(--color-line-light);font-size:var(--fs-xs)}
footer.site-footer .site-footer__legal,
footer.site-footer .site-footer__legal .wp-block-navigation__container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--space-lg);margin:0;padding:0;list-style:none}
footer.site-footer .site-footer__legal :is(a, .wp-block-navigation-item__content.wp-block-navigation-item__content){display:inline-flex;align-items:center;min-height:44px;padding:0;font-size:inherit;line-height:1.6;text-decoration:none}
footer.site-footer .site-footer__legal :is(a, .wp-block-navigation-item__content.wp-block-navigation-item__content):is(:link,:visited,:focus,:active){color:rgba(244,236,221,.75)}
footer.site-footer .site-footer__legal :is(a, .wp-block-navigation-item__content.wp-block-navigation-item__content):hover{color:var(--color-white)}

/* Tablet (approved base.css, 768–1100px) */
@media (max-width:1100px) and (min-width:768px){
  .site-footer__grid{grid-template-columns:1fr 1fr}
}

/* Mobile (approved mobile.css) */
@media (max-width:767px){
  footer.site-footer{padding-top:var(--space-3xl)}
  .site-footer__grid{grid-template-columns:1fr;gap:0;padding-bottom:var(--space-xl)}
  .site-footer__brand{padding-bottom:var(--space-xl)}
  footer.site-footer .site-footer__logo img{height:88px}
  .site-footer__contact-link{min-height:44px}

  /* «Destinos» and «Agencia»: 56px accordions (footer.js). Without JS the lists stay open */
  .footer-col{border-top:1px solid var(--color-line-light)}
  .footer-col__title{margin:0}
  .footer-col--collapsible .footer-col__title{display:flex;align-items:center;min-height:56px}
  .footer-col__title > .footer-col__toggle{min-height:56px;cursor:pointer}
  .footer-col__chevron{display:block}
  .footer-col.is-collapsible:not(.is-open) .footer-col__list{display:none}
  /* «>»: core/navigation repeats the block class on its inner ul */
  footer.site-footer .footer-col--collapsible > .footer-col__list{padding-bottom:var(--space-sm)}
  footer.site-footer .footer-col__list :is(a, .wp-block-navigation-item__content.wp-block-navigation-item__content){min-height:44px}

  .footer-col--contact{padding-top:var(--space-lg)}
  .footer-col__heading{margin-bottom:var(--space-xs)}

  /* Legal links above the copyright */
  .site-footer__bottom{flex-direction:column-reverse;align-items:flex-start;gap:var(--space-xs)}
}
