@font-face {
  font-family: 'Intro Black';
  src: url('../fonts/Intro-Black-Alt.otf') format('opentype');
}

@font-face {
  font-family: 'Intro Black Alt';
  src: url('../fonts/Intro-Black-Alt.otf') format('opentype');
}

@font-face {
  font-family: 'Intro Bold';
  src: url('../fonts/Intro-Bold.otf') format('opentype');
}

@font-face {
  font-family: 'Intro Book';
  src: url('../fonts/Intro-Book.otf') format('opentype');
}

@font-face {
  font-family: 'Intro Regular';
  src: url('../fonts/Intro-Regular.otf') format('opentype');
}

:root {
  /* --primary-color: #c10b24; */
  --primary-color: #c10b24;
  --secondary-color: #4d2d1e;
  --background-color: #f4f4f4;
  --text-color: #fff;
}

body {
  margin: 0;
  font-family: 'Intro Regular', sans-serif;
  color: #333;
}


/* ***************************************************************************************************************** */
/* ***************************************** HERO SECTION - SECTION ************************************************ */
/* ***************************************************************************************************************** */


/* 1) Top bar */
.top-bar {
  background: #f4a500;
  color: var(--secondary-color);
  text-align: center;
  padding: .5rem;
  font-size: 1rem;
}

/* 2) Navegación */
.main-nav {
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  gap: 2rem;
}

.main-nav ul li a {
  font-family: 'Intro Black', sans-serif;
}

.nav-links,
.social-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a{
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;          
  display: inline-block;
  padding: 0;      
}

.nav-links a::after{
  content: '';
  position: absolute;
  left: 0;                    
  bottom: -2px;                
  width: 100%;
  height: 2px;                 
  background: currentColor;    
  transform: scaleX(0);        
  transform-origin: center;   
  transition: transform .3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after{
  transform: scaleX(1);        
}

.social-links a img {
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
  width: 28px; 
  height: 28px;
}

.social-links a:hover img {
  transform: scale(1.15) translateY(-4px);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}


/* 3) Hero */
.hero {
  position: relative;
  background: url('../images/fondos-web-canada/pareja.png') center/cover no-repeat;
  height: 135vh;
  background-color: var(--primary-color);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
}

.hero-text {
  position: absolute;
  top: 20%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 55%;
  color: #fff;
}

.hero-text .flavor {
  font-family: 'Intro Regular', sans-serif;
  font-size: 3.47vw;
}

.hero-text h1 {
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 300;
}

.hero-text strong {
  font-family: 'Intro Black', sans-serif;
  font-weight: 900;
  font-size: 4.5vw;
}

.hero-text span {
  font-family: 'Intro Bold', sans-serif;
  font-size: 4.5vw;
}

.hero-text {
  max-width: 80vw;
}

.hero-floating {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 20px;
  z-index: 2;
  
}


.hero-coffee {
  max-width: 18vw;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 2.3vw;
  font-weight: bold;
  text-transform: uppercase;
  padding: .8rem 1.5rem;
  border-radius: 4px;
  font-family: 'Intro Black', sans-serif;
  
}

.hero-cta .cta-icon {
  width: 32px;
  height: 32px;
  padding-top: 5px;
}


/* 4) menu hamburguesa (movil) */
.frame {
  display: none;
  /* oculto en desktop */
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-icon {
  width: 80px;
  height: 52px;
  /* 3*8px + 2*14px */
  cursor: pointer;
  z-index: 50;
}

.menu-icon .line-1,
.menu-icon .line-2,
.menu-icon .line-3 {
  height: 8px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background-color .2s ease-in-out;
}

.menu-icon .line-2 {
  margin: 14px 0;
  /* espacio entre líneas */
}

.menu-icon .line-1 {
  animation: animate-line-1-rev .7s ease-in-out;
}

.menu-icon .line-2 {
  animation: animate-line-2-rev .7s ease-in-out;
}

.menu-icon .line-3 {
  animation: animate-line-3-rev .7s ease-in-out;
}

.menu-icon:hover .line-1,
.menu-icon:hover .line-2,
.menu-icon:hover .line-3 {
  background-color: #fff;
}

.menu-icon.active .line-1,
.menu-icon.active .line-2,
.menu-icon.active .line-3 {
  background-color: #fff;
}

.menu-icon.active .line-1 {
  animation: animate-line-1 .7s cubic-bezier(0.30, 1, 0.70, 1) forwards;
}

.menu-icon.active .line-2 {
  animation: animate-line-2 .7s cubic-bezier(0.30, 1, 0.70, 1) forwards;
}

.menu-icon.active .line-3 {
  animation: animate-line-3 .7s cubic-bezier(0.30, 1, 0.70, 1) forwards;
}

.no-animation {
  animation: none !important;
  -webkit-animation: none !important;
}

/* 2) Animaciones: offsetY = 4px + 8px = 12px */
@keyframes animate-line-1 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0);
  }

  50% {
    transform: translate3d(0, 12px, 0) rotate(0);
  }

  100% {
    transform: translate3d(0, 12px, 0) rotate(45deg);
  }
}

