@import url('https://googleapis.com');
@import url('https://fonts.googleapis.com/css2?family=Sansita:ital,wght@0,400;0,700;0,800;0,900;1,400;1,700;1,800;1,900&display=swap');

html {
  scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /*---- Elimina el cuadro azul ----*/
    -webkit-tap-highlight-color: transparent;
  }

body {
    max-width: 100%;
    background: #ffffff;
    overflow-x: hidden;
  }

.navbar-set {
    background-color: #F9F2F2;
    max-width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 100px;
    position: relative;
    margin: 0 auto;
    max-width: 1500px;
}

.logo {
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #5A2D3A;
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 200;
    font-family: "Roboto", sans-serif
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #5A2D3A;
    transition: width 0.3s ease;
  }

  .nav-links a:hover {
    color: #49202c;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  /* ===== MENU HAMBURGUESA (móvil) ===== */
  .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 30;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #db0000;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-overlay {
    display: none;
  }

  @media (min-width: 900px){
    .nav-btn-mobile {
      display: none;
    }
    
  }

  @media (max-width: 900px) {
    .menu-toggle {
      display: flex;
      flex-direction: column;
    }

    /* Ocultamos el botón de escritorio y mostramos el de la lista móvil */
    .button {
        display: none;
    }
    
    .nav-btn-mobile {
        display: block;
        margin-top: 20px; /* Le da espacio respecto al último enlace */
    }

    /* Tu menú lateral corregido */
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      height: 100vh;
      width: 70%;
      max-width: 300px;
      background: #ffffff; /* Fondo blanco */
      display: flex !important; /* Fuerza el flexbox para ordenar en columna */
      flex-direction: column;
      align-items: center;    /* Centra el texto horizontalmente */
      justify-content: center; /* Centra el bloque verticalmente */
      gap: 35px;
      padding: 40px;
      box-shadow: -5px 0 25px rgba(0,0,0,0.15);
      transition: right 0.4s ease;
      z-index: 25; /* Capa controlada libre de bloqueos */
    }

    .nav-links.active {
      right: 0;
    }

    /* Forzamos que cada ítem ocupe el ancho correspondiente para recibir el clic */
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    /* Estilos de los textos en el celular */
    .nav-links a {
        display: inline-block;
        font-size: 18px !important; /* Texto más grande y cómodo para el dedo */
        color: #5A2D3A !important;  /* Tu color marrón característico */
    }

    /* Corrección de visibilidad para tu pestaña activa ("Curso") */
    .nav-links a.active {
      color: #FC4444 !important; /* Cambia a tu rojo llamativo para que no desaparezca */
      font-weight: bold;
    }

    .nav-overlay.active {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.35);
      z-index: 20;
    }
}

  .button-nav {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FC4444;
  }

  .button-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 24px rgba(252, 68, 68, 0.35);
  }

  /*---- SECCION DE HERO ----*/

  .hero {
    max-width: 100%;
    background-color: #FC4444;
  }

  .hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 100px 100px;
    overflow: hidden;
    flex-wrap: wrap;
    max-width: 1500px; /* Limita el ancho máximo en pantallas ultra amplias */
    margin: 0 auto;    /* Centra el contenido en pantallas gigantes */

  }

  .hero-text {
    position: relative;
    max-width: 580px;
    line-height: 1.45;
    padding: 0 20px; /* Opcional: agrega margen interno para que el texto no toque los bordes */
  }

  .text-bubble {
    width: 170px;
    padding: 4px 16px;
    background: #ecc6af00;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #ffffff;
  }

  .text-bubble p {
    font-size: 12px;
    font-family: "Nunito Sans", Sans-serif;
    color: #ffffff;
  }

  h1 {
    color: #ffffff;
    font-size: 85px;
    font-family: "Sansita", sans-serif;
    font-weight: 800;
    line-height: 1.04;
    font-style: normal;
    margin-bottom: 10px;
    animation: entradaSuave 0.6s ease-in-out forwards;

    /* Garantiza que si la palabra es muy larga no desborde la pantalla */
  overflow-wrap: break-word;
  word-break: break-word;
  }

  @keyframes entradaSuave {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-one {
    color: white;
    opacity: 1;
    font-size: 18px;
    font-family: "Nunito Sans", sans-serif;
    
    
  }

  .btn {
    padding: 16px 26px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
  }

  .btn-primary {
    background: #fff;
    color: #FC4444;
    transition: all 0.3s ease;
  }

  .btn-primary:hover {
    transform: scale(1.05);
  }

  .hero-image {
    position: relative;
    width: 600px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .blob {
    position: absolute;
    width: 90%;
    height: 90%;
    background: #d6bca6;
    border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
  } 

  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
  }

  .img-hero {
    position: relative;
    z-index: 1;
    width: 500px;
    height: 580px;
  }

  .section-card {
    display: flex;
    flex-direction: column; /* Alinea la ola y la tarjeta en columna */
    width: 100%;
    margin-bottom: 120px;
  }

  .target-wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    position: relative;
    background-color: #FC4444;
    margin-top: -5px;
  }

  .target-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 90px; /* Puedes subir o bajar este valor si quieres las curvas más o menos altas */
  }

  .features-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
  }

  .features-card {
    position: relative;
    background: #fdf2e4;
    width: 100%;
    max-width: 750px;
    border-radius: 20px;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    line-height: 25px;
    /* SOMBRA MÁS VISIBLE Y FLOTANTE */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  
    /* Superposición sobre la onda */
    margin-top: -80px; 
    z-index: 5;
  }

  .feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-item .icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.icon-card {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-icon {
    width: 100%;
    height: 100%;
    color: #5A2D3A; /* El color marrón exacto de tu marca */
}

.feature-item:hover {
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

.setion-recipes {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.header-recipes {
  text-align: center;
  margin-bottom: 30px;
}

.header-recipes h2 {
  color: #5A2D3A;
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "Sansita", sans-serif;
}

.header-recipes p {
  color: #8a7a80;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Buscador */
.search-filter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.search-box {
  display: flex;
  background: #ffffff;
  border-radius: 20px;
  padding: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0e6e6;
  width: 100%;
  max-width: 500px;
}

.search-box input {
  border: none;
  outline: none;
  padding: 10px 20px;
  border-radius: 30px;
  width: 100%;
  font-size: 14px;
  color: #5A2D3A;
}

.btn-search {
  background-color: #FC4444;
  color: #ffffff;
  border: none;
  padding: 10px 25px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-search:hover {
  background-color: #d93232;
  transform: scale(1.05);
}

/* Botones de Filtro (Pills) */
.filter-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.pill {
  background-color: #f3ece8;
  color: #5A2D3A;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pill:hover {
  background-color: #e5d4cb;
  font-weight: 600;
}

.pill.active {
  background-color: #FC4444;
  color: #ffffff;
  font-weight: 700;
}

.pill.active:hover {
  background-color: #d93232;
}

.no-results {
  display: none;
  text-align: center;
  color: #8a7a80;
  font-size: 15px;
  font-family: "Nunito Sans", sans-serif;
  margin-top: 20px;
}

/* --- REJILLA DE TARJETAS (GRID) --- */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.recipe-card {
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden; /* Corta la imagen en las esquinas superiores */
  box-shadow: 0 8px 24px rgba(252, 68, 68, 0.10);
  border: 1px solid #f5eeee;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(252, 68, 68, 0.18);;
  cursor: pointer;
}

/* Contenedor de imagen con posición relativa para el tag */
  .recipe-card-img {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #FEF5EA;
  }

  .recipe-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  .recipe-card:hover .recipe-card-img img {
    transform: scale(1.05);
  }

/* Tag flotante sobre la imagen */
.recipe-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FC4444;
  color: #ffffff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 30px;
}

.recipe-info {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-meta {
  font-family: "Nunito Sans", sans-serif;
  font-size: 12px;
  color: #999999;
}

.recipe-info h3 {
    font-family: "Sansita", sans-serif;
    font-size: 20px;
    color: #2B2320;
    margin-bottom: 8px;
  }


.recipe-info p {
  color: #8a8a9a;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.recipe-btn {
  display: inline-block;
  align-self: flex-start;
  background: #FC4444;
  color: #ffffff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.recipe-btn:hover {
  background: #d93232;
  transform: scale(1.04);
}


.contain-more-recipes {
  max-width:100%;
  height: 100px;
  text-align: center;
}

.contain-more-recipes p {
  color: #8a8a9a;
  font-size: 18px;
  font-weight: 500;
  font-family: "Be Vietnam Pro", Sans-serif;
}

/*---- FOOTER WAVE ----*/
.footer-wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    position: relative;
    background-color: #ffffff;
    margin-top: -5px;
  }

  .footer-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 90px; /* Puedes subir o bajar este valor si quieres las curvas más o menos altas */
  }


/*---- FOOTER SECTION ----*/
.footer-set {
    width: 100%;
    background: #2B2320;
    padding: 60px 20px 0;
  }
 
  .footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
  }
 
  .set-subscribe {
    display: flex;
    align-items: center;
    gap: 60px;
    background: linear-gradient(135deg, #FC4444 0%, #d93232 100%);
    border-radius: 24px;
    padding: 50px 60px;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
 
  .set-subscribe::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
  }
 
  .set-subscribe::after {
    content: "";
    position: absolute;
    bottom: -80px; right: 120px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
  }
 
  .text-subscribe-set {
    flex: 1;
    position: relative;
    z-index: 1;
  }
 
  .text-subscribe-set h2 {
    font-size: 28px;
    font-family: "Sansita", sans-serif;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.25;
  }
 
  .text-subscribe-set p {
    font-size: 14px;
    font-family: "Nunito Sans", sans-serif;
    color: rgba(255,255,255,0.80);
    line-height: 1.6;
  }
 
  .subscribe-form {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
 
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
 
  .email {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
 
  .email label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-family: "Nunito Sans", sans-serif;
    color: rgba(255,255,255,0.75);
  }
 
  .email input {
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.25);
    padding: 12px 22px;
    font-size: 14px;
    font-family: "Nunito Sans", sans-serif;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    width: 280px;
    outline: none;
    transition: border 0.3s ease, background 0.3s ease;
  }
 
  .email input::placeholder { color: rgba(255,255,255,0.55); }
 
  .email input:focus {
    border-color: rgba(255,255,255,0.70);
    background: rgba(255,255,255,0.22);
  }
 
  .btn-send {
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    background: #ffffff;
    color: #FC4444;
    font-size: 15px;
    font-weight: 700;
    font-family: "Sansita", sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }
 
  .btn-send:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 22px rgba(0,0,0,0.20);
  }
 
  .subscribe-success {
    display: none;
    font-family: "Nunito Sans", sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding-top: 6px;
  }
 
  /* ============================
     FOOTER — Pie de página
     ============================ */
 
  .footer-bottom {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
 
  .footer-brand p {
    font-family: "Nunito Sans", sans-serif;
    font-size: 13.5px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-top: 14px;
    max-width: 280px;
  }
 
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
 
  .footer-logo-text {
    font-family: "Sansita", sans-serif;
    font-size: 22px;
    color: #ffffff;
  }
 
  .footer-logo-text span { color: #ffd044; }
 
  .footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
  }
 
  .social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
  }
 
  .social-btn:hover {
    background: #FC4444;
    transform: translateY(-3px);
  }
 
  .social-btn svg { width: 16px; height: 16px; fill: #ffffff; }
 
  .footer-col h4 {
    font-family: "Sansita", sans-serif;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
  }
 
  .footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: #FC4444;
    border-radius: 2px;
  }
 
  .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
 
  .footer-col ul li a {
    text-decoration: none;
    font-family: "Nunito Sans", sans-serif;
    font-size: 13.5px;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s ease;
  }
 
  .footer-col ul li a:hover { color: #ffd044; }
 
  .footer-copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-family: "Nunito Sans", sans-serif;
    font-size: 12.5px;
    color: rgba(255,255,255,0.30);
  }
 
  .footer-copyright span { color: #FC4444; }
 
  @media (max-width: 860px) {

    .navbar {
      padding: 10px 30px;
    }

    .hero-container {
      padding: 40px 30px;
    }

    h1 {
      font-size: 2.5rem; /* Ajusta la fuente para pantallas medianas/pequeñas */
    }

    .blob {
      width: 80%;
      height: 80%;
    }

    .img-hero {
      width: 400px;
      height: 470px;
    }

    .recipes-grid {
      grid-template-columns: repeat(1, 1fr);
      padding: 30px 30px;
    }

    .set-subscribe {
      flex-direction: column;
      padding: 40px 30px;
      gap: 30px;
      text-align: center;
    }
    .email input { width: 100%; }
    .footer-bottom { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
  }
 
  @media (max-width: 520px) {
    .footer-bottom { grid-template-columns: 1fr; }

    .hero-container {
      padding: 30px 30px;
    }

    h1 {
    font-size: 60px; /* Tamaño idóneo para móviles */
    line-height: 1.1;
    }

    .features-card {
    grid-template-columns: 1fr; /* Pasa las tarjetas de características a 1 columna */
    gap: 15px;
    }


  }
