/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;400;500;700&display=swap');

/* Variables CSS */
:root {
  --primary-color: #E37D54;
  --secondary-color: #8DC63F;
  --accent-color: #F4B350;
  --bg-primary: #FFF9F0;
  --bg-secondary: #FCF5E8;
  --text-primary: #333333;
  --text-secondary: #5D534C;
  --cta-color: #D35400;
  --highlight-color: #2ECC71;
  --detail-color: #F1C40F;
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Libre Franklin', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.5rem;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--cta-color);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--cta-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--highlight-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Header y navegación */
.header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.logo span {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-menu {
  display: none;
}

.nav-menu ul {
  display: flex;
  list-style-type: none;
  gap: 30px;
}

.nav-menu a {
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-menu a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.nav-menu a.active:after {
  width: 100%;
}

.hamburger {
  display: block;
  cursor: pointer;
  z-index: 2000;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 6px 0;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-8px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-8px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--bg-primary);
  padding: 100px 40px;
  z-index: 1500;
  transition: var(--transition);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style-type: none;
}

.mobile-menu li {
  margin-bottom: 20px;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 500;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sección Hero */
.hero {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.hero-image {
  margin-top: 30px;
  border-radius: 50%;
  overflow: hidden;
  width: 250px;
  height: 250px;
  position: relative;
}

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

/* Secciones comunes */
.section {
  padding: 60px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  display: inline-block;
}

.section-title h2:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Diseño circular con puntos focales */
.circular-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 0;
}

.center-circle {
  width: 200px;
  height: 200px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.center-circle h3 {
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 1.3rem;
}

.orbital-points {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 600px;
  margin: 0 auto;
}

.orbital-item {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  z-index: 0;
}

.orbital-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.orbital-item h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Tarjetas con estilo culinario */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 15px;
}

.card-content p {
  margin-bottom: 20px;
}

/* Estilo culinario para secciones */
.food-section {
  background-color: var(--bg-secondary);
  padding: 60px 0;
  border-radius: 20px;
  margin: 40px 0;
}

.recipe-style {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.recipe-style h3 {
  border-bottom: 2px dashed var(--accent-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.recipe-style ul {
  list-style-type: none;
  margin-bottom: 20px;
}

.recipe-style li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 25px;
}

.recipe-style li:before {
  content: "•";
  color: var(--secondary-color);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 5px;
}

.recipe-style .steps {
  counter-reset: step-counter;
}

.recipe-style .steps li {
  counter-increment: step-counter;
  padding-left: 40px;
}

.recipe-style .steps li:before {
  content: counter(step-counter);
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Formulario de contacto */
.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.contact-form h3 {
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 125, 84, 0.2);
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

/* Ajustes para teléfono */
.iti {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 50px 0 20px;
}

.footer-container {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-links {
  margin-bottom: 30px;
}

.footer-links h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style-type: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-contact {
  margin-bottom: 30px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: white;
  padding: 20px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transition: var(--transition);
}

.cookie-banner.active {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.cookie-text {
  margin-bottom: 20px;
}

.cookie-text h4 {
  margin-bottom: 10px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cookie-modal.active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cookie-modal-header h3 {
  margin-bottom: 0;
}

.cookie-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

.cookie-options {
  margin-bottom: 20px;
}

.cookie-option {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition);
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--secondary-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.cookie-option-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Estilo de página de agradecimiento */
.thanks-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
}

.thanks-icon {
  font-size: 5rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.thanks-content {
  max-width: 600px;
  margin: 0 auto;
}

.thanks-content h1 {
  margin-bottom: 20px;
}

.thanks-content p {
  margin-bottom: 30px;
}

/* Media queries */
@media (min-width: 576px) {
  .container {
    width: 90%;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-image {
    width: 300px;
    height: 300px;
  }
  
  .orbital-item {
    padding: 30px;
  }
}

@media (min-width: 768px) {
  .container {
    width: 85%;
  }
  
  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .footer-logo, .footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
    margin-right: 20px;
  }
  
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .cookie-text {
    margin-bottom: 0;
    margin-right: 20px;
  }
  
  .orbital-points {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .orbital-item {
    width: calc(50% - 15px);
  }
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
  
  .nav-menu {
    display: block;
  }
  
  .mobile-menu {
    display: none;
  }
  
  .hero-content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }
  
  .hero-text {
    flex: 1;
    padding-right: 50px;
  }
  
  .hero-image {
    margin-top: 0;
  }
  
  .hero p {
    margin-left: 0;
  }
  
  .center-circle {
    width: 250px;
    height: 250px;
  }
  
  .orbital-points {
    position: relative;
    max-width: 100%;
  }
  
  .orbital-item {
    width: calc(33.333% - 20px);
  }
  
  .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .card {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 80%;
  }
  
  .center-circle {
    width: 300px;
    height: 300px;
  }
  
  .center-circle h3 {
    font-size: 1.6rem;
  }
  
  .orbital-item {
    width: calc(25% - 30px);
  }
}