@keyframes animate-line-2 {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes animate-line-3 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(0);
  }

  100% {
    transform: translate3d(0, -12px, 0) rotate(135deg);
  }
}

/* Reverse para cerrar */
@keyframes animate-line-1-rev {
  0% {
    transform: translate3d(0, 12px, 0) rotate(45deg);
  }

  50% {
    transform: translate3d(0, 12px, 0) rotate(0);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
}

@keyframes animate-line-2-rev {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes animate-line-3-rev {
  0% {
    transform: translate3d(0, -12px, 0) rotate(135deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(0);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
}

/* Media query (móvil) */
@media (max-width: 768px) {

  /* ocultar menú desktop */
  .main-nav {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: rgba(193, 11, 36, 1);

    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease-out;
    flex-direction: column;
    padding: 0 1rem;
    z-index: 1000;
    margin-top: 2rem;
  }

  /* Cuando está activa, se expande */
  .main-nav.active {
    max-height: 500px;
   
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
  }

  /* mostrar icono */
  .frame {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 60px;
    height: 60px;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
  }

  /*  Ajustes generales del icono */
  .frame {
    width: 40px;
    height: 40px;
    top: 3.70rem;
    right: 0.75rem;
  }

  .menu-icon {
    width: 40px;
    height: 28px;
    cursor: pointer;
    z-index: 50;
  }

  /* Lineas de 4px */
  .menu-icon .line-1,
  .menu-icon .line-2,
  .menu-icon .line-3 {
    height: 4px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color .2s ease-in-out;
  }

  /* Espacio entre líneas */
  .menu-icon .line-2 {
    margin: 8px 0;
  }



  /* fondo hero móvil */
  .hero {
    background: url('../images/fondos-web-canada/pareja-movil.jpg') center/contain no-repeat;
    height: 40vh;
    background-color: var(--primary-color);
  }

  /* ajustes hero-text */
  .hero-text {
    max-width: 90%;
    top: 8%;
    left: 5%;
    transform: translateY(0);
  }

  .hero-coffee {
    max-width: 18vw;
  }

  .hero-cta {
    font-size: 1rem;
    padding: .6rem 1rem;
  }

  .hero-text {
    margin-top: 3.8rem;
  }

  .hero-text h1 {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: .5rem;
  }

  .hero-text .flavor {
    margin-bottom: 0;
  }

  .hero-text strong {
    font-family: 'Intro Black', sans-serif;
    font-weight: 900;
    font-size: 20px;
  }

  .hero-text .flavor {
  font-family: 'Intro Regular', sans-serif;
  font-size: 15px;
}

  .hero-text span {
    font-family: 'Intro Bold', sans-serif;
    font-size: 20px;
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
    font-family: 'Intro Black', sans-serif;
    min-width: 175px;
    margin-top: 10rem;
  }

  .hero-cta .cta-icon {
    width: 40px;
    height: 40px;
    margin-top: 40px;
    padding-left: 0;
    margin-left: 0;
  }

  .hero-cta {
    gap: 0;
  }

  .hero-floating {
    bottom: -1vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
	
  }

  .hero-floating img {
    width: 19vw;
    margin-top: 11vh;
  }

  .hero-floating .hero-cta {
    font-size: 1.2rem;
    padding: .6rem 1.2rem;
  }

  /* fuerza los iconos en fila y sin margen extra */
  .main-nav .social-links {
    flex-direction: row;
    /* fila */
    justify-content: center;
    /* centrado horizontal */
    margin: 0;
    /* quita el margin:1rem 0 que hereda */
    padding-bottom: 85px;
  }

  .main-nav .social-links li {
    margin: 0 .25rem;
  }


}


@media (max-width: 414px) {
  .hero-floating {
    bottom: -1vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-floating img {
    max-width: 19vw;
    margin-top: 5vh;
  }

}


@media (max-width: 415px) {
  .hero-floating {
    bottom: -1vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero-floating img {
    max-width: 18vw;
    margin-bottom: -6%;
  }
  

}

@media (max-width: 400px) {
  .hero-text {
    top: 10%;
    left: 4%;
    max-width: 95%;

  }
  .hero-text h1 {
    font-size: 1rem;
    
  }
  .hero-floating {
    margin-bottom: 2vh;
  }

  .hero-floating  img {
    max-width: 22vw;
    margin-top: 7vh;

  }
}

@media (max-width: 380px) {
  .hero-text {
    top: 7%;
    left: 2%;
    max-width: 95%;
    margin-top: 55px;

  }
  .hero-text h1 {
    font-size: 1rem;
    
  }
  .hero-floating {
    margin-bottom: .6vh;
  }
  .hero-floating img {
    max-width: 19vw;
    margin-bottom: -2vh;
  }

  .hero-cta {
    margin-bottom: 1vh;
  }
}

@media (max-width: 360px) {
  
  .hero-coffee {
    max-width: 18vw;
    margin-top: 85px;
  }
}

/* ********************************************** Animaciones HERO SECTION ****************************************************************** */


.hero-text {
  opacity: 0;
  transform: translateY(-50%);
}

.hero-coffee,
.hero-cta {
  opacity: 0;
  transform: translateY(20px);
}


/* ********************************************** MAP ****************************************************** */

#store-locator,
.map-container {
  position: relative;
}

#map {
  height: 600px;
  width: 100%;
  border: 2px solid #ccc;
}

#pac-input {
  position: relative;
  display: block;
  margin: 10px auto;
  width: 100%;
  max-width: 600px;
  background-color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 12px 20px;
  border: 5px solid var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  outline: none;
  z-index: 5;
  transform: none;
  margin-left: 2rem;
}

/* =====================================================
   MOBILE OVERRIDE (up to 600px)
===================================================== */
@media (max-width: 600px) {
  #pac-input {
    position: absolute;
    /* remove from flow, position relative to .map-container */
    top: 8px;
    /* adjust vertical offset as needed */
    left: 50%;
    /* center point */
    transform: translateX(-50%);
    width: 70%;
    max-width: none;
    margin: .6rem 9.5rem;
    font-size: 14px;
    padding: 8px 12px;
    border-width: 2px;

  }
}


/* ***************************************************************************************************************** */
/* ***************************************** OUR CLASSIC BLEND - SECTION ******************************************* */
/* ***************************************************************************************************************** */


/* ========== GSAP inicial states ========== */
.blend-header,
.blend-products,
.blend-features {
  opacity: 0;
  transform: translateY(30px);
}

/* ==========  Classic Blend section ========== */
.classic-blend-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  font-family: 'Montserrat', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.blend-bg {
  position: absolute;
  inset: 0;
  background: url('../images/fondos-web-canada/fondo-planta-de-cafe.jpg') center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  z-index: 1;
}


.blend-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* HEADER */
.blend-header {
  background: var(--primary-color);
  color: #fff;
  border-radius: 22px;
  padding: 20px 56px 14px;
  text-align: center;
  width: 95%;
  margin: 42px 0 20px;
  box-shadow: 0 6px 32px rgba(80, 25, 25, 0.08);
}

.blend-header h2 {
  font-size: 2.3rem;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: .03em;
  font-family: 'Intro Black', sans-serif;
}

.blend-header p {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 500;
  opacity: .98;
  line-height: 1.35;
  font-family: 'Intro Book', sans-serif;
}

/* PRODUCTOS */
.blend-products {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 7em;
  margin: 0 auto -140px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.hide-on-desktop {
  display: none;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product img {
  width: 172px;
  margin-bottom: 8px;
  padding: .6em .6em 1em .6em;
}

.product-label {
  color: #fff;
  font-weight: bold;
  font-size: 1.18rem;
  padding: 6px 34px;
  margin-top: -28px;
  font-family: 'Intro Black', sans-serif;
}

.product-type {
  color: #fff;
  font-size: 1.01rem;
  letter-spacing: .04em;
  opacity: .86;
  margin-bottom: 6px;
  font-family: 'Intro Book', sans-serif;
}

/* FEATURES */
.blend-features {
  display: flex;
  justify-content: space-between;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 1rem;
  padding: 10rem 3rem 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  margin: 0 auto 3rem;

}

.feature-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32%;
  min-width: 250px;
  text-align: center;
  border-right: 2px solid #fff;
  padding: 0 1rem;
}

.feature-group:last-child {
  border-right: none;
}

.feature-title {
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: .03em;
  font-family: 'Intro Black', sans-serif;
}

.feature-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  color: #fff;
  font-family: 'Intro Book', sans-serif;
}

.icon-item img {
  height: 50px;
  margin-bottom: 0.4rem;
}

.flavour-rotate {
  display: block;
  width: 50px;         
  transition: transform .2s ease;
}

.icon-item:hover .flavour-rotate {
  transform: rotate(-18deg);    
}

.icon-item:hover .flavour-rotate {
  transform: rotate(-18deg) scale(1.05);
}

/* Responsividad */
@media (max-width: 768px) {
  .blend-header {
    width: 100%;
    margin: 1rem 0;
    padding: 1rem;
  }

  .blend-header h2 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
  }

  .blend-header p {
    font-size: .9rem;
    line-height: 1.4;
  }

  .blend-products {
    gap: 1rem;
    margin: 0 auto -90px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .blend-products .product img {
    width: 130px;
  }

  .hide-on-mobile {
    display: none;
  }

  .blend-features {
    flex-direction: column;
    padding: 5rem 1rem 0;
    margin-top: 1rem;
    padding-bottom: 2rem;
  }

  .feature-group {
    width: 100%;
    padding: 1rem 0;
    border-right: none;
    border-bottom: 2px solid #fff;
  }

  .feature-group:last-child {
    border-bottom: none;
  }

  .feature-icons.separated-icons {
    gap: 1rem;
  }

  .icon-item img {
    height: 32px;
  }
  
  .flavour-rotate{
    height: 32px;
    width: 32px;
  }

  .icon-item span {
    font-size: .8rem;
  }

  .blend-products .product {
    flex: 0 0 45%;
  }

  .blend-products .product-label {
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 1rem;
    margin-bottom: -10px;
  }

  .blend-products .product-type {
    font-size: .9rem;
  }

  .blend-bg {
  position: absolute;
  inset: 0;
  background: url('../images/fondos-web-canada/fondo-planta-de-cafe.jpg') center center no-repeat;
  background-size: cover;
  /* background-attachment: fixed; */
  z-index: 1;
}
}


/* ***************************************************************************************************************** */
/* ***************************************** PRODUCT PORTFOLIO - SECTION ******************************************* */
/* ***************************************************************************************************************** */
/* ——— GSAP initial states ——— */
.product-portfolio h2,
.product-portfolio .products {
  opacity: 0;
  transform: translateY(30px);
}

.product-portfolio {
  text-align: center;
}

.product-portfolio h2 {
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-family: 'Intro Black', sans-serif;
  font-size: 2.5rem;
}

.product-portfolio .products {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8rem;
  margin: 20px auto;
  max-width: 1000px;
}

.product img {
  width: 100%;
  max-width: 225px;
  height: auto;
  margin-bottom: 10px;
}

.product-portfolio p strong {
  font-family: 'Intro Black', sans-serif;
  margin: 5px 0;
  font-size: 1.2rem;
}

.product-portfolio p span {
  font-family: 'Intro Regular', sans-serif;
  margin: 5px 0;
  font-size: 1.4rem;

}


/* hover */
.product {
  perspective: 1000px;
  text-align: center;
  transition: transform 0.3s ease;

}

.product:hover {
  transform: translateY(-10px) scale(1.03);
}

.product img {
  transition: transform 2s ease;
  transform-style: preserve-3d;
}

.product:hover img {
  transform: rotateY(360deg);
}


@media (max-width: 768px) {
  .product-portfolio h2 {
    font-size: 1.8rem;
  }

  .product-portfolio .products {
    gap: 4rem;
    margin: 20px auto;
    max-width: 90%;
  }

  .product img {
    max-width: 150px;
  }

}

/* ===================================================== HOW TO GRIND ===================================================== */

/* ——— GSAP initial states to desktop ——— */
.grind-guide h2,
.grind-guide .grinds,
.grind-guide .timeline {
  opacity: 0;
  transform: translateY(30px);
}

.grind-guide {
  text-align: center;
}

.grind-guide h2 {
  font-family: 'Intro Black', sans-serif;
  font-size: 3rem;
  color: var(--primary-color);
  margin-top: 80px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.grind-guide .grinds {
  display: flex;
  justify-content: center;
  margin-left: 33px;
  flex-wrap: wrap;
  gap: 230px;
}


.grinds p {
  font-size: 2rem;
}

.grind img {
  width: 100%;
  max-width: 225px;
  height: auto;
  margin-bottom: 10px;
}
.grind .fine {
  padding-left: -2.5vw;
}

.fine-img {
  position: relative;
  left: -6px;
}

.medium-img {
  position: relative;
  left: 3px;
}

.grind .coarse {
  padding-right: 2.5vw;
}

.coarse-img {
  position: relative;
  left: -17px;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.grind:hover .grind-spin {
  animation: spin 10s linear infinite;
}

.mobile-only {
  display: none;
}

.preparation-methods {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;

}

.preparation-methods img {
  width: 100%;
  max-width: 1000px;
  height: auto;
}


.methods-grid-alternative {
  display: grid;
  grid-template-columns: 18% 18% 18% 18% 18%;
  grid-column-gap: 2.5%;
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  padding-left: 1%;

  
}

.methods-grid-alternative p {
  font-size: 30px;
  text-align: center;
  margin: 0;

}



@media (max-width: 768px) {

  .grind-guide h2 {
    display: none;
    
  }

  .grind-guide:not(.mobile-only) .grinds,
  .grind-guide:not(.mobile-only) .brewing-line {
    display: none;
  }
  
  .preparation-methods, .methods-grid-alternative {
    display: none;
  }

  .mobile-only {
    display: block;
    padding: 20px 10px;
    text-align: center;
  }

  .mobile-only h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Intro Black', sans-serif;
	text-transform: uppercase;
  }
  
}





/* =========================================================== CARRUSEL ============================================================ */

.mobile-carousel {
  display: none;
  position: relative;
  z-index: 1;
}

.swiper-container {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  transition-property: transform;
}

.swiper-slide {
  flex-shrink: 0;
  width: 80%;
  box-sizing: border-box;
  text-align: center;
  padding: 20px;
}

.swiper-slide img {
  width: 100%;
  max-width: 225px;
  height: auto;
  margin: 0 auto 30px;
}

.swiper-slide p {
  margin: 5px 0;
  font-size: 1.2rem;
}

.swiper-button-prev,
.swiper-button-next {
  background: none;
  /* quita el fondo rojo */
  width: 40px;
  /* ajusta según el tamaño de tu icono */
  height: 40px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}



.swiper-button-prev img,
.swiper-button-next img {
  display: block;
  width: 100%;
  height: auto;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
  /* elimina las flechas azules por defecto */
  display: none;
}

.swiper-button-prev span,
.swiper-button-next span {
  color: white;
  font-size: 24px;
  line-height: 1;
}

/* Carrusel - imagen de producto más pequeña */
.swiper-slide img {
  width: 100%;
  max-width: 110px;
  margin: 0 auto 10px;
}


/* Solo en pantallas móviles */
@media (max-width: 768px) {
  .product-portfolio .products {
    display: none;
  }

  .mobile-carousel {
    display: block;
  }

  /* Más específico: */
  .mobile-carousel .swiper-button-prev {
    left: 30px !important;
  }

  .mobile-carousel .swiper-button-next {
    right: 30px !important;
  }
}
/* ***************************************************************************************************************** */
/* ***************************************** HISTORY SECCION ******************************************************** */
/* ***************************************************************************************************************** */

.history-section .content h2,
.history-section .content p,
.history-section .logos {
  opacity: 0;
  transform: translateY(30px);
}



.history-section {
  width: 100vw;
  background-image: url('../images/fondos-web-canada/fondo-historia.jpg');
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  width: 100%;
  min-height: 180vh;
  overflow: hidden;
  text-align: justify;
  display: flex;
  justify-content: center;
  align-items: center;
}


.content {
  position: relative;
  z-index: 1;
  max-width: 70vw;
  padding: 90px 20px;
  color: white;
  text-align: center;
  margin-top: 550px;
}

.content h2 {
  font-size: 2.5vw;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-family: 'Intro Black', sans-serif;
}

.content p {
  font-size: 1.8vw;
  line-height: 1.6;
  margin-bottom: 1vh;
  text-align: justify;
  font-family: 'Intro Book', sans-serif;
}

.content p strong {
  font-family: 'Intro Bold', sans-serif;
}




/* logos e icono */

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.origin {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1rem;
}

.origin .roasting {
  font-size: 1.5vw;
}

.logo-induban {
  height: 10vh;
}

.icon-rd {
  height: 13vh;
}

.anniversary {
  height: 13vh;
}


@media (max-width: 768px) {
  .history-section {
    flex-direction: column;
    padding: 40px 15px;
    height: auto;
    max-height: none;
    text-align: left;

  }

  .content {
    max-width: 100%;
    padding: 40px 15px;
    text-align: left;
  }

  .content h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .content p {
    font-size: 1rem;
    justify-content: justify;
  }


  .logos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-top: 4rem;
  }

  .logo-induban {
    height: 5rem;
  }
  .icon-rd {
    height: 6rem;
  margin-top: 2rem;

  }

  .icon-rd {
    padding-left: 20px;
  }

  .origin {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.4rem;
  }
  
  .origin .roasting {
    font-size: 1rem;
    text-align: center;
    margin-top: 10px; 
  }
}
/* ***************************************************************************************************************** */
/* ***************************************** RECIPES - SECTION ******************************************************** */
/* ***************************************************************************************************************** */

.recipes-section {
  background-image: url('../images/fondos-web-canada/4-RECETAS/fondo-recetas.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 60px 20px 100px;
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}

.recipes-content {
  max-width: 600px;
  margin-right: 20vw;
  text-align: center;
}

.recipes-content h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: bold;
  font-family: 'Intro Black', sans-serif;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, 180px);
  gap: 3rem;
  justify-content: center;
}

.recipe-card {
  max-width: 180px;
  margin: 0 auto;
  text-align: center;
}

.recipe-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.recipe-card img:hover {
  transform: scale(1.05);
}

.recipe-card p {
  margin-top: 10px;
  font-size: 1.2rem;
  font-family: 'Intro Book', sans-serif;
}

/* --- SVG WAVE DIVIDER --- */
.wave-divider-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100px;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}

.wave-divider-bottom svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .recipes-section {
    background-image: url('../images/fondos-web-canada/4-RECETAS/fondo-recetas-mobile.png');
    background-attachment: scroll;
    background-position: center top;
  }

  .recipes-content {
    margin: 0 auto;
    max-width: 95%;
    text-align: center;
  }

  .recipes-content h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px 0;
    border-radius: 6px;
  }

  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .recipe-card p {
    font-size: 1rem;
    color: #fff;
    margin-top: 10px;
  }

  .recipe-card img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
}

