/* =========================================
   RESET Y VARIABLES GLOBALES
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colores Base */
  --primary-color: #e7720c;
  --text-color: #333;
  --light-gray: #f4f4f4;
  --dark-text: #2c3e50;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);

  /* Variables Optimizadas para Glasmorfismo */
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-hover: rgba(255, 255, 255, 0.6);
  --glass-border-light: rgba(255, 255, 255, 0.6);
  --glass-border-dark: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --glass-blur: blur(16px);
}

/* 1. Bloquear el scroll horizontal a nivel general (súper importante) */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* =========================================
   BODY Y FONDOS
   ========================================= */
body {
  /* Previene el scroll horizontal sin romper position: sticky */
  overflow-x: clip;
  width: 100%;
  height: auto;
  font-family: sans-serif;
  font-weight: 400;
  /* Mejorado de 300 a 400 para mejor lectura sobre cristal */
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  background-attachment: fixed;
  position: relative;
  z-index: 0;
}

/* Blobs de fondo para el efecto glasmorfismo */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  filter: blur(100px);
}

body::before {
  width: 400px;
  height: 400px;
  background: #f7cd8e;
  top: 10%;
  left: 5%;
}

body::after {
  width: 500px;
  height: 500px;
  background: #fac0af;
  bottom: 5%;
  right: 5%;
}

/* =========================================
   HEADER Y NAVEGACIÓN
   ========================================= */
header {
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border-light);
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  /* Cambiado a sticky para mejor UX */
  top: 0;
  z-index: 1000;
  /* Asegura que esté por encima de todo */
}

.logo {
  font-family: 'Georgia', serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  align-items: start;
}

.logo-subtitle {
  font-size: 0.9rem;
  font-family: sans-serif;
  color: var(--primary-color);
}

nav {
  margin-left: 400px;
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin-right: auto;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease-in-out;
}

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

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border-light);
  border-left: 1px solid var(--glass-border-light);
  border-right: 1px solid var(--glass-border-dark);
  border-bottom: 1px solid var(--glass-border-dark);
  box-shadow: var(--glass-shadow);
  border-radius: 10px;
  padding: 10px 0;
  list-style: none;
  min-width: 180px;
  top: calc(100% + 5px);
  left: 0;
  z-index: 10;
}

/* Puente invisible para que el menú no desaparezca al mover el ratón hacia abajo */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 8px 20px;
  display: block;
  color: var(--text-color);
  text-decoration: none;
  font-weight: normal;
  transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

/* Buscador y Hamburguesa */
.search-and-hamburger {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  width: auto;
  margin: 0;
}

.search-icon {
  position: relative;
  cursor: pointer;
  left: auto;
  color: var(--text-color);
  font-size: 1.2rem;
  pointer-events: auto;
  transition: color 0.3s ease;
}

.search-icon:hover {
  color: var(--primary-color);
}

.search-input {
  width: 0;
  padding: 10px 10px 10px 35px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  color: var(--dark-text);
  font-size: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  margin-right: 5px;
  visibility: hidden;
  opacity: 0;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
  /* Sombra interna */
}

.search-input.active {
  width: 200px;
  padding: 10px 10px 10px 35px;
  margin-left: 10px;
  visibility: visible;
  opacity: 1;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.7);
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(231, 114, 12, 0.2);
}

.hamburger {
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   BLOQUE DE CONTACTO LATERAL
   ========================================= */
.contact-block {
  position: fixed;
  top: 0;
  right: -300px;
  /*O-100%enmóvil,dependiendodetumediaquery*/width: 300px;
  height: 500px;
  border-radius: 0 0 0 20px;
  /*---FIXDELFONDO(Másopacoparalegibilidad)---*/background-color: #ffffffd6 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /*Bordesysombraparaquesedespeguedelfondo*/border-left: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  padding: 40px 20px;
  box-sizing: border-box;
  transition: right 0.3s ease-in-out;
  z-index: 2000;
  /*Aseguraqueestéporencimadetodo*/display: flex;
  flex-direction: column;
  gap: 15px;
  -webkit-border-radius: 0 0 0 20px;
  -moz-border-radius: 0 0 0 20px;
  -ms-border-radius: 0 0 0 20px;
  -o-border-radius: 0 0 0 20px;
}

.contact-block.active {
  right: 0;
  background-color: #ffffffe5 !important;
}

.contact-block h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark-text);
  margin-bottom: 10px;
  margin-top: 20px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.contact-block p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.contact-block .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.contact-block .social-icons i {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.contact-block .social-icons i:hover {
  color: var(--primary-color);
}

.close-contact {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-contact:hover {
  color: var(--primary-color);
}

/* =========================================
   CONTENIDO PRINCIPAL Y CONTENEDORES GLASS
   ========================================= */
main {
  padding-top: 50px;
  background: transparent;
}

/* Clases unificadas para contenedores Glasmorfismo grandes */
.hero-content,
.testimonial-section,
.about-content,
.bread-selection-content,
.promo-item,
.stat-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border-light);
  border-left: 1px solid var(--glass-border-light);
  border-right: 1px solid var(--glass-border-dark);
  border-bottom: 1px solid var(--glass-border-dark);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease-in-out;
}

