body {
  font-family: "Segoe UI", sans-serif;
}

/* Menú horizontal */
.menu-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #1f4037, #99f2c8);
  padding: 1rem 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu-horizontal .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.menu-horizontal nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu-horizontal nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.menu-horizontal nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===============================
MODAL DE IMÁGENES
================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
}

/* Botón cerrar */
.cerrar {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
}

.cerrar:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* Miniaturas */
.miniatura {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.miniatura:hover {
  transform: scale(1.05);
}

/* Texto "Valoración X de 5" más pequeño y elegante */
.valoracion-mini {
  font-size: 0.75rem;
  /* más pequeño */
  font-weight: 500;
  color: #6b7280;
  /* gris Amazon / Google */
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

/* Estrellas dentro de la valoración */
.valoracion-mini .estrella {
  font-size: 1rem;
  /* estrellas un poco más grandes que el texto */
  margin-left: 4px;
}

/* Resumen tipo Amazon / Google */
.resumen-valoracion {
  font-size: 0.78rem;
  color: #4b5563;
  margin-top: 2px;
  margin-bottom: 6px;
  line-height: 1.35;
  font-style: italic;
  text-align: left;
}

@media (max-width: 480px) {
  .resumen-valoracion {
    font-size: 0.74rem;
  }
}

.texto-comentario {
  margin-top: 3px;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}

.sede-nombre {
  font-size: 0.72rem;
  color: #6b7280;
  /* gris elegante */
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.comentario-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.comentario-user {
  max-width: 70%;
}

/* ================= HEADER GLOBAL ================= */

/* Sidebar */

.sidebar.active {
  left: 0;
}

.sidebar a {
  display: block;
  padding: 16px 18px;
  color: #fff;
  text-decoration: none;
}

.main-footer {
  background: #000;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer p {
  opacity: 0.7;
  margin: 5px 0;
}

/* ================= RESET ================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* ================= SIDEBAR GLOBAL ================= */

.sidebar.active {
  left: 0;
}

.sidebar a {
  display: block;
  padding: 16px 18px;
  color: #fff;
  text-decoration: none;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
}

/* ================= REDES ================= */

/* ================= FOOTER ================= */

.main-footer {
  background: #000;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer p {
  opacity: 0.7;
  margin: 5px 0;
}

/* TODO EL INDEX.PHP/*

/* ================= HEADER GLOBAL FIX ================= */

/* Sidebar */

.sidebar.active {
  left: 0;
}

.sidebar a {
  display: block;
  padding: 16px 18px;
  color: #fff !important; /* 🔥 fuerza blanco */
  text-decoration: none !important; /* 🔥 quita subrayado */
  font-weight: 500;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Botón cerrar */

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* ============ PARA EL MENU HAMBURGUESA Y REDES ===============*/

/*Que el menu siempre este Visible */

body.scrolled .toggle-btn .bar {
  background: #fff;
}

.sidebar.active {
  left: 0;
}

.sidebar a {
  display: block;
  padding: 16px 18px;
  color: #fff;
  text-decoration: none;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
}

/*Estilos de INDEX.PHP*/

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ================= HERO VIDEO ================= */

.video-background {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000;
  overflow: hidden;
  /*z-index: 0;*/
}

.video-background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.video-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

/* ================= HERO TEXT ================= */

.overlay-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-copy {
  margin-bottom: 60px;
}

.hero-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.9;
  font-style: bold;
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 76px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: none;
}

.menu-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu-buttons a {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 28px;
  font-style: bold;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

/*.menu-buttons a {
padding: 12px 24px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
text-decoration: none;
font-weight: 600;
transition: 0.3s;

font-family: "Playfair Display", serif;
font-size: 22px;
letter-spacing: 1px;
}*/

/*.menu-buttons a {
background: transparent;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.6);
border-radius: 0;
padding: 8px 0;
}*/

.menu-buttons a:hover {
  background: #fff;
  color: #000;
}

/* ================= RESTAURANTES SECTION ================= */

#restaurantes {
  background: #111;
  padding: 120px 20px;
}

#restaurantes h2:not(.section-title) {
  font-size: 48px;
  font-size: 48px;
  margin-bottom: 60px;
  font-weight: 300;
}

.restaurant-card {
  padding: 20px;
  transition: 0.4s;
}

.restaurant-card img {
  border-radius: 12px;
  transition: 0.4s;
}

.restaurant-card:hover img {
  transform: scale(1.05);
}

.restaurant-card h4 {
  margin-top: 15px;
}

.restaurant-card p {
  opacity: 0.8;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }
}
/* ================= SCROLL VOLTERETA STYLE ================= */

.scroll-link {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  opacity: 1;
  transition: all 0.4s ease;
  font-weight: 500; /* 🔥 más presencia */
}

/* Línea fina elegante */
.scroll-link::after {
  content: "";
  display: block;
  width: 200px;
  height: 2px;
  background: #fff;
  margin: 8px auto 0;
  transition: width 0.4s ease;
}

/* Hover */
.scroll-link:hover {
  letter-spacing: 2px;
  opacity: 1;
}

.scroll-link:hover::after {
  width: 90px;
}

/*===== EFECTO DESVANECIDO ======*/

.video-background::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #111);
  z-index: 2;
  pointer-events: none;
}

