/* ===== Animaciones ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

/* Clases de animación */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }

/* Efectos de hover */
.recipe-card {
  
  transform: translateY(0) scale(1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.recipe-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  
  pointer-events: none;
  z-index: 1;
}

.recipe-card:hover::before {
  opacity: 1;
}

.recipe-card h3 {
  
  transform: translateY(0);
}

.recipe-card h3 {
  color: inherit;
  
}

.recipe-meta span {
  
  display: inline-block;
}



.recipe-card:hover .recipe-meta i {
  color: #e52e71;
  transform: scale(1.1);
}

.recipe-meta i {
  
  display: inline-block;
}

.recipe-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: visible;
  position: relative;
  cursor: pointer;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 60px; /* Espacio para el botón */
}

.recipe-card:hover {
  transform: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.05);
}

.recipe-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  
  z-index: -1;
}

.recipe-card:hover::after {
  opacity: 1;
}

.recipe-image {
  background: linear-gradient(135deg, #f7971e 0%, #f37335 50%, #ef4836 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.recipe-icon {
  font-size: 80px;
  color: rgba(255, 255, 255, 0.95);
  
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transform: scale(1);
  will-change: transform, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}



.recipe-info {
  padding: 20px;
}

.recipe-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #2f3a46;
  font-family: "Playfair Display", serif;
}

.recipe-country {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7a89;
  font-weight: 600;
}

.country-code {
  display: inline-block;
  background: #ffac4c;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 4px;
}

.recipe-description {
  margin: 0 0 12px;
  font-size: 14px;
  color: #6b7a89;
  line-height: 1.5;
}

.recipe-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #9a9a9a;
}

.recipe-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-meta i {
  color: #ffac4c;
}

/* Recipe Modal */
.recipe-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #ffffff;
  margin: 5% auto;
  max-width: 700px;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 32px;
  color: #6b7a89;
  background: none;
  border: none;
  cursor: pointer;
  
  z-index: 10;
}

.modal-close:hover {
  color: #ef4836;
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
}

.modal-body h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
  color: #2f3a46;
  font-family: "Playfair Display", serif;
}

.modal-country {
  margin: 0 0 20px;
  font-size: 15px;
  color: #6b7a89;
  font-weight: 600;
}

.modal-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  flex-wrap: wrap;
}

/* Estilos para el contador de visitas */
.visitor-counter {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  padding: 8px 15px 8px 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  
  animation: float 6s ease-in-out infinite;
}

.visitor-counter:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.counter-icon {
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: white;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
  animation: pulse 3s infinite;
}

.counter-content {
  display: flex;
  flex-direction: column;
}