/* Tipografía de accesibilidad para fondos difuminados */
.hero-content h1,
.about-content h2,
.section-title,
.section-title-large {
  color: var(--dark-text);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.hero-content p,
.about-content p,
.bread-selection-content p,
.promo-content p {
  color: #444;
  margin-bottom: 20px;
}

/* HERO SECTION */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
}

.hero-content {
  flex: 1;
  padding: 40px;
}

.hero-content h4 {
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-buttons button {
  padding: 12px 25px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.discover-more {
  background: rgba(231, 114, 12, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(231, 114, 12, 0.5);
  border-radius: 10px;
  color: var(--dark-text);
  font-weight: bold;
}

.discover-more:hover {
  background: rgba(231, 114, 12, 0.6);
  color: #fff;
}

.contact-us {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.contact-us:hover {
  background: var(--primary-color);
  color: #fff;
}

.hero-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-image-overlay {
  width: 100%;
  height: 590px;
  background-image: url(../img/img_3.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
}

.bottom-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.bottom-images #img:nth-child(1) {
  background-image: url(../img/img_1.webp);
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 200px;
  border-radius: 20px;
}

.bottom-images #img:nth-child(2) {
  background-image: url(../img/img_2.webp);
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 200px;
  border-radius: 20px;
}

.bottom-images #img:nth-child(3) {
  background-image: url(../img/img_4.webp);
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 200px;
  border-radius: 20px;
}


/* TESTIMONIALS */
.since-info {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  padding: 20px 0px;
  background-color: transparent;
}

.testimonial-section {
  max-width: 800px;
  margin: 80px auto 50px auto;
  padding: 40px;
  text-align: center;
}

.testimonial-stars {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.testimonial-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--dark-text);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 30px;
}

.testimonial-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.testimonial-pagination .dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-pagination .dot.active {
  background-color: var(--primary-color);
}

/* ABOUT US */
.about-us-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  overflow: hidden;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0px;
}

.img-container {
  width: 100%;
  height: 500px;
  background-image: url(../img/img_5.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}

.about-content {
  flex: 1;
  padding: 40px;
}

.about-content .section-tag {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: bold;
}

.about-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 25px;
  margin-top: 25px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-content .quote {
  font-style: italic;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 15px;
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
}

.about-content .discover-more {
  padding: 12px 25px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  background: rgba(231, 114, 12, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(231, 114, 12, 0.5);
  border-radius: 10px;
  color: var(--dark-text);
  font-weight: bold;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-content .discover-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  z-index: -1;
}

.about-content .discover-more:hover::before {
  transform: translateX(0);
}


/* =========================================
   ELEMENTOS INTERACTIVOS (HOVER EFFECTS)
   ========================================= */
.feature-item,
.menu-item,
.offering-item,
.process-item {
  background: rgba(255, 255, 255, 0.35);
  /* Base más transparente */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border-light);
  border-left: 1px solid var(--glass-border-light);
  border-right: 1px solid var(--glass-border-dark);
  border-bottom: 1px solid var(--glass-border-dark);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.feature-item:hover,
.menu-item:hover,
.offering-item:hover,
.process-item:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-hover);
  box-shadow: 0 12px 30px rgba(231, 114, 12, 0.15);
  /* Sombra teñida */
}