/* ===== Ajuste móvil HERO ===== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
    line-height: 1.1;
  }

  .hero-copy {
    margin-bottom: 40px;
  }

  .menu-buttons {
    gap: 12px;
  }

  .menu-buttons a {
    width: 85%; /* 🔥 más ancho */
    font-size: 24px; /* 🔥 texto más grande */
    padding: 16px 0; /* 🔥 más altos */
    border-radius: 50px;
  }

  .scroll-link {
    bottom: 30px; /* 🔥 lo bajamos en móvil */
    font-size: 22px;
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); /* 🔥 contraste fuerte */
  }

  .scroll-link::after {
    width: 80px; /* línea un poco más larga */
    background: #ffffff;
  }

  .sidebar {
    transition: left 0.3s ease;
  }
  .social-icons a {
    font-size: 34px;
    /*padding: 1px;*/
  }
  .social-icons {
    gap: 20px; /* más separación */
  }
}

/* ===== INTRO SECCIÓN RESTAURANTES ===== */

.section-intro {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px; /* más pequeño que hero */
  letter-spacing: 2px;
  color: #7fae8c; /* verde elegante tipo Voltereta */
  margin-bottom: 20px;
  opacity: 0.95;
}
.section-intro::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #7fae8c;
  margin: 12px auto 0;
  opacity: 0.6;
}

/* ===== TÍTULO SECCIÓN RESTAURANTES ===== */

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px; /* más pequeño que el hero principal */
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #7fae8c;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 42px;
    line-height: 1.15;
  }
}

/* ===== DESVANECIDO HERO NOSOTROS ===== */

.hero-nosotros::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  /*background: linear-gradient(to bottom, transparent, #111);*/
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #111 80%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-fade::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #111);
  z-index: 2;
  pointer-events: none;
}

/* =========================
BOTÓN FLOTANTE INICIO
========================= */

/* =========================
BOTÓN FLOTANTE INICIO
========================= */

.btn-inicio-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #8b0000;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  z-index: 9999;

  /* oculto por defecto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* cuando está visible */
.btn-inicio-float.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-inicio-float:hover {
  background-color: #5a0000;
  transform: translateY(-4px);
  color: #fff;
}

@media (max-width: 768px) {
  .btn-inicio-float {
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    font-size: 14px;
  }
}

/* ================= STACK VOLTERETA ================= */

/*.stack-section {
background: #eae6df;
padding: 140px 8%;
}*/

.stack-section {
  position: relative;
  padding: 80px 8%;
  overflow: hidden;
  background: url("../galeria/fondo-nosotros1.jpg") center center / cover no-repeat;
}

/*.stack-section::before {
content: "";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.40); /* oscurece la imagen
z-index: 1;
}*/

.stack-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

/* ===== DESVANECIDO FINAL STACK SECTION ===== */

.stack-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 60%, #111 100%);

  pointer-events: none;
  z-index: 2;
}

.stack-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 100px;
  position: relative;
  z-index: 2; /* encima del fondo */
}

/* IMÁGENES MÁS PEQUEÑAS */
.image-stack {
  position: relative;
  width: 380px; /* 👈 antes 500px */
  height: 500px; /* 👈 antes 620px */
  flex-shrink: 0;
  z-index: 3; /* encima del fondo */
}

.card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.25);

  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* Cuando aparece */
.card.visible {
  opacity: 1;
  /*transform: translateY(0) scale(1);*/
}