.counter-number {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.counter-label {
  font-size: 10px;
  color: #7f8c8d;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes moveText {
  0% {
    transform: translateX(-10px);
    opacity: 0;
  }
  50% {
    transform: translateX(10px);
    opacity: 1;
  }
  100% {
    transform: translateX(-10px);
    opacity: 0;
  }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
  .welcome-container {
    padding: 15px 20px;
  }
  
  .welcome-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  
  .welcome-message {
      font-size: 1rem;
  }
  
  .highlight {
      padding: 2px 0;
  }
}

  header h4 {
    animation: moveText 2s ease-in-out infinite;
    font-size: 24px;
    color: rgb(255, 172, 76); 
    font-family: 'Barista Script', sans-serif;
    text-align: center;
  }
  
  .presentacion {
    background-color: #fdf6e3;
    box-shadow: none;
  }
  
  
    @keyframes moveText {
      0% {
          transform: translateX(-10px); 
          opacity: 0; 
      }
      50% {
          transform: translateX(10px); 
          opacity: 1; 
      }
      100% {
          transform: translateX(-10px); 
          opacity: 0; 
      }
    }
  
  /* Estilos para el content-box */
  .content-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 600px;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
  }
  
  /* Estilos para el contenedor de bienvenida */
  .welcome-container {
    background: rgba(255, 255, 255, 0.92);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .welcome-title {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    font-size: 2rem;
    margin: 0 0 12px 0;
    line-height: 1.3;
  }
  
  .welcome-title span {
    color: #e67e22;
    display: inline-block;
    
  }
  
  .welcome-message {
    font-size: 1.1rem;
    color: #34495e;
    line-height: 1.6;
    margin: 0;
  }
  
  .highlight {
    margin: 0;
    padding: 3px 0;
    
    display: block;
  }
  
  .highlight:hover {
    transform: translateX(10px);
    color: #e67e22;
  }
  
  .accent {
    color: #e67e22;
    font-weight: 500;
    
  }
  
  .art-text {
    background: linear-gradient(45deg, #e67e22, #d35400);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    font-style: italic;
    
  }
  
  /* Efectos de hover */
  .welcome-title span:hover {
    transform: scale(1.05);
    display: inline-block;
  }
    
      /* Estilos para el título del logo */
        .logo-container h4 {
            font-family: 'Great Vibes', cursive;
            font-size: 2.2rem;
            font-weight: normal;
            margin-left: 10px;
            color: #e67e22;  /* Color naranja */
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
            letter-spacing: 1px;
            font-style: italic;
        }
/* ===== Base Elements ===== */
body {
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: #333333;
    background-color: #fdf6e3;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 100px 20px 20px; /* Ajustado el padding-top para el header fijo */
    min-height: 100vh;
    box-sizing: border-box;
}

p {
    text-align: center;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    text-align: center;
    animation: zoom 2s infinite;
}
   header {
       background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 246, 227, 0.98) 100%);
       backdrop-filter: blur(10px);
       color: rgb(0, 0, 0);
       position: fixed;
       width: 100%;
       top: 0;
       z-index: 1000;
       padding: 15px 30px;
       text-align: center;
       display: flex;
       align-items: center;
       justify-content: space-between;
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 150px; /* Altura fija para el header */
       z-index: 1000;
       box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
       border-bottom: 1px solid rgba(255, 172, 76, 0.2);
       
       box-sizing: border-box; /* Incluye padding en el ancho/alto total */
   }
   
   header:hover {
       box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
   }
   .logo-container {
       display: flex;
       align-items: center;
       gap: 12px;
       padding: 8px 16px;
       border-radius: 50px;
       background: rgba(255, 255, 255, 0.8);
       
   }
   
   .logo-container:hover {
       background: rgba(255, 255, 255, 0.95);
       transform: translateY(-2px);
       box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
   }
   .mapa {
       width: 55px;
       height: auto;
       border-radius: 8px;
       
       filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
   }
   
   .mapa:hover {
       transform: scale(1.08) rotate(2deg);
       filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
   }
   
   .mapa-link {
       display: inline-block;
       margin: 0;
       padding: 8px;
       border-radius: 12px;
       background: rgba(255, 255, 255, 0.8);
       
   }
   
   .mapa-link:hover {
       background: rgba(255, 255, 255, 0.95);
       transform: translateY(-2px);
       box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
   }
   
   .logo {
       width: 55px;
       height: auto;
       border-radius: 50%;
       
       filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
   }
   
   .logo:hover {
       transform: scale(1.05);
       filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
   }
   .menu {
     
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    flex-grow: 1;
   }
   .navbar{
    font-family: 'Arial', sans-serif;
   }
   .menu .navbar {
    display: flex;
    justify-content: center; 
   }
   .menu .navbar ul li{
       position: relative;
      margin: 0;
      padding: 0 15px;
      margin-right: 40px;
   }
   .menu .navbar ul li a {
    text-decoration: none;
    color: #2f3a46;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 18px;
    
    position: relative;
    display: inline-block;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
   }
   
   .menu .navbar ul li a:hover {
       background: rgba(255, 172, 76, 0.1);
       color: #ffac4c;
       transform: translateY(-2px);
   }
   
   .menu .navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 50%;
    background: linear-gradient(90deg, #ffac4c, #ffb765);
    transform: translateX(-50%);
    
    border-radius: 1px;
   }
   
   .menu .navbar ul li a:hover::after {
    width: 70%;
   }
   
   .menu .navbar ul li .submenu {
       display: none;
       position: absolute;
       top: 100%;
       left: 50%;
       transform: translateX(-50%);
       background: rgba(255, 255, 255, 0.95);
       backdrop-filter: blur(10px);
       list-style: none;
       padding: 15px 0;
       margin-top: 8px;
       border-radius: 12px;
       box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
       z-index: 1000;
       min-width: 200px;
       border: 1px solid rgba(255, 172, 76, 0.2);
   }
    .menu .navbar ul li:hover .submenu {
         display: block;
         animation: dropdownFade 0.3s ease forwards;
    }
    
    @keyframes dropdownFade {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%);
        }
    }
    .menu .navbar ul li .submenu li {
        padding: 8px 20px;
        
    }
    
    .menu .navbar ul li .submenu li:hover {
        background: rgba(255, 172, 76, 0.1);
    }
    .menu .navbar ul li .submenu li a {
        color: #2f3a46;
        text-decoration: none;
        font-weight: 500;
        display: block;
        padding: 8px 0;
        
    }
    
    .menu .navbar ul li .submenu li a::after {
        display: none;
    }
    
    .menu .navbar ul li .submenu li a:hover {
        color: #ffac4c;
        transform: translateX(5px);
    }
   .menu .navbar ul li a:hover {
       color: #ffac4c;
   }
   .menu .navbar ul {
    display: flex; 
    justify-content: center;
    align-items: center; 
    gap: 20px; 
    list-style: none; 
    padding: 0;
    margin: 0;
}