/* ***************************************************************************************************************** */
/* ***************************************** SHOW RECIPES - SECTION ************************************************ */
/* ***************************************************************************************************************** */

dialog.recipe-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 32px);
  max-width: 1000px;
  height: 90vh;
  margin: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  padding: 12px;
}

dialog.recipe-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.close-modal {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;

}


.modal-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

html,
body {
  overflow-x: hidden;
}


@media (min-width: 768px) {



  .modal-inner {
    flex-direction: row;
  }

  .modal-left,
  .modal-right {
    flex: 1 1 50%;
    min-width: 0;
  }

  dialog.recipe-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    padding: 12px;
  }
}

.modal-left {
  padding: 24px;
  background: #fff;
}

.modal-right {
  background: #fff;
  margin-top: 13vh;
}

.video-container {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 16/9;
}

.video-iframe {
  width: 100%;
  height: 100%;
  border-radius: 15px;

}

.recipe-title {
  margin: 0;
  font-size: 2rem;
  color: var(--primary-color);
  font-family: 'Intro Black', sans-serif;
}

.serving-size {
  margin: 4px 0 16px;
  font-size: 0.9rem;
  color: #555;
}

.ingredients-list,
.steps-list {
  margin: 8px 0 16px;
  padding-left: 1.2rem;
  color: #555;
}