/* Rotaciones tipo cartas */
.card:nth-child(1) {
  transform: rotate(-8deg);
}
.card:nth-child(2) {
  transform: rotate(4deg);
  left: 15px;
  top: 15px;
}
.card:nth-child(3) {
  transform: rotate(-3deg);
  left: 30px;
  top: 30px;
}
.card:nth-child(4) {
  transform: rotate(6deg);
  left: 45px;
  top: 45px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXTO */
.stack-text {
  max-width: 500px;
  position: relative;
  z-index: 4; /* encima de todo */
}

.stack-text h2 {
  font-size: 58px;
  font-weight: 300;
  color: #556b4f;
  margin-bottom: 25px;
}

.stack-text p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1100px) {
  .stack-container {
    flex-direction: column;
    text-align: center;
  }

  .image-stack {
    margin-bottom: 60px;
  }
}

@media (min-width: 1200px) {
  .image-stack {
    width: 450px;
    height: 600px;
  }
}

/*📱 Más pequeñas en móvil*/
@media (max-width: 767px) {
  .image-stack {
    width: 280px;
    height: 380px;
  }
}

/* ================= HEADER ================= */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20000; /* más alto que cualquier overlay */
}

/* Botón hamburguesa */
.toggle-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 30000;
}

.toggle-btn .bar {
  display: block; /* 🔥 esto es clave */
  width: 30px;
  height: 3px;
  background: #fff;
  margin: 6px 0;
  border-radius: 3px;
}

/* Redes */
.social-icons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 14px;
  z-index: 11000;
}

.social-icons a {
  color: #fff;
  font-size: 30px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: #111;
  padding-top: 80px;
  transition: left 0.3s ease;
  z-index: 12000;
}

.sidebar.active {
  left: 0;
}

.sidebar a {
  display: block;
  padding: 16px 20px;
  color: #fff;
  text-decoration: none;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.stack-text .hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px; /* un poco más pequeño que el hero principal */
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 1px;
  color: #7fae8c; /* verde oscuro elegante */
  margin-bottom: 25px;
}

.stack-text p {
  font-size: 22px; /* más grande que antes */
  line-height: 1.5;
  color: #ffffff; /* blanco total */
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .stack-text .hero-title {
    font-size: 48px;
  }

  .stack-text p {
    font-size: 18px;
  }
}

/* ===== TITULO SECCIÓN HISTORIA ===== */

.hero-title-section {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 300;
  color: #7fae8c; /* verde oscuro elegante */
  margin-bottom: 40px;
}

/* ===== TEXTO HISTORIA ===== */

.historia-text {
  max-width: 900px;
  margin: auto;
  font-size: 22px;
  line-height: 1.5;
  color: #ffffff;
  opacity: 0.95;
}

/* ===== MÓVIL ===== */

@media (max-width: 768px) {
  .hero-title-section {
    font-size: 48px;
  }

  .historia-text {
    font-size: 16px;
    line-height: 1.5;
  }

  #historia p {
    font-size: 16px;
    line-height: 1.54;
    padding: 0 10px;
    max-width: 95%;
    /*text-align: center;*/
  }

  #historia h1 {
    font-size: 42px;
    margin-top: 0 !important;
  }

  #historia {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 0px !important;
    padding-bottom: 60px !important;
  }

  #historia .container {
    padding-left: 8px !important;
    padding-right: 8x !important;
  }

  .stack-section {
    padding-top: 20px !important; /* antes 80px */
    padding-bottom: 60px;
  }

  .stack-container {
    gap: 40px; /* reduce espacio entre imagen y texto */
  }

  .stack-text {
    margin-top: -20px; /* opcional: lo sube un poco más */
  }
}

#historia p {
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 22px;
  line-height: 1.4;
  color: #fff;
  text-align: left; /* 🔥 justificado */
  text-justify: inter-word;
  /* 👇 Esto reduce los huecos raros */
  word-break: normal;
  margin-bottom: 18px;
  hyphens: none; /* 🔥 evita que parta palabras */
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  /*text-align: center; /* 👈 centrado real */
}

#historia {
  padding: 110px 30px;
  padding-left: 20px;
  padding-right: 20px;
}

#historia h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 300;
  color: #7fae8c; /* verde elegante */
  text-align: center; /* 🔥 centrado */
  margin-bottom: 50px;
}

/* ===== DIFUMINADO HISTORIA ===== */

#historia {
  position: relative;
}

#historia::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 60%, #000 100%);

  pointer-events: none;
}

@media (min-width: 1200px) {
  #historia p {
    text-align: left;
  }
}

/* ===== UNIFICAR TÍTULOS NOSOTROS ===== */