.menu .navbar ul li {
   margin: 0;
   padding: 0;
   margin-right: 75px;
   
}

   a {
       display: inline-block;
   }
   
   a img {
       display: block;
   }
  

.contenedor {
 display: flex;
 gap: 20px;
 justify-content: center;
}

.caja {
 position: relative;
 width: 250px;
 height: 300px;
 overflow: hidden;
 border-radius: 10px;
 box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
 cursor: pointer;
 
}

.caja:hover {
 transform: scale(1.05);
}

.caja img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.texto {
 position: absolute;
 top: 10px;
 left: 10px;
 right: 10px;
 background-color: white;
 padding: 10px;
 text-align: center;
 font-weight: bold;
}

.texto small {
 display: block;
 color: gray;
 font-size: 12px;
 margin-bottom: 5px;
}

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

.por-que-elegirnos {
    background-color: rgb(255, 255, 255);
    padding: 40px 20px;
     margin-bottom: 70px;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.feature-icon {
    min-width: 50px;
    height: 50px;
   background-color: #ffac4c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.presentacion-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 45px;
    justify-content: center;
    margin-top: 80px; /* Aumentado para bajar el contenido debajo del header */
    position: relative;
    min-height: 450px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    
    /* Para móviles */
    @media (max-width: 768px) {
        min-height: 380px; /* Aumentado para hacer el slider más grande */
        padding: 0 10px;
        margin-top: 70px; /* Ajuste para móviles */
    }
}

li {
    list-style: none;
    margin: 10px 0;
    padding: 10px;
}

.slider {
    position: absolute;
    width: calc(100% - 30px);
    height: 420px;
    top: 15px;
    left: 15px;
    right: 15px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    z-index: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    /* Para móviles */
    @media (max-width: 768px) {
        width: calc(100% - 20px);
        height: 350px; /* Aumentado para hacer el slider más grande */
        left: 10px;
        right: 10px;
        top: 20px;
        border-radius: 12px;
    }
    
    /* Para tablets pequeñas */
    @media (min-width: 481px) and (max-width: 768px) {
        height: 380px; /* Aumentado para tablets */
    }
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    filter: brightness(0.95);
    transition: opacity 0.5s ease-in-out;
    
    /* Para móviles */
    @media (max-width: 768px) {
        object-position: center 30%;
    }
}

.slider img.active {
    opacity: 1;
    z-index: 1;
}

/* ===== New Footer (4 columns, gradient background) ===== */
.footer-new {
  background: linear-gradient(180deg, #f1d4c4 0%, #e2b59f 100%);
  color: #4a3b34;
  padding: 40px 0 16px;
  margin-top: 40px;
  box-shadow: none;
}

.footer-new .footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-new h4 {
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 700;
  color: #3b2c25;
}

.footer-new p,
.footer-new li,
.footer-new a {
  font-size: 14px;
  color: #4a3b34;
}

.footer-new a {
  text-decoration: none;
}

.footer-new a:hover {
  color: #ffac4c;
}

.footer-new ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-new .social a {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #4a3b34;
  margin-right: 10px;
}

.footer-new .social a:hover {
  background: #ffac4c;
  color: #ffffff;
}

.footer-new .contact i {
  margin-right: 8px;
}

.footer-new .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  margin-top: 24px;
  padding-top: 12px;
  font-size: 12px;
  color: #5a5a5a;
}

@media (max-width: 900px) {
  .footer-new .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .footer-new .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-new .social a { margin-right: 6px; }
}

/* ===== Countries Grid Section ===== */
.countries {
    padding: 40px 20px;
    background-color: #fff9f5;
    text-align: center;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
}

.country-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    height: 100%;
    box-sizing: border-box;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.country-card .code {
    color: #e52e71;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
}

.country-card h3 {
    margin: 10px 0;
    color: #2f3a46;
    font-size: 1.4em;
}

.country-card p {
    color: #666;
    margin: 5px 0 0;
    font-size: 0.95em;
}

.additional-countries {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.show-more-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.show-more-btn {
    background: linear-gradient(135deg, #ff8a00, #e52e71);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.show-more-btn:active {
    transform: translateY(0);
}



.show-more-btn.active i {
    transform: rotate(180deg);
}
.countries {
  background: #fdf6e3;
  padding: 60px 20px;
  margin: 0;
}

.countries h2 {
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  color: #2f3a46;
  margin-bottom: 20px;
}

.countries h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #ffac4c;
  border-radius: 2px;
  margin: 14px auto 0;
}

.countries-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.country-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 32px 24px;
  text-decoration: none;
  color: #2f3a46;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
  cursor: pointer;
}

.country-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.country-card .code {
  font-size: 42px;
  font-weight: 700;
  color: #2f3a46;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.country-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #2f3a46;
  font-family: "Playfair Display", serif;
}

.country-card p {
  margin: 0;
  color: #6b7a89;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .countries-title {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .countries-grid {
    grid-template-columns: 1fr;
  }
  
  .countries {
    padding: 40px 16px;
  }
  
  .countries-title {
    font-size: 26px;
  }
  
  .country-card {
    padding: 28px 20px;
  }
}
/* ===== Recipes Section ===== */
.recipes-section {
  background: #fdf6e3;
  padding: 60px 20px;
  margin: 0 0 50px 0;
}