.steps-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-family: 'Intro Regular', sans-serif;
  color: #555;

}
/* ***************************************************************************************************************** */
/* ***************************************** CONTACT - SECTION ******************************************************** */
/* ***************************************************************************************************************** */
/* Estilos generales */
.contact-section {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;

}

.contact-container h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  font-family: 'Intro Black', sans-serif;
  font-size: 2.5rem;
}

.contact-form label {
  display: block;
  text-align: left;
  margin: 0 auto 15px;
  /* top=0, hor=auto, bottom=15px */
  font-size: 1.1rem;
  font-family: 'Intro Book', sans-serif;

}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: none;
  border-radius: 5px;
}


.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  max-width: 100%;
  width: 100%;
  display: block;
  font-size: 14px;
  background-color: #fff;
  /* fondo blanco */
  border: 1px solid #ccc;
  /* borde suave */
  color: #afacac;
}

.send-button {
  background-color: white;
  color: var(--primary-color);
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  margin: 20px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;

}

.send-button:hover {
  background-color: #f1f1f1;
}

/* Agrupación de checkboxes */
.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  text-align: left;
  margin-bottom: 20px;
}

.checkboxes legend {
  font-weight: bold;
  margin-bottom: 8px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
  .contact-section {
    padding: 40px 15px;
  }

  .contact-container {
    max-width: 100%;
    padding: 0 10px;
  }

  .contact-container h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .contact-form label {
    margin: 5px auto 15px;
    /* top=5px, hor=auto, bottom=15px */
    max-width: 90%;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    max-width: 100%;
    width: 100%;
    display: block;
    font-size: 14px;
    background-color: #fff;
    /* fondo blanco */
    border: 1px solid #ccc;
    /* borde suave */
    color: #000;
  }

  .send-button {
    width: fit-content;
    padding: 12px;
    font-size: 16px;
  }

  .checkboxes {
    font-size: 12px;
    gap: 8px;
  }
}

