:root {
  --color-secondary-background: #e6dfdf;
  --color-background: #F5F5F5;
  --color-accent-light: #FF7A3D;
   --color-accent-mediun: #F6511D;
  --color-accent-dark: #C63E12;
  --color-text-light: #7e7b7b;

  --color-text-dark: #1A1A1A; 
  --color-lightOverlay: rgba(255, 255, 255, 0.5);
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-dark);
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  padding: 0.5rem;
}
header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}
.logo-link {
  text-decoration: none;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
}
.bottom {
  width: 70%;
  
}
nav {
  background-color: var(--color-background);
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  
}

.logo {
  display: flex;
  align-items: center;
  column-gap: 1rem;
 
}
.logo span {
  font-size: 1.7rem;
  font-weight: bold;
  font-family: roboto;
}
#lanzador {
  display: none;
}
.logo img {
  width: 90px;
  height: 90px;
}
.menu {
  display: flex;
  align-items: center;
  width: 70%;
  justify-content: space-evenly;
}

.menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  column-gap: 1rem;
  padding: 0.5rem;
  margin-right: 1rem;
}
.menu li {
  font-size: 1.1rem;
   margin-right: 1rem;
   transition: all 0.5s ease;
   padding: 0.5rem;
}
.menu li a {
  text-decoration: none;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
  font-weight: bold;
}
.menu li a:hover {
  color: var(--color-accent-light);
  
}
.menu li:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.menu-active {
  color: var(--color-accent-light) !important;
  border-bottom: 2px solid var(--color-accent-light);
}
.user-menu {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.user-menu img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
  transition: border-color 0.2s;
}

.user-menu img:hover {
  border-color: #ff7f50;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 10;
}

.dropdown a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  color: #333;
}

.dropdown a:hover {
  background: var(--color-accent-light);
  color: var(--color-secondary-background);
}

/* Show dropdown when active */
.dropdown.show {
  display: block;
}




.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--color-background);
  color: var(--color-text-dark);
  gap: 2rem;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-accent-mediun);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-dark);
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(246, 81, 29, 0.3);
}

.btn-primary {
  background: var(--color-accent-mediun);
  color: #fff;
  box-shadow: 0 6px 20px rgba(246, 81, 29, 0.5);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 8px 30px rgba(198, 62, 18, 0.7);
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  border: 2.5px solid var(--color-accent-mediun);
  color: var(--color-accent-mediun);
}

.btn-secondary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 122, 61, 0.5);
}


.hero-image {
  flex: 1;
  max-width: 600px;
  animation: fadeIn 1.5s ease forwards;
  opacity: 0;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(246, 81, 29, 0.3);
  user-select: none;
  pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}



section {
  height: calc(100vh - 122px); 
  display: flex; 

  align-items: center; 
  justify-content: center;
}


.ingredients-section,
.top-recipes,
.newsletter {
  padding: 2rem ;
  text-align: center;
  flex-direction: column;
  height: auto;
  animation: fadeInUp 0.8s ease-in-out;
}


.ingredients-section h2,
.top-recipes h2,
.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

input[type="text"],
input[type="email"] {
  padding: 0.5rem;
  width: 80%;
  max-width: 400px;
  margin: 1rem 0;
  border: 1px solid red;
  border-radius: 4px;
}

.ingredients-section {
  background-color: var(--color-secondary-background);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 3rem auto;
  animation: fadeInUp 0.8s ease-in-out;
}

.ingredients-section h2 {
  color: var(--color-text-dark);
  font-size: 2rem;
  margin-bottom: 1rem;
}
#ingredientForm  {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.ingredients-section p {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 2rem;
}


.ingredients-section input {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--color-accent-light);
  border-radius: 8px;
  width: 70%;
  max-width: 400px;
  margin-bottom: 1.5rem;
  outline: none;
  transition: all 0.3s ease;
}

.ingredients-section input:focus {
  border-color: var(--color-accent-dark);
  box-shadow: 0 0 10px rgba(198, 62, 18, 0.4);
}

.ingredients-section .btn {
  background: var(--color-accent-mediun);
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  transition: background 0.3s, transform 0.2s;
}

.ingredients-section .btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
}
.ingredients-list-container {
  margin-bottom: 4rem;
}


#random-picks {
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  background: #fafafa;
  margin: 4rem auto;
  height: auto;
}