.recipes-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 30px;
  color: #2f3a46;
  position: relative;
}

.recipes-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #ffac4c;
  border-radius: 2px;
  margin: 14px auto 0;
}

.recipe-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid #ffac4c;
  background: transparent;
  color: #ffac4c;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  
}

.filter-btn:hover,
.filter-btn.active {
  background: #ffac4c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 172, 76, 0.3);
}

.recipes-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.recipe-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  
  cursor: pointer;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.recipe-card:hover {
  transform: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.05);
}

.recipe-image {
  background: linear-gradient(135deg, #f7971e 0%, #f37335 50%, #ef4836 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.recipe-icon {
  font-size: 80px;
  color: rgba(255, 255, 255, 0.95);
  
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transform: scale(1);
  will-change: transform, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}


.recipe-info {
  padding: 20px;
}

.recipe-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #2f3a46;
  font-family: "Playfair Display", serif;
}

.recipe-country {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7a89;
  font-weight: 600;
}

.country-code {
  display: inline-block;
  background: #ffac4c;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 4px;
}

.recipe-description {
  margin: 0 0 12px;
  font-size: 14px;
  color: #6b7a89;
  line-height: 1.5;
}

.recipe-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #9a9a9a;
}

.recipe-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.recipe-meta i {
  color: #ffac4c;
}