/* ***************************************************************************************************************** */
/* ***************************************** FOOTER - SECTION ******************************************************** */
/* ***************************************************************************************************************** */
.footer {
  background-color: #4e2b1b;
  /* Marrón chocolate */
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.grace-logo {
  /* max-width: 220px;
  height: auto;
  margin-bottom: 20px; */
  display: block;
  /* convierte el img en elemento de bloque */
  margin: 0 auto 20px;
  /* arriba=0, izquierda/derecha=auto, abajo=20px */
  max-width: 220px;
  height: auto;
}

.distributor {
  font-size: 18px;
  margin-bottom: 10px;
}

.footer p {
  margin: 0;
  font-family: 'Intro Book', sans-serif;
}

@media (max-width: 768px) {
  .footer {
    font-size: 13px;
    /* texto general del footer */
    padding: 40px 15px;
    /* opcional: ajustar padding si quieres */
  }

  .footer h2 {
    font-size: 15px;
    /* tamaño del título CONTACTS */
  }

  .footer .distributor {
    font-size: 14px;
    /* texto “Authorized distributor…” */
    font-family: 'Intro Book', sans-serif;

  }

  .footer .contact-info,
  .footer .copyright {
    font-size: 12px;
    /* emails y copyright */
  }

  .grace-logo {
    max-width: 150px;
    /* ajusta el logo para móviles */
    margin-bottom: 15px;
  }
}

/* ***************FECHA FIJA HACIA ARRIBA *************************  */

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  /* distancia desde abajo */
  right: 20px;
  /* distancia desde la derecha */
  display: block;
  width: 48px;
  /* ajusta según tu imagen */
  height: 48px;
  z-index: 1000;
  cursor: pointer;
  /* opacity: 0.7; */
  /* transition: opacity 0.3s; */
}