.stack-text .hero-title,
#historia h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  color: #7fae8c;
}

/* Escritorio */
.stack-text .hero-title,
#historia h1 {
  font-size: 64px;
}

/* Móvil */
@media (max-width: 768px) {
  .stack-text .hero-title,
  #historia h1 {
    font-size: 48px;
  }
}

/* ===== HISTORIA MÁS PEQUEÑA EN MÓVIL ===== */
@media (max-width: 767px) {
  #historia h1 {
    font-size: 34px; /* más equilibrado */
    line-height: 1.2;
    margin-bottom: 30px;
  }

  #historia p {
    font-size: 18px;
    line-height: 1.5;
  }
}

/* ================= TEAM SECTION ================= */

.team-section {
  padding: 50px 30px 110px 30px; /* 🔥 menos arriba, igual abajo */
  background: #000;
  position: relative;
}

.team-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 100px;
}

/* ===== TEXTO ===== */

.team-text {
  max-width: 700px;
}

.team-text .hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  margin-bottom: 50px;
  font-weight: 300;
  color: #7fae8c;
}

.team-text p {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 18px;
  color: #fff;
  opacity: 0.9;
}

/* ===== IMÁGENES ===== */

.team-images {
  position: relative;
  width: 480px;
  height: 600px;
}

/* Imagen principal */
.team-img.main {
  position: absolute;
  width: 100%;
  height: 100%;
  /*border-radius: 20px;*/
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  z-index: 1;
  transform: rotate(6deg) scale(1.02);
  transform-origin: center center;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 1100px) {
  .team-container {
    flex-direction: column;
    text-align: left;
  }

  .team-section {
    padding-top: 20px; /* antes 50px */
  }
  .team-images {
    margin-top: 0px;
  }

  .team-text .hero-title {
    font-size: 48px;
  }

  .team-text p {
    font-size: 18px;
  }
}

.team-img {
  cursor: pointer;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* ===== EFECTO MEJORADO EN MÓVIL ===== */
@media (max-width: 768px) {
  .team-images {
    width: 300px; /* antes 480px */
    height: 400px; /* proporción más compacta */
    margin: 0 auto; /* centrada */
  }

  .team-img.main {
    transform: rotate(6deg) scale(1);
    border-radius: 0;
  }
}

/* ===== DIFUMINADO FINAL TEAM SECTION ===== */

.team-section {
  position: relative;
}

.team-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 220px;

  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 60%, #111 100%);

  pointer-events: none;
}

/* ===== UNIFICAR TÍTULOS EN MÓVIL ===== */
@media (max-width: 768px) {
  .hero-title,
  .hero-title-section,
  .team-text .hero-title,
  .stack-text .hero-title,
  #historia h1 {
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: 0.5px;
  }
}

/* ===== EXPERIENCIA (MISMO ESTILO QUE EQUIPO) ===== */

.experiencia-section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 300;
  color: #7fae8c;
  margin-bottom: 50px;
}

.experiencia-section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 22px;
  line-height: 1.4;
  color: #ffffff;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .experiencia-section h2 {
    font-size: 42px;
    line-height: 1.15;
  }

  .experiencia-section p {
    font-size: 18px;
    line-height: 1.5;
  }
}

/*================= FIN/*

/* ===== AJUSTE HAMBURGUESA SOLO EN PC ===== */
@media (min-width: 992px) {
  .toggle-btn {
    width: 48px;
    height: 48px;
  }

  .toggle-btn .bar {
    width: 42px;
    height: 5px;
  }
  .sidebar a {
    font-size: 22px;
  }
}

/*Fuente mas grande para PC*/
@media (min-width: 1200px) {
  #restaurantes .section-intro {
    font-size: 48px;
  }

  #restaurantes .section-title {
    font-size: 72px;
    line-height: 1.05;
  }

  .menu-buttons a {
    font-size: 38px;
    padding: 18px 44px;
    letter-spacing: 1.5px;
  }
}

/* ===== BOTONES HERO MÁS GRANDES EN PC ===== */
@media (min-width: 992px) {
  .menu-buttons a {
    font-size: 34px;
    padding: 16px 36px;
    border-width: 2px;
  }
}

/*MAS TAMAÑO AL TEXTO DE LAS OPCIONES DEL MENU*/

@media (max-width: 768px) {
  .sidebar a {
    /*font-family: "Cormorant Garamond", serif;*/
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.3;
    padding: 8px 20px; /* antes 16px */
  }
}
