/*
Theme Name: Azahar Turismo
Theme URI: https://azaharturismo.es
Author: Sara
Author URI: https://azaharturismo.es
Description: Tema para Azahar Turismo
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nombre-del-tema
Tags: blog, custom-logo, responsive-layout, featured-images, translation-ready
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  
}

img,
video,
svg {
  max-width: 100%;
}

/* ========================= */
/* FUENTE MONTSERRAT LOCAL */
/* ========================= */


@font-face {
  font-family: 'Montserrat';
  src: url("/wp-content/themes/ahazar-pruebas/assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Copperplate';
  src: url("/wp-content/themes/ahazar-pruebas/assets/fonts/Copperplate.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
html,
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  font-size: var(--text-md);
  line-height: 1.5;
}




/* ========================= */
/* COLORES */
/* ========================= */
:root {
  --naranja: #d86f4a;
  --naranja-oscuro: #cc643e;
  --verde: #6f7b4a;
  --blanco: #f2ecdf;
  --negro: #252525;
}
/* ========================= */
/* TAMAÑO FUENTE */
/* ========================= */
:root {

  --text-hero: clamp(4rem, 8vw, 6.25rem);
  --text-hero-sub: clamp(2.5rem, 5vw, 3.75rem);

  --text-h1: 3rem;        /* 48px */
  --text-h2: 2.25rem;     /* 36px */
  --text-h3: 1.5rem;      /* 24px */

  --text-lg: 1.25rem;     /* 20px */
  --text-md: 1rem;        /* 16px */
  --text-sm: 0.875rem;    /* 14px */
  --text-xs: 0.75rem;     /* 12px */
}

/* quitar highlight azul móvil */

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

:root {
  color-scheme: light;
  
}

html,
body {
  color-scheme: light;
  background-color: var(--blanco);
  color: var(--negro);
}

input,
textarea,
select,
button {
  color-scheme: light;
}

/*animaciones carga de pagina*/
/* ========================= */
/* REVEAL GLOBAL SEGURO */
/* ========================= */

.js-reveal {
  opacity: 0;
  transform: translateY(45px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal-left {
  opacity: 0;
  transform: translateX(-45px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.js-reveal-right {
  opacity: 0;
  transform: translateX(45px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.js-reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal,
  .js-reveal-left,
  .js-reveal-right,
  .js-reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   FAVORITO GLOBAL (MAIN.CSS)
   ========================================================================== */

.ruta-fav {
  width: 48px;
  height: 48px;
  flex-shrink: 0;

  border: none;
  border-radius: 50%;

  background-color: #fff;
  color: var(--naranja);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.ruta-fav:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.ruta-fav i {
  font-size: var(--text-lg);
  line-height: 1;
  pointer-events: none;
}


.ruta-fav.is-active {
  background-color: var(--naranja) !important;
  color: var(--blanco) !important;
}

.ruta-fav.is-active i {
  font-weight: 900 !important;
  color: var(--blanco) !important;
}


.ruta-fav.animate {
  animation: popHeartSutil 0.25s ease-out forwards;
}

@keyframes popHeartSutil {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   POPUP DE COOKIES
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px;
  z-index: 99999;
  
  /* Estado inicial oculto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Estado visible al activarse por JS */
.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner-text p {
  font-size: 0.9rem;
  color: #4a5568;
  line-height: 1.4;
  margin: 0;
}

.cookie-banner-text i {
  color: var(--naranja);
  margin-right: 6px;
  font-size: 1.1rem;
}

.cookie-banner-text a {
  color: var(--naranja);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Botones del banner */
.btn-cookie {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-cookie:active {
  transform: scale(0.97);
}

.btn-cookie-primary {
  background-color: var(--naranja);
  color: #ffffff;
}

.btn-cookie-primary:hover {
  filter: brightness(1.08);
}

.btn-cookie-secondary {
  background-color: #edf2f7;
  color: #4a5568;
}

.btn-cookie-secondary:hover {
  background-color: #e2e8f0;
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px;
  }

  .cookie-banner-actions {
    flex-direction: column-reverse;
  }

  .btn-cookie {
    width: 100%;
    text-align: center;
  }
}