.scroll-to-top:hover {
  opacity: 1;
}

/* Si la imagen no es cuadrada, asegúrate de que no distorsione */
.scroll-to-top img {
  width: 100%;
  height: 100%;
  display: block;
}

/*fancy
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-box {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 10px #0003;
}
.modal-box button {
  margin-top: 1rem;
}*/


/* Asegurar que el modal esté oculto inicialmente */
#formModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    /* INICIALMENTE OCULTO */
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
}

/* Solo visible cuando tiene la clase 'show' */
#formModal.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.modal-box {
    background: linear-gradient(145deg, #ffffff, #f8f9fa) !important;
    border-radius: 20px !important;
    padding: 40px 30px !important;
    max-width: 500px !important;
    width: 90% !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(193, 11, 36, 0.1) !important;
    text-align: center !important;
    position: relative !important;
    transform: scale(0.7) translateY(-50px) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border: 2px solid #c10b24 !important;
}

#formModal.show .modal-box {
    transform: scale(1) translateY(0) !important;
}

.modal-box::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: linear-gradient(45deg, #c10b24, #ff6b6b, #c10b24) !important;
    border-radius: 22px !important;
    z-index: -1 !important;
    animation: borderGlow 3s ease-in-out infinite alternate !important;
}

@keyframes borderGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.modal-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 40px !important;
    background: linear-gradient(145deg, #c10b24, #ff4757) !important;
    color: white !important;
    box-shadow: 0 10px 20px rgba(193, 11, 36, 0.3) !important;
    animation: pulse 2s ease-in-out infinite !important;
}

