/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Montserrat:wght@400;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(220, 24%, 12%);
  --black-color-light: hsl(220, 24%, 15%);
  --black-color-lighten: hsl(220, 20%, 18%);
  --white-color: #fff;
  --body-color: hsl(220, 100%, 97%);

   /* Agregue esta variable para el main */
  --accent-cyan: hsl(190, 85%, 55%);
  --accent-cyan-dark: hsl(190, 75%, 38%);
  --accent-gold: hsl(32, 65%, 52%);
  --accent-gold-light: hsl(32, 70%, 94%);
  --ink-soft: hsl(220, 20%, 38%);
  --card-color: #fff;
  --border-soft: hsl(220, 30%, 90%);
  /* Agregue esta variable para el main */

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --display-font: "Fraunces", serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  padding-top: var(--header-height); /* Aumento por causa del footer */
  /*Para el footer*/
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--black-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--white-color);
}

.nav__mixto{ /* Para mi logo */
  width: var(--header-height);
  height: var(--header-height);
  display: block;
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__right{
  display: flex;
  align-items: center;
  column-gap: 1rem;
}


.nav__Cusco {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  white-space: nowrap;
}

.nav__link.nav__Cusco--desktop {
  display: none;
}


.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

.nav__selected {
  display: none;
  align-items: center;
  column-gap: 0.35rem;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.nav__selected.show-selected {
  display: flex;
}

.nav__selected-arrow {
  transition: transform 0.4s;
}

.nav__selected.menu-open .nav__selected-arrow {
  transform: rotate(180deg);
}

.nav__toggle.hide-toggle {
  display: none;
}



/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--black-color);
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--white-color);
  background-color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
  -webkit-tap-highlight-color: transparent;
}

.nav__link:hover {
  background-color: var(--black-color-light);
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dropdown__arrow {
  width: 1.25rem;
  height: 1.25rem;
  filter: brightness(0) invert(1) drop-shadow(0 0 0.5px #ffffff);
  transition: transform .4s;
}



.dropdown__link { 
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--white-color);
  background-color: var(--black-color-light);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i { 
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover,   
.dropdown__sublink:hover { background-color: var(--black-color);
}

.dropdown__link:active{
  background-color: var(--black-color);
}

.dropdown__menu { 
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu (MODIFICADO: solo en dispositivos con mouse real) */
@media (hover: hover) and (pointer: fine) {
  .dropdown__item:hover .dropdown__menu { 
    max-height: 1000px;
    transition: max-height .4s ease-in;
  }

  /* Rotate dropdown icon */
  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }
}

/* NUEVO: apertura del acordeón en mobile, controlada por JS (no por hover) */
.dropdown__item--open .dropdown__menu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}
.dropdown__item--open .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__Cusco--mobile,
  .nav__selected {
    display: none !important;
  }

  .nav__link.nav__Cusco--desktop {
    display: flex;
    align-items: center;
  }

  .nav__link.nav__Cusco--desktop:hover {
    background-color: transparent;
  }


  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  /* Agregue para el cambio de color */
  .nav__link--selected .nav__link-text{
    color: hsl(190, 85%, 55%);
  }
  /* Agregue para el cambio de color */
  .dropdown__item {
    position: relative;
  }

  .dropdown__menu { 
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }


  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }
}
  /*=============== MAIN ===============*/
  .main{
    flex: 1;
  }

   
  /* ====================================================== */
  /* ===================== NUEVO: HERO ===================== */
  /* ====================================================== */
  .hero {
    position: relative;
    background-color: var(--black-color);
    color: var(--white-color);
    overflow: hidden;
    padding-block: 4rem 5rem;
  }
  
  .hero__container {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 2.5rem;
    align-items: center;
  }
  
  @media screen and (min-width: 968px) {
    .hero__container {
      grid-template-columns: 1.1fr .9fr;
      gap: 3rem;
    }
  }
  
  .hero__title {
    font-family: var(--display-font);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.1;
    max-width: 16ch;
  }
  
  .hero__title em {
    font-style: normal;
    color: var(--accent-cyan);
  }
  
  .hero__text {
    margin-top: 1.25rem;
    color: hsl(220, 25%, 78%);
    max-width: 42ch;
    line-height: 1.6;
  }
  
  /* Placa/tarjeta ilustrativa: representa una publicación real dentro del hero */
  .hero__card {
    position: relative;
    justify-self: center;
    background-color: var(--white-color);
    color: var(--black-color);
    border-radius: 1.1rem;
    padding: 1.5rem;
    width: min(100%, 300px);
    box-shadow: 0 24px 48px hsla(220, 60%, 4%, .35);
    transform: rotate(-3deg);
  }
  