/* FEATURES SECTION */
.features-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.feature-item {
  flex: 1;
  min-width: 220px;
  max-width: 25%;
  text-align: center;
  padding: 30px 20px;
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-item h3 {
  font-size: 1.2rem;
  color: var(--dark-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* MENU SECTION */
.menu-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.section-tag-small {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 30px;
  font-weight: bold;
  display: block;
}

.section-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 50px;
}

.menu-list-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.menu-column {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: left;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 15px;
  position: relative;
}

.item-details h3 {
  font-size: 1.2rem;
  color: var(--dark-text);
  margin-bottom: 5px;
}

.item-details p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

.item-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 20px;
}

/* MENU GALLERY */
.menu-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.margin-top {
  width: 100%;
  height: 50px;
}

.margin-bottom {
  width: 100%;
  height: 50px;
}

.menu-gallery .img-gallery {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-gallery .img-gallery:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.menu-gallery article:nth-child(1) .img-gallery {
  background-image: url(../img/img_6.webp);
  background-size: cover;
  background-position: center;
}

.menu-gallery article:nth-child(2) .img-gallery {
  background-image: url(../img/img_7.webp);
  background-size: cover;
  background-position: center;
}

.menu-gallery article:nth-child(3) .img-gallery {
  background-image: url(../img/img_8.webp);
  background-size: cover;
  background-position: center;
}

.menu-gallery article:nth-child(4) .img-gallery {
  background-image: url(../img/img_9.webp);
  background-size: cover;
  background-position: center;
}

/* BREAD SELECTION */
.bread-selection-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.bread-selection-content {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
}

.section-title-large {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

.bread-selection-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.read-more-button {
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.read-more-button:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.offerings-grid {
  flex: 1.5;
  min-width: 500px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.offering-item {
  padding: 30px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.offering-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(230, 126, 34, 0.1);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.4s ease-out;
  z-index: 0;
}

.offering-item:hover::before {
  transform: scale(3);
}

.offering-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
}

.offering-item h3 {
  font-size: 1.4rem;
  color: var(--dark-text);
  margin-bottom: 10px;
  z-index: 1;
  position: relative;
}

.offering-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 25px;
  z-index: 1;
  position: relative;
}

.order-now-button {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  border: 1px solid rgba(231, 114, 12, 0.5);
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  z-index: 1;
  position: relative;
}

.order-now-button:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* HOW WE WORK SECTION */
.how-we-work-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 20px;
  text-align: center;
}

.work-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.process-item {
  overflow: hidden;
  text-align: center;
}

.process-item .representative-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.process-item:hover .representative-img {
  transform: scale(1.05);
}

.process-item h3 {
  font-size: 1.25rem;
  color: var(--dark-text);
  margin: 20px 0 10px;
}

.process-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  padding-bottom: 20px;
  padding-left: 15px;
  padding-right: 15px;
}

.work-process-grid article:nth-child(1) .process-item .representative-img {
  background-image: url(../img/img_our_work_1.webp);
  background-size: cover;
  background-position: center;
}

.work-process-grid article:nth-child(2) .process-item .representative-img {
  background-image: url(../img/img_our_work_2.webp);
  background-size: cover;
  background-position: center;
}

.work-process-grid article:nth-child(3) .process-item .representative-img {
  background-image: url(../img/img_our_work_3.webp);
  background-size: cover;
  background-position: center;
}

.work-process-grid article:nth-child(4) .process-item .representative-img {
  background-image: url(../img/img_our_work_4.webp);
  background-size: cover;
  background-position: center;
}

/* VIDEO HERO SECTION */
.video-hero {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
}

.video-hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  padding: 40px 60px;
  background: rgba(255, 255, 255, 0.054);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
}

.video-overlay .section-tag-small {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1rem;
}

.video-overlay h1 {
  font-size: 3.8rem;
  line-height: 1.2;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.play-button-container {
  width: 60px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  background-color: rgba(255, 255, 255, 0.1);
}

.play-button-container:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: var(--primary-color);
}

.play-button-container i {
  font-size: 1.8rem;
  color: #fff;
  transition: color 0.3s ease;
}

.play-button-container:hover i {
  color: var(--primary-color);
}

/* PROMO SECTIONS */
.promo-sections-container {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.promo-item {
  overflow: hidden;
  display: flex;
  position: relative;
}

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

.promo-image-bg {
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.promo-item:hover .promo-image-bg {
  transform: scale(1.05);
}

.promo-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.promo-content h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--dark-text);
  margin-bottom: 15px;
}

.large-promo {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.large-promo .promo-image-bg {
  width: 100%;
  height: 40%;
  min-height: 250px;
}

.large-promo .promo-content {
  flex: 1;
}

.small-promo {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.small-promo .promo-image-bg {
  width: 100%;
  height: 40%;
}

.small-promo .promo-content {
  flex: 1;
  padding-top: 25px;
}

.small-promo .promo-content h2 {
  font-size: 1.6rem;
  margin-bottom: 25px;
}

/* STATS SECTION */
.stats-section {
  width: 100%;
  margin: 80px auto 100px auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  color: var(--dark-text);
}

.stat-item {
  text-align: center;
  padding: 30px;
}

.stat-item h3 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--dark-text);
}

.stat-item p {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--primary-color);
}

/* NEWSLETTER SECTION */
.newsletter-section {
  position: relative;
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}

.newsletter-overlay {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  padding: 60px 40px;
  max-width: 800px;
  width: 90%;
  color: #fff;
}