.modal-icon.success::before {
    content: '✓' !important;
}

.modal-icon.error::before {
    content: '✗' !important;
}

.modal-icon.error {
    background: linear-gradient(145deg, #dc3545, #ff4757) !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.modal-message {
    font-size: 18px !important;
    color: #333 !important;
    margin: 20px 0 30px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

.modal-close-btn {
    background: linear-gradient(145deg, #c10b24, #ff4757) !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(193, 11, 36, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.modal-close-btn:hover {
    background: linear-gradient(145deg, #ff4757, #c10b24) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(193, 11, 36, 0.4) !important;
}

.modal-close-btn:active {
    transform: translateY(0) !important;
}

/* estilos para el boton de envio */
.send-button {
    position: relative !important;
    overflow: hidden !important;
    min-width: 150px !important;
    min-height: 50px !important;
    transition: all 0.3s ease !important;
}

.send-button.sending::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 20px !important;
    margin: -10px 0 0 -10px !important;
    border: 2px solid transparent !important;
    border-top: 2px solid white !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.send-button.sending .button-text {
    opacity: 0 !important;
}

.send-button:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.send-button.sending {
    background: #6c757d !important;
    cursor: not-allowed !important;
}

/* forzar que el modal este oculto al cargar */
.modal-overlay:not(.show) {
    display: none !important;
}

/**************************************************** SOLO CAPTCHA RESPONSIVE - AGREGAR AL FINAL DE styles.css */

/******************************************************************* Contenedor del reCAPTCHA */

/* SOLUCIÓN DEFINITIVA PARA CAPTCHA EN MÓVILES */

.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Si quieres sólo escalar el badge: */
@media (max-width: 480px) {
  .grecaptcha-badge {
    transform: scale(0.7);
    transform-origin: bottom right;
  }

  /* Y solamente estos selectores concretos para el popup de reto de imágenes */
  .rc-imageselect-popup,
  .rc-dialog {
    max-width: 95vw !important;
    max-height: 90vh !important;
    left: 2.5vw !important;
    top: 5vh !important;
    right: auto !important;
    bottom: auto !important;
    overflow: auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    z-index: 999999 !important;
  }
  .rc-imageselect-popup img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .rc-imageselect-popup button,
  .rc-dialog .button-holder button {
    min-width: 60px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    margin: 2px !important;
    border-radius: 3px !important;
    white-space: nowrap !important;
  }
}