/* Recipe Modal */
.recipe-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #ffffff;
  margin: 5% auto;
  max-width: 700px;
  border-radius: 16px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 32px;
  color: #6b7a89;
  background: none;
  border: none;
  cursor: pointer;
  
  z-index: 10;
}

.modal-close:hover {
  color: #ef4836;
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
}

.modal-body h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
  color: #2f3a46;
  font-family: "Playfair Display", serif;
}

.modal-country {
  margin: 0 0 20px;
  font-size: 15px;
  color: #6b7a89;
  font-weight: 600;
}

.modal-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  flex-wrap: wrap;
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7a89;
}

.modal-meta i {
  color: #ffac4c;
}

.modal-body h3 {
  margin: 25px 0 15px;
  font-size: 22px;
  font-weight: 700;
  color: #2f3a46;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body h3 i {
  color: #ffac4c;
}

.modal-body ul,
.modal-body ol {
  margin: 0 0 20px;
  padding-left: 25px;
}

.modal-body li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #4a4a4a;
}

@media (max-width: 900px) {
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .recipes-grid {
    grid-template-columns: 1fr;
  }
  
  .recipes-section {
    padding: 40px 16px;
  }
  
  .recipes-title {
    font-size: 28px;
  }
  
  .modal-content {
    margin: 10% 15px;
    max-height: 80vh;
  }
  
  .modal-body {
    padding: 30px 20px;
  }
}

/* Header Responsive Design */
@media (max-width: 1024px) {
  header {
    padding: 12px 20px;
  }
  
  .menu .navbar ul li a {
    font-size: 15px;
    padding: 10px 15px;
  }
  
  .logo-container {
    gap: 10px;
    padding: 6px 12px;
  }
  
  .mapa {
    width: 50px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .logo-container {
    order: 1;
    gap: 8px;
    padding: 4px 10px;
  }
  
  .mapa-link {
    order: 2;
    padding: 6px;
  }
  
  .mapa {
    width: 45px;
  }
  
  .menu {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  
  .menu .navbar ul {
    gap: 10px;
  }
  
  .menu .navbar ul li {
    margin-right: 0;
    padding: 0 8px;
  }
  
  .menu .navbar ul li a {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .menu .navbar ul li .submenu {
    min-width: 180px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  header {
    padding: 8px 10px;
  }
  
  .logo-container h4 {
    font-size: 18px;
  }
  
  .logo {
    width: 40px;
  }
  
  .mapa {
    width: 40px;
  }
  
  .menu .navbar ul {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .menu .navbar ul li {
    padding: 0 5px;
  }
  
  .menu .navbar ul li a {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  .menu .navbar ul li .submenu {
    min-width: 160px;
    padding: 10px 0;
  }
  
  .menu .navbar ul li .submenu li {
    padding: 6px 15px;
  }
  
  .menu .navbar ul li .submenu li a {
    font-size: 13px;
    padding: 6px 0;
  }
}




.view-recipe-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 28px;
  background: linear-gradient(135deg, #ffac4c 0%, #f37335 100%);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  opacity: 1;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(243, 115, 53, 0.4);
  z-index: 10;
  pointer-events: auto;
}

.view-recipe-btn:hover {
  background: linear-gradient(135deg, #f37335 0%, #ef4836 100%);
  box-shadow: 0 10px 25px rgba(243, 115, 53, 0.5);
  transform: translateX(-50%) translateY(55px);
}