.search-section h2,
#random-picks h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
}

#random-picks {
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  background: #fafafa;
  margin: 4rem auto;
  height: auto;
}

#random-picks button {
  margin: 2rem auto;
}




@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ingredients-list {
  width: 100%;
  margin-top: 3rem;
  text-align: left;
  animation: fadeInUp 0.8s ease-in-out;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  padding-left: 4rem;
}
#ingredientList {
  padding-left: 2rem;
}
#ingredientList li {
  
  font-size: 1.2rem;
  color: var(--color-text-dark);
  padding: 0.3rem;
  
  

  
}
#ingredientList li::marker {
  color: var(--color-accent-mediun); 
  font-size: 1.2em; 
}


.top-recipes {
  width: 100%;
  padding: 4rem 2rem;  
  text-align: center;
  animation: fadeInUp 0.8s ease-in-out;
  
}


.recipes-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .recipes-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.recipe-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.recipe-card h3 {
  color: var(--color-text-dark);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.recipe-card p {
  color: var(--color-text-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.recipe-card button {
  padding: 0.8rem 1.2rem;
  transition: all 0.5s ease;
}

.newsletter {
  background-image: url('../images/fondo.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: bottom;
  padding: 4rem 2rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter-container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 3rem;
  border-radius: 15px;
  max-width: 1000px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.newsletter-text h3 {
  font-size: 1.5rem;
  color: var(--color-accent-mediun);
}
.newsletter-text h2 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  color: var(--color-background);
}
.newsletter-text p {
  font-family: 'Cabin', sans-serif;
  font-size: 1.1rem;
  color: var(--color-background);
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.newsletter-form input[type='email'] {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
}

#mainNotification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

#mainNotification.success { background-color: #4caf50; }
#mainNotification.error { background-color: #f44336; }
#mainNotification.info { background-color: #2196f3; }

#mainNotification.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none;
}



.gradient {
  width: 100%;
  height: 20px;
  background: var(--color-accent-mediun);
  position: relative;
  z-index: 10;
}

.gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}



.footer {
  width: 100%;
  padding-top: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: #2a2e36;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/footer-bg.webp');
  background-size: contain;
  background-position: center;
  opacity: 0.8;
  z-index: 0;
}

.footer-top {
  display: flex;
  padding: 0px 60px;
  column-gap: 20px;
  margin-bottom: 20px;
  justify-content: space-between;
  width: 90%;
}
.footer-top .footer-section {
  width: 25%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 20px;
  color: var(--color-background);
}
.footer-top .logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.footer-top p {
  font-size: 0.9em;
  letter-spacing: 1px;
  color: var(--color-background);
}
.footer-top .social-icons {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s ease;
}
.footer-top .footer-section .social-icons a {
  font-size: 2em;
  color: var(--color-accent-mediun);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.footer-top .footer-section .social-icons a:hover {
  color: var(--color-accent-dark);
  transform: scale(1.2);
}

.footer-top .footer-section h4 {
  font-size: 1.4em;
  color: var(--color-accent-mediun);
  margin-bottom: 20px;
}

.footer-top .footer-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: start;
  margin-bottom: 10px;
  padding-left: 10px;
  z-index: 2;
}
.footer-top .footer-section li {
  margin-bottom: 10px;
  color: var(--color-background);
}
.footer-top .footer-section a {
  color: var(--color-background);
  font-size: 0.9em;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.footer-top .footer-section a:hover {
  color: var(--color-accent-mediun);
  transform: scale(1.2);
}

.footer-section.contact {
  align-items: flex-start;
  row-gap: 20px;
  
  color: var(--color-background);

}

.footer-section.contact h4 {
  font-size: 1.4em;
  color: var(--color-accent-mediun);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  column-gap: 12px;
  margin-bottom: 15px;
}

.contact-item i {
  color: var(--color-accent-mediun);
  font-size: 1.2em;
  margin-top: 4px;
  min-width: 20px;
}

.contact-item span {
  font-weight: bold;
  color: var(--color-background);
  display: block;
  margin-bottom: 2px;
}

.contact-item p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.4;
  color: var(--color-background);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-bottom .bottom p,
.footer-bottom > p {
  color: var(--color-background);
  font-size: 0.8em;
  letter-spacing: 1px;
  margin: 4px 0;
  position: relative;
  z-index: 3;
}

.footer-bottom .bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-bottom::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}