.newsletter-overlay .section-tag-small {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.newsletter-overlay h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.newsletter-overlay p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  color: var(--dark-text);
  font-size: 1rem;
  width: 300px;
  max-width: 100%;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.subscribe-form input[type="email"]::placeholder {
  color: rgba(50, 50, 50, 0.6);
}

.subscribe-form input[type="email"]:focus {
  background: rgba(255, 255, 255, 0.8);
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(231, 114, 12, 0.2);
}

.subscribe-button {
  padding: 15px 30px;
  background: rgba(231, 114, 12, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  border: 1px solid var(--primary-color);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.subscribe-button:hover {
  background-color: var(--primary-color);
}

/* =========================================
   FOOTER (Oscuro para contraste)
   ========================================= */
footer {
  background: rgba(34, 34, 34, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f4f4;
  padding: 60px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
  text-align: left;
}

.footer-column h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 25px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 25px;
}

.social-icons a {
  color: #fff;
  font-size: 1.2rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
}

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

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-news .news-date {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   TABLET & MOBILE MENU ADJUSTMENTS
   ========================================= */
@media (max-width: 850px) {

  .contact-block {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #ffffff !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    overflow-y: auto;
    align-items: center;
    z-index: 1001;
  }
 
  nav .nav-links {
    background: var(--light-gray);
    display: none; /* Oculta menú de escritorio */
    z-index: 1000;
  }
  
  #mobileMenu {
    width: 100%;
    list-style: none;
    padding: 0;
    background: transparent;
    margin: 20px 0;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
  }
  
  #mobileMenu li {
    width: 100%;
    text-align: center;
  }
  
  #mobileMenu li a {
    font-size: 1.2rem;
    padding: 15px 0;
    display: block;
    color: var(--dark-text);
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  
  #mobileMenu .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 0 20px;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  #mobileMenu .dropdown-menu li a {
    padding: 10px 0;
    border: none;
    font-size: 1rem;
  }
}

/* =========================================
   MEDIA QUERIES (Responsividad)
   ========================================= */
@media (max-width: 430px) {
  /* Arreglo del Header para que no se salga de la pantalla */
  header {
    width: 100%; /* MUY IMPORTANTE: Asegúrate de que esté al 100%, no al 150% */
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    /* Redondeamos solo abajo para que encaje perfecto arriba */
    border-radius: 0 0 16px 16px; 
  }

  .logo {
    font-size: 1.4rem;
    align-items: center;
    /* Centrado en móvil */
  }

  .logo-subtitle {
    font-size: 0.65rem;
  }

  nav {
    margin-left: 0;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    padding-top: 10px;
    padding-left: 20px;
    /* Ajustado */
  }

  nav .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-right: 0;
    width: 100%;
    display: none;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 10px 10px;
    font-size: 1rem;
  }

  .search-and-hamburger {
    width: 100%;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
  }

  .search-container {
    width: 100%;
    justify-content: flex-end;
  }

  .search-input.active {
    width: 100%;
    margin-left: 0;
  }

  .hamburger {
    display: block;
    margin-right: 20px;
  }

  #closeContact {
    margin-left: 0;
  }

  /* Arreglo del panel lateral para que se esconda de verdad */
  .contact-block {
    position: fixed;
    top: 0;
    /* Usa -100% en lugar de píxeles fijos para empujarlo fuera de la pantalla por completo */
    right: -100%; 
    width: 85%; /* Ocupa el 85% de la pantalla móvil cuando se abre */
    max-width: 320px; /* Límite máximo para que no sea gigante */
    height: 100vh; /* Ocupa todo el alto */
    transition: right 0.3s ease-in-out;
    z-index: 2000;
  }

  /* Clase que se activa con Javascript cuando haces clic en la hamburguesa */
  .contact-block.active {
    right: 0;
  }

  /* Aseguramos que el botón de cerrar esté bien posicionado dentro del panel */
  .close-contact {
    top: 20px;
    right: 20px;
  }

  main {
    padding-top: 30px;
    margin-left: 0;
    /* Removido margin-left para móvil */
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 20px 10px;
    width: 100%;
    /* Ajustado */
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero-image {
    align-items: center;
    width: 100%;
  }

  .hero-image-overlay {
    height: 250px;
  }

  .bottom-images {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .bottom-images #img:nth-child(1),
  .bottom-images #img:nth-child(2),
  .bottom-images #img:nth-child(3) {
    width: 90%;
    max-width: 350px;
    height: 180px;
  }

  .testimonial-text {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .testimonial-author {
    font-size: 0.9rem;
  }

  .testimonial-stars {
    font-size: 1rem;
  }

  /* --- Ajustes Responsivos Adicionales --- */
  .about-us-section {
    flex-direction: column;
    gap: 30px;
    margin: 40px auto;
    padding: 0 15px;
  }

  .about-content {
    padding: 20px 0;
  }

  .menu-column {
    min-width: 100%;
  }

  .bread-selection-section {
    margin: 40px auto;
  }

  .bread-selection-content {
    min-width: 100%;
    padding: 20px 0;
  }

  .offerings-grid {
    min-width: 100%;
    grid-template-columns: 1fr;
  }

  .promo-sections-container {
    grid-template-columns: 1fr;
    margin: 40px auto;
  }
}