/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Merriweather:ital@0;1&family=Poppins:wght@400;500;600&family=Raleway:ital@1&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700,900|Allura');

/*============= == VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  --animate-leaf-1: animate-leaf-1 5s infinite ease-in-out;
  --animate-leaf-2: animate-leaf-2 5s infinite ease-in-out;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #e1062c;
  --first-color-alt: #c00525;
  --title-color: hsl(210, 24%, 90%);
  --text-color: hsl(210, 16%, 70%);
  --white-color: #fff;
  --body-color: #0b0b0b;
  --header-color: #141416;
  --text-color-description: #b7bdc6;
  --text-color-principal: #f5f6f7;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --second-font: "Poppins", cursive;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: #fff;
  background: 
    linear-gradient(180deg, #16213e 0%, #1a1a2e 30%, #0f0f1a 70%, #0b0b0b 100%),
    radial-gradient(ellipse at 20% 0%, rgba(225, 6, 44, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(225, 6, 44, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-weight: var(--font-medium);
  text-decoration: none;
}

p {
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/

.container {
  max-width: 1024px;
  margin-inline: 1rem;
}

/*=============== SCROLL FADE EFFECTS ===============*/
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 4rem 1rem;
  position: relative;
  will-change: transform;
}

.section__title {
  font-size: 2.5rem;
  font-family: var(--second-font);
  text-align: center;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

/*=============== ESTADISTICAS ===============*/
.estadisticas {
  padding: 4rem 1rem;
  position: relative;
}

.estadisticas__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.estadisticas__card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.estadisticas__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--first-color);
}

.estadisticas__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  color: #fff;
}

.estadisticas__number {
  font-size: 3.5rem;
  font-weight: var(--font-bold);
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}

.estadisticas__label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.estadisticas__title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #e0e0e0;
  position: relative;
  z-index: 1;
}

.estadisticas__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #e1062c;
  margin: 1rem auto 0;
  border-radius: 2px;
}

@media screen and (max-width: 768px) {
  .estadisticas__number {
    font-size: 2.5rem;
  }
  
  .estadisticas__card {
    padding: 2rem 1rem;
  }
}
/*==============MAIN===============*/

.main {
  overflow-x: hidden;
}

.cilindraje-section,
.equipo-footer,
.footer {
  background: transparent !important;
  margin-top: 0;
  padding-top: 60px;
}

.cilindraje-section:first-of-type {
  padding-top: 40px;
}

.footer__bg {
  display: none !important;
}

/* leaf animation */
@keyframes animate-leaf-1 {
  0%, 100% {
    transform: scale(.5);
  }
  50% {
    transform: scale(1);
  }
}
@keyframes animate-leaf-2 {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(.5);
  }
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  background: var(--header-color);
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