/*   .hero__card::before {
    content: "";
    position: absolute;
    top: -14px; right: 18px;
    width: 1.6rem; height: 1.6rem;
    border-radius: 50%;
    background-color: var(--accent-gold);
    box-shadow: 0 4px 10px hsla(32, 60%, 30%, .4);
  } */
  
  .hero__card-tag {
    font-size: .7rem;
    font-weight: var(--font-semi-bold);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent-cyan-dark);
    margin-bottom: .4rem;
    display: block;
  }
  
  .hero__card-title {
    font-family: var(--display-font);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: .5rem;
  }
  
  .hero__card-text {
    font-size: .85rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .hero__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed var(--border-soft);
    padding-top: .75rem;
    font-size: .8rem;
    color: var(--ink-soft);
  }
  
  .status-dot {
    width: .85rem; height: .85rem;
    border-radius: 50%;
    display: inline-block;
  }
  .status-dot--green  { background-color: hsl(142, 65%, 45%); }
  
  /* Montañas de fondo, sutil, referencia a Cusco/los Andes */
  .hero__mountains {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 140px;
    z-index: 1;
    opacity: .5;
  }
  

  
  /* ====================================================== */
  /* ================ NUEVO: SOBRE LA PÁGINA ================ */
  /* ====================================================== */
  .about {
    padding-block: 3.5rem;
  }
  
  .section__eyebrow {
    color: var(--accent-cyan-dark);
    font-weight: var(--font-semi-bold);
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .5rem;
    display: block;
  }
  
  .section__title {
    font-family: var(--display-font);
    font-weight: 600;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--black-color);
    max-width: 30ch;
  }
  
  .about__text {
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 65ch;
    margin-top: 1.5rem;
  }
  .about__text p + p { margin-top: 1rem; }
  .about__text strong { color: var(--black-color); }


  
  /* ====================================================== */
  /* ============== NUEVO: VIGENCIA DE AVISOS ============== */
  /* ====================================================== */
  .how {
    padding-block: 3.5rem;
  }
  
  /* Leyenda de vigencia (verde/amarillo/rojo/azul) */
  .freshness {
    background-color: var(--black-color); 
    border-radius: 1rem;
    padding: 1.75rem;
    color: var(--white-color);
  }
  
  .freshness__title {
    font-family: var(--display-font);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: .25rem;
  }
  
  .freshness__subtitle {
    font-size: .85rem;
    color: hsl(220, 20%, 70%);
    margin-bottom: 1.25rem;
  }
  
  .freshness__list {
    display: grid;
    gap: .9rem;
  }
  
  @media screen and (min-width: 768px) {
    .freshness__list { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  }
  
  .freshness__item {
    display: flex;
    align-items: flex-start;
    column-gap: .6rem;
    background-color: hsl(219, 24%, 21%); /* hsl(220, 24%, 16%)*/ 
    border-radius: .6rem;
    padding: .85rem;
  }
  
  .freshness__dot {
    width: .85rem; height: .85rem;
    border-radius: 50%;
    margin-top: .2rem;
    flex-shrink: 0;
  }
  .freshness__dot--green  { background-color: hsl(142, 65%, 45%); }
  .freshness__dot--yellow { background-color: hsl(45, 90%, 55%); }
  .freshness__dot--red    { background-color: hsl(0, 75%, 55%); }
  .freshness__dot--blue   { background-color: hsl(210, 80%, 58%); }
  
  .freshness__item-title { font-size: .85rem; font-weight: var(--font-semi-bold); }
  .freshness__item-text { font-size: .78rem; color: hsl(220, 20%, 72%); margin-top: .15rem; line-height: 1.4; }

  /* ====================================================== */
  /* =================== NUEVO: CATEGORÍAS =================== */
  /* ====================================================== */
  .categories {
    padding-block: 3.5rem;
    background-color: var(--accent-gold-light);
  }
  
  .categories__header {
    max-width: 40ch;
  }
  
  .categories__groups {
    display: grid;
    gap: 2.5rem;
    margin-top: 2.5rem;
  }
  
  @media screen and (min-width: 968px) {
    .categories__groups {
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }
  }
  
  .categories__group-title {
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-family: var(--display-font);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--black-color);
    margin-bottom: 1rem;
  }
  
  .categories__group-title i { color: var(--accent-cyan-dark); font-size: 1.4rem; }
  
  .card-list {
    display: grid;
    gap: 1rem;
  }
  
  /* Tarjeta estilo "volante pinchado" -> el elemento distintivo de esta sección */
  .pin-card {
    background-color: var(--card-color);
    border-radius: .85rem;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    column-gap: 1rem;
    box-shadow: 0 10px 24px hsla(220, 40%, 20%, .08);
    border: 1px solid var(--border-soft);
    transition: transform .25s, box-shadow .25s;
  }
  
  .pin-card:hover {
    transform: translateY(-4px) rotate(0deg) !important;
    box-shadow: 0 16px 30px hsla(220, 40%, 20%, .14);
  }
  
  /* leve rotación alternada, como avisos pinchados en una cartelera */
  .card-list .pin-card:nth-child(odd)  { transform: rotate(-.6deg); }
  .card-list .pin-card:nth-child(even) { transform: rotate(.6deg); }
  
  .pin-card__icon {
    flex-shrink: 0;
    width: 2.75rem; height: 2.75rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background-color: var(--accent-gold-light);
    color: var(--accent-gold);
    font-size: 1.2rem;
  }
  
  .pin-card__title {
    font-weight: var(--font-semi-bold);
    color: var(--black-color);
  }
  
  .pin-card__text {
    font-size: .82rem;
    color: var(--ink-soft);
    margin-top: .1rem;
  }
  
  /* =======================================*/
  /* ================FOOTER ================*/
  /* =======================================*/
  .footer{
    position: relative;
    width: 100%;
    background-color: var(--black-color);
    min-height: 100px;
    padding: 10px 50px 5px 50px; /*Antes 20px 50px ahora */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 5px 5px; /* Antes 10px 5px*/
    flex-wrap: wrap;
  }

  .icon{
    color: var(--white-color);
    font-size: 1.5rem;
    display: inline-block;
    margin: 0 10px;
    transition: 0.5s;
  }

  .icon:hover{
    transform: translateY(-7px);
  }

  .footer__menu{
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
    margin: 5px 0; /* Antes 10px 0 Ahora 5px 0*/
    flex-wrap: wrap;
  }

  .footer__icon{
    color: var(--white-color);
    font-size: var(--normal-font-size);
    display: inline-block;
    margin: 5px 10px;
    opacity: 0.5;
    transition: 0.3s;
  }

  .footer__icon:hover{
    opacity: 1;
  }

  .footer__text{
    color: var(--white-color);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 0.875rem;
  }