.nav{
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/*=============== NAVBAR ===============*/
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.nav__logo img {
  width: 55px;
}

.nav__logo p {
  font-size: 1.25rem;
  font-weight: 600;
}

.nav__logo:hover {
  text-decoration: none;
}

.nav__close,
.nav__toggle {
  display: flex;
  color: #DFE6DA;
}

.nav__toggle {
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

.nav__menu {
  padding: 0 1rem;
}

.nav__list {
  display: flex;
  flex-direction: column;
  text-align: center;
  row-gap: 1rem;
}

.nav__link {
  color: #f5f6f7;
  font-weight: var(--font-medium);
  transition: color .4s;
}

.nav__link:hover {
  color: #7a8088;
  text-decoration: none;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.active-link {
  color: grey;
}

.header.scrolled,
.header.scrolled * {
  background: #16213e !important;
}

/* PC: Header transparente que cambia al hacer scroll */
@media screen and (min-width: 768px) {
  .header {
    background: transparent !important;
  }
  
  .header.scrolled {
    background: #16213e !important;
  }
}

/* Mobile navbar */
@media screen and (max-width: 767px) {
  .hero {
    display: none !important;
  }
  
  .header {
    background: var(--header-color);
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    left: -100%;
    background-color: var(--header-color);
    width: 100%;
    height: 100vh;
    padding-block: 4rem 2rem;
    transition: left .4s ease;
    z-index: calc(var(--z-fixed) + 1);
  }
  
  .nav__menu.show-menu {
    left: 0;
  }
}

/* Responsive sections */
@media screen and (max-width: 767px) {
  .about {
    padding: 3rem 1rem;
  }

  .about__container {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .about__data,
  .about__data .section__title {
    text-align: center;
  }

  .about__description {
    text-align: center;
    font-size: 0.95rem;
  }

  .about__img-wrapper {
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .about__img-parallax {
    max-width: 100%;
  }

  .estadisticas {
    padding: 3rem 1rem;
  }

  .estadisticas__title {
    font-size: 1.5rem;
    text-align: center;
  }

  .estadisticas__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0;
  }

  .estadisticas__card {
    padding: 1.5rem 1rem;
  }

  .estadisticas__icon {
    font-size: 2rem;
  }

  .estadisticas__number {
    font-size: 1.75rem;
  }

  .estadisticas__label {
    font-size: 0.7rem;
  }

  .countdown-section {
    padding: 2rem 1rem;
  }

  .countdown-card {
    padding: 2rem 1rem;
    max-width: 100%;
  }

  .countdown-title {
    font-size: 1.5rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .time-box {
    padding: 1rem;
  }

  .time-value {
    font-size: 1.75rem;
  }

  .time-label {
    font-size: 0.65rem;
  }

  .footer {
    padding: 1rem 1rem;
  }

  .footer__container {
    padding: 0.5rem 1rem;
    text-align: center;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__social {
    justify-content: center;
    gap: 1rem;
  }

  .footer__copy {
    font-size: 0.75rem;
  }

  .scrollup {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    right: 1rem;
    bottom: 1.5rem;
  }

  .section__title {
    font-size: 1.5rem;
    text-align: center;
  }
}

/*SPINNER*/ 
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid #000;
    border-radius: 50%;
    animation: girar 1s linear infinite;
}

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/*=============== HOME ===============*/
.home{
  position: relative;
  height: 650px;
  padding-top: 7rem;
  overflow: hidden;
}

.home__title {
  color: var(--white-color);
  /*font-size: var(--biggest-font-size);*/
  font-family: var(--second-font);
  text-align: center;
  margin-top: 0;

}
.home__title{
font-size: 70px;
}

.home img{
  position: absolute;
}

.home__mountain-1,
.home__leaf{
  bottom: 0;
}
.home__leaf{
  height: 200px;
}

.home__village,
.home__pine,
.home__moon{
  left: 0;
  right: 0;
  margin: 0 auto;
}

.home__village{
  width: 260px;
  bottom: 1rem;
}

.home__pine{
  width: 250px;
  bottom: 4rem;
}

.home__mountain-2{
  bottom: 3rem;
}

.home__mountain-3{
  bottom: 6rem;
}

.home__moon{
  width: 100px;
  bottom: .5rem;
}

.home__trineo{
  width: 250px;
  bottom: 4.5rem;
  left: 10%;
  top: 10%;
  
}
.home__trineo2{
  position: absolute;
  margin-top: 60px;
  right: 0;
  width: 300px;
}
.home__trineo3{
  left: 44%;
  width: 190px;

}
/*=============== ABOUT ===============*/

/* ===== SECCIÓN BASE ===== */
.about {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

/* Grid moderno */
.about__container.grid {
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

/* Tarjeta glass */
.about__data {
  max-width: 100%;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* Texto tipo landing SaaS */
.about__data .section__title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.about__description {
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* Contenedor de imagen con parallax */
.about__img-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1000px;
  overflow: hidden;
  border-radius: 24px;
}

.about__img-parallax {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__img-parallax.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about__img-parallax.hiding {
  opacity: 0;
  transform: translateY(-50px) scale(0.95);
}

/* Efecto parallax en scroll */
.about__img-parallax {
  will-change: transform, opacity;
}

/* Botón estilo producto SaaS */
.button {
  display: inline-block;
  background: #e1062c;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.35s ease;
}

.button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(225, 6, 44, 0.5);
  background: #c00525;
}

/* Responsive */
@media (max-width: 768px) {
  .about {
    padding: 4rem 0;
  }
  
  .about__container.grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about__data {
    text-align: center;
  }
  
  .about__description {
    max-width: 100%;
  }
  
  .about__img-wrapper {
    margin-top: 1rem;
  }
}

/*=============== problematicas ===============*/


/*=============== problematicas ===============*/

.problematicas__container{
  position: relative;
  grid-template-columns: 200px;
  justify-content: center;
  row-gap: 3rem;
  padding-top: 1.5rem;
}

.problematicas__card{
  text-align: center;
}

.problematicas__img{
  width: 180px;
  margin-bottom: .5rem;
  border-radius: 50%;
}

.problematicas__title{
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.problematicas__description{
  font-size: var(--small-font-size);
  padding-inline: 1.5rem;
  
}

.problematicas__leaf-1,
.problematicas__leaf-2,
.problematicas__leaf-3{
  width: 50px;
  position: absolute;
}

.problematicas__leaf-1{
  left: -5.5rem;
  top: 6.5rem;
  animation: var(--animate-leaf-1);
}

.problematicas__leaf-2{
  top: 23rem;
  right: 0;
  animation: var(--animate-leaf-2);
}

.problematicas__leaf-3{
  bottom: 9rem;
  left: 0;
  animation: var(--animate-leaf-1);
}


/*=============== producto ===============*/
.producto {
  padding: 4rem 0;
  position: relative;
  will-change: transform;
}

.producto__container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;        
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.producto__data{
  text-align: left;
  max-width: 520px;
}

.producto__description{
  margin-bottom: 2rem;
}

.producto__img{
  max-width: 300px;
  justify-self: center;
  border-radius: 50% 10% 50% 10% /
  10% 50% 10% 50%;

}

.producto__leaf-1,
.producto__leaf-2{
  width: 50px;
  position: absolute;
}

.producto__leaf-1{
  top: 1.5rem;
  left: 1.5rem;
  animation: var(--animate-leaf-1);
}

.producto__leaf-2{
  top: 18rem;
  right: 0;
  animation: var(--animate-leaf-2);
}

/*=============== FOOTER ===============*/
.footer {
  position: relative;
  overflow: hidden;
  margin-bottom: -100px;
}

.footer__bg {
  display: none;
}

.footer {
  margin-top: 0;
  margin-bottom: -50px;
}

.footer__container {
  position: relative;
  padding: 0.5rem 1rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__brand {
  margin-bottom: 0.5rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.footer__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.footer__logo span {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.footer__social-container {
  margin-bottom: 1rem;
}

.footer__social-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background: #e1062c;
  border-color: #e1062c;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(225, 6, 44, 0.4);
}

.footer__copy {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 576px) {
  .footer__container {
    padding: 0.5rem 1rem;
  }
  
  .footer__logo span {
    font-size: 1.25rem;
  }
  
  .footer__logo-img {
    width: 40px;
    height: 40px;
  }
  
  .footer__social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/*=========TOGGLE BUTTON=================*/



/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}



/*=============== Logo  ====================*/


/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
background-color: #e1062c;
  display: inline-flex;
  padding: .45rem;
  border-radius: 100%;
  font-size: 1.5rem;
  color: #f5f6f7;
  z-index: var(--z-tooltip);
  transition: bottom .3s, transform .3s;
}

.scrollup:hover{
  transform: translateY(-.25rem);
  color: #b7bdc6;
  background-color: #8e091f;
  box-shadow: 0 8px 32px hsla(0, 81%, 31%, 0.847);
  text-decoration: none;
  transition: background .4s, box-shadow .4s;
}

/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 576px){
  .home__village{
    width: 360px;
  }
  .home__pine{
    width: 530px;
  }

  .about__container,
  .producto__container{
    grid-template-columns: .6fr;
    justify-content: center;
  }
}

@media screen and (min-width: 767px){
  .nav__toggle,
  .nav__close,
  .nav__img-1,
  .nav__img-2{
    display: none;
  }

  .nav__list{
    flex-direction: row;
    column-gap: 4rem;
  }

  .home{
    height: 800px;
  }
  .home__village{
    width: 460px;
  }
  .home__pine{
    width: 600px;
    bottom: 7rem;
  }
  .home__moon{
    width: 450PX;
    bottom: 12rem;
  }
  .home__trineo{
    width: 350px;
    bottom: 20rem;
  }

  .problematicas__container{
    grid-template-columns: repeat(2, 200px);
  }
}

/* For large devices */
@media screen and (min-width: 1024px ) {
  .section{
    padding-block: 7rem 1rem;
  }
  .producto {
    padding-block: 4rem 0.5rem;
  }
  .section__title{
    color: #cccccc;
  }

  .home__title{
    font-size: 3.5rem;
  }
  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }

  .about__container{
    grid-template-columns: 700px 535px;
    align-items: center;
    column-gap: 1rem;
  }

  .about__data,
  .about__data .section__title{
    text-align: justify;
    color: #cccccc;
  }

  .about__img{
    width: 390px;
    order: -1;
  }
  .about__leaf-1{
    top: 0;
    left: 0;
  }
  .about__leaf-2{
    right: 10rem;
    bottom: 3.5rem;
  }

  .problematicas__container{
    grid-template-columns: repeat(3, 350px);
    column-gap: 3rem;
    padding-top: 3rem;
  }
  .problematicas__img{
    width: 300px;
    margin-bottom: 1rem;
  }

  .problematicas__img-2{
    margin-bottom: 7px;
  }

  .problematicas__img-3{
    margin-bottom: 6px;
  }

  .problematicas__description{
    font-size: var(--normal-font-size);
    text-align: justify;
    color: #819171;
  }
  .problematicas__leaf-1{
    left: -100;
    top: .1;
  }
  .problematicas__leaf-2{
    top: -1rem;
    right: -6rem;
  }
  .problematicas__leaf-3{
    left: 28rem;
    bottom: -4rem;
  }
  .problematicas__title{
    color: #cccccc;
  }

  .producto__container{
    grid-template-columns: 500px 500px;
    align-items: center;
    column-gap: 5;
  }
  .producto__data,
  .producto__data .section__title{
    text-align: justify;
    color: #cccccc
  }
  .producto__img{
    width: 600px;
  }
  .producto__leaf-1{
    top: 4.5rem;
    left: 18rem;
  }
  .producto__leaf-2{
    right: 2rem;
  }

  .footer__container{
    padding: 2rem 3rem;
  }
  .footer__social{
    column-gap: 2rem;
  }
  .footer__social-link{
    font-size: 1.5rem;
  }
  .footer__leaf-1{
    top: 8.5rem;
    left: 10rem;
  }
  .footer__leaf-2{
    top: 8.5rem;
    right: 4rem;
  }
  .footer__copy{
    margin-top: 0.5rem;
  }
  .scrollup{
    right: 3rem;
  }
}

@media screen and (min-width: 1064px){
  .container{
    margin-inline: auto;
  }
}

@media screen and (min-width: 1200px){
  .home{
    height: 980px;
  }
  .home__title{
    font-size: 3.5rem;
  }
  .home__mountain-1,
  .home__mountain-2,
  .home__mountain-3,
  .home__leaf{
    width: 100%;
  }
  .home__village{
    width: 750px;
    bottom: 4rem;
  }
  .home__pine{
    width: 720px;
    bottom: 12.5rem;
  }
  .home__mountain-1,
  .home__mountain-2{
    bottom: -.5rem;
  }
  .home__moon{
    width: 600px;
    bottom: 14rem;
  }
  .home__trineo{
    width: 300px;
    bottom: 28rem;
  }
}
/* For 2K+ resolutions */
@media screen and (min-width: 1700px) {
  .home{
    max-width: 1280px;
    height: 990px;
    margin-inline: auto;
  }
}





/*


/*********************************
5. Home
*********************************/

.home_slider_container{
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

/* TRACK */
.slider-track{
  display: flex;
  height: 100%;
}

/* SLIDE */
.item-slide{
  min-width: 100%;
  height: 100%;
  position: relative;
}

/* IMAGEN */
.item-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.7);
}

/* OVERLAY SUAVE */
.item-slide::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0.616),
    rgba(15, 23, 42, 0.5),
    rgba(15, 23, 42, 0.537)
  );
}

/* CONTENIDO */
.slide-content{
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: white;
  max-width: 520px;
  padding: 35px 40px;
  border-radius: 18px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.699);
}

.slide-content h1{
  font-size: 52px;
  font-weight: 600;
  margin-bottom: 10px;
}

.slide-content p{
  font-size: 18px;
  opacity: .85;
}

/* ANIMACIÓN DE ENTRADA */
.item-slide{
  animation: slideFade 1s ease;
}

@keyframes slideFade{
  from{
    opacity: 0;
    transform: scale(1.05);
  }
  to{
    opacity: 1;
    transform: scale(1);
  }
}
/*Flip Text*/
/* ====== Layout del hero ====== */
.hero{
  min-height: auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-content: center;
  position: relative;
  will-change: transform;
  text-align: center;
  margin-left: -120px;
}


.slogan{
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.1;
  color: #e5e5e5;
  display: flex;
  align-items: center;
  gap: 14px;
   margin: 0 !important;
}

/* ====== Rotador moderno ====== */
.word-rotator{
  position: relative;
  height: 1.2em;
  display: inline-block;
}

.word{
  position: absolute;
  left: 0;
  top: 0;

  padding: 6px 16px;
  border-radius: 10px;
  font-weight: 700;
  color: white;

  opacity: 0;
  transform: translateY(12px) scale(0.96);
  filter: blur(6px);

  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(.2,.8,.2,1),
    filter 0.6s ease;
}

/* palabra visible */
.word.active{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* colores estilo producto */
.word:nth-child(1){ background:#8f121d; }
.word:nth-child(2){ background:#624020; }
.word:nth-child(3){ background:#10294b; }

/* ====== Entrada al viewport ====== */
.reveal{
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

/* ====== Parallax base ====== */
.parallax{
  will-change: transform;
}
/* ====== Layout ====== */
.countdown-section{
  display: flex;
  justify-content: center;
}
.countdown-card{
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.02)
  );

  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);

  text-align: center;
  opacity: 0;
  transform: translateY(70px) scale(0.96);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(.2,.8,.2,1);
  will-change: transform, opacity;
}
.countdown-card.visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ====== Textos ====== */
.countdown-title{
  margin: 0 0 6px 0;
  font-size: 2rem;
  color: #e8e8e8;
}

.countdown-sub{
  margin: 0 0 26px 0;
  color: #9aa0a6;
}

/* ====== Grid de tiempo ====== */
.countdown-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.time-box{
  padding: 18px 10px;
  border-radius: 12px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  transition: 0.3s;
}

.time-box:hover{
  transform: translateY(-4px);
  border-color: rgba(230,57,70,0.6);
}

.time-value{
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
}

.time-label{
  font-size: 0.8rem;
  color: #9aa0a6;
}

/* ====== Estado final ====== */
.countdown-end{
  margin-top: 22px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e63946; /* rojo de marca */
}

.hidden{ display: none; }

/* ====== Responsive ====== */

/* Tablet */
@media (max-width: 992px) and (min-width: 769px) {
  .countdown-card {
    max-width: 380px;
    padding: 24px 20px;
  }
  
  .countdown-title {
    font-size: 1.6rem;
  }
  
  .countdown-grid {
    gap: 10px;
  }
  
  .time-box {
    padding: 14px 8px;
  }
  
  .time-value {
    font-size: 1.8rem;
  }
  
  .time-label {
    font-size: 0.7rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Producto section - stacked layout */
  .producto__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .producto__data {
    text-align: center;
    max-width: 100%;
    order: 2;
  }
  
  .producto__img {
    order: 1;
    max-width: 200px;
    margin: 0 auto;
  }
  
  /* Countdown section - below producto */
  .countdown-section {
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 3;
  }
  
  .countdown-card {
    max-width: 100%;
    padding: 20px 16px;
    margin: 0 12px;
    text-align: center;
  }
  
  .countdown-title {
    font-size: 1.4rem;
  }
  
  .countdown-sub {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
  }
  
  .time-box {
    padding: 12px 8px;
    width: 100%;
    max-width: 140px;
  }
  
  .time-value {
    font-size: 1.6rem;
  }
  
  .time-label {
    font-size: 0.65rem;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .countdown-card {
    padding: 16px 12px;
  }
  
  .countdown-title {
    font-size: 1.2rem;
  }
  
  .countdown-grid {
    gap: 8px;
  }
  
  .time-box {
    padding: 10px 6px;
    max-width: 120px;
  }
  
  .time-value {
    font-size: 1.4rem;
  }
  
  .time-label {
    font-size: 0.6rem;
  }
  
  .producto__container {
    gap: 1.5rem;
  }
  
  .producto__img {
    max-width: 160px;
  }
}
#visor-3d {
  width: 100%;
  height: 100px; /* o 100vh si es hero */
}

/*=============== iPhone & Mobile Responsive ===============*/

/* iPhone 14, 13, 12, 11 - Landscape */
@media screen and (max-width: 844px) and (max-height: 390px) {
  .home_slider_container {
    height: 60vh;
    min-height: 300px;
  }
  
  .slider-track {
    height: 100%;
  }
  
  .slide-content {
    padding: 20px;
    margin: 0 10px;
  }
  
  .slide-content h1 {
    font-size: 1.5rem;
  }
  
  .slide-content p {
    font-size: 0.85rem;
  }
  
  .slide-btn {
    padding: 10px 20px;
    font-size: 0.75rem;
  }
}

/* iPhone SE, iPhone Mini */
@media screen and (max-width: 375px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 0 12px;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .section__title {
    font-size: 1.5rem;
  }
  
  /* Header */
  .header {
    height: 50px;
  }
  
  .nav__logo img {
    width: 35px;
    height: 35px;
  }
  
  .nav__logo p {
    font-size: 14px;
  }
  
  .nav__toggle {
    font-size: 20px;
  }
  
  /* Slider */
  .home_slider_container {
    height: 70vh;
    min-height: 350px;
  }
  
  .slide-content {
    padding: 15px;
    max-width: 90%;
  }
  
  .slide-tag {
    font-size: 0.6rem;
    padding: 5px 12px;
  }
  
  .slide-content h1 {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
  
  .slide-content p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .slide-btn {
    padding: 8px 18px;
    font-size: 0.7rem;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  
  /* About */
  .about__container.grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about__data {
    padding: 1.5rem;
  }
  
  .about__data .section__title {
    font-size: 1.4rem;
  }
  
  .about__description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .about__img-wrapper {
    padding: 0 0.5rem;
  }
  
  .about__img-parallax {
    max-width: 100%;
  }
  
  .button {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
  
  /* Estadisticas */
  .estadisticas__container {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 10px;
  }
  
  .estadisticas__card {
    padding: 1rem;
  }
  
  .estadisticas__icon {
    font-size: 1.8rem;
  }
  
  .estadisticas__number {
    font-size: 1.8rem;
  }
  
  .estadisticas__label {
    font-size: 0.65rem;
  }
  
  .estadisticas__title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  /* Footer */
  .footer__container {
    padding: 1rem;
  }
  
  .footer__logo-img {
    width: 35px;
    height: 35px;
  }
  
  .footer__logo span {
    font-size: 1rem;
  }
  
  .footer__tagline {
    font-size: 0.75rem;
  }
  
  .footer__social-link {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .footer__copy {
    font-size: 0.7rem;
  }
}

/* iPhone Plus (Max) */
@media screen and (min-width: 414px) and (max-width: 430px) {
  .slide-content h1 {
    font-size: 1.6rem;
  }
  
  .estadisticas__number {
    font-size: 2rem;
  }
  
  .about__img-wrapper {
    padding: 0 1rem;
  }
}

/* iPhone 12/13/14 Pro */
@media screen and (min-width: 390px) and (max-width: 393px) {
  .home_slider_container {
    height: 75vh;
  }
  
  .slide-content h1 {
    font-size: 1.4rem;
  }
}

/* iPad Mini & Small Tablets */
@media screen and (min-width: 600px) and (max-width: 768px) {
  .estadisticas__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about__container.grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .slide-content h1 {
    font-size: 2rem;
  }
}

/* Fix notch iPhone */
@supports (padding-top: env(safe-area-inset-top)) {
  .header {
    padding-top: env(safe-area-inset-top);
  }
  
  .nav {
    padding-top: env(safe-area-inset-top);
  }
  
  @media screen and (max-width: 375px) {
    .header {
      height: calc(50px + env(safe-area-inset-top));
    }
  }
}

/* Landscape mobile */
@media screen and (max-width: 812px) and (orientation: landscape) {
  .home_slider_container {
    height: 100vh;
    min-height: auto;
  }
  
  .slide-content {
    max-width: 60%;
    padding: 10px;
  }
  
  .slide-content h1 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .slide-content p {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .slide-btn {
    padding: 6px 14px;
    font-size: 0.65rem;
  }
  
  .section {
    padding: 1.5rem 1rem;
  }
  
  .estadisticas__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .estadisticas__card {
    flex: 0 0 45%;
    max-width: 45%;
  }
}