/* ==========================================================================
   MAHA PRASADA - RESTAURANTE VEGANO
   Hoja de Estilos Personalizada (Custom CSS)
   ========================================================================== */

/* --- Importación de Tipografías (Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* --- Variables de Diseño (Design Tokens) --- */
:root {
  /* Paleta de Colores */
  --primary-color: #1e3f20;      /* Verde bosque profundo */
  --primary-light: #2d5530;      /* Verde bosque para hovers */
  --secondary-color: #708d72;    /* Verde salvia */
  --secondary-bg: #f4f0e6;       /* Crema cálido/beige */
  --accent-color: #d4815b;       /* Terracota/Arcilla */
  --accent-hover: #be6f4a;       /* Terracota para hovers */
  --text-dark: #222925;          /* Carbón orgánico */
  --text-muted: #5e6862;         /* Gris verdoso atenuado */
  --bg-light: #faf8f5;           /* Fondo ultra claro crema */
  --white: #ffffff;
  
  /* Fuentes */
  --font-headings: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Sombras (Shadows) */
  --shadow-sm: 0 4px 6px rgba(30, 63, 32, 0.04);
  --shadow-md: 0 10px 25px rgba(30, 63, 32, 0.08);
  --shadow-lg: 0 20px 40px rgba(30, 63, 32, 0.12);
  
  /* Transiciones */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-quick: all 0.2s ease;
}

/* --- Estilos Generales & Reset --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset para el navbar fixed */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary-color);
}

p {
  line-height: 1.7;
  color: var(--text-muted);
}

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

/* --- Botones Premium --- */
.btn-custom-primary {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.btn-custom-secondary {
  background-color: transparent;
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: var(--transition-smooth);
}

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

.btn-custom-accent {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--accent-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-custom-accent:hover {
  background-color: transparent;
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- Navbar con efecto Glassmorphism --- */
.navbar-custom {
  background-color: transparent;
  padding: 18px 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-custom.navbar-scrolled {
  background-color: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(30, 63, 32, 0.08);
}

.navbar-brand-custom {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand-custom i {
  color: var(--secondary-color);
  font-size: 1.8rem;
}

.nav-link-custom {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 12px;
  position: relative;
  opacity: 0.9;
}

.nav-link-custom:hover, 
.nav-link-custom.active {
  color: var(--primary-color) !important;
  opacity: 1;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-smooth);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 100%;
}

.navbar-toggler-custom {
  border: none;
  padding: 8px;
  color: var(--primary-color);
}

.navbar-toggler-custom:focus {
  box-shadow: none;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 100px;
  background: radial-gradient(circle at 10% 20%, rgba(244, 240, 230, 0.6) 0%, rgba(250, 248, 245, 1) 90%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Decoraciones Orgánicas de Fondo */
.hero-deco-1 {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background-color: rgba(112, 141, 114, 0.05);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.hero-deco-2 {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background-color: rgba(212, 129, 91, 0.04);
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  color: var(--secondary-color);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-top: 15px;
  margin-bottom: 25px;
  font-weight: 800;
}

.hero-title span {
  color: var(--secondary-color);
  font-style: italic;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 35px;
  max-width: 550px;
}

/* Collage de Imágenes del Hero */
.hero-collage {
  position: relative;
  z-index: 2;
  height: 500px;
}

.hero-img-wrapper {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.hero-img-wrapper:hover {
  transform: scale(1.03) translateY(-5px);
  z-index: 10 !important;
}

.hero-img-1 {
  width: 70%;
  height: 380px;
  top: 0;
  left: 0;
  z-index: 2;
}

.hero-img-2 {
  width: 50%;
  height: 260px;
  bottom: 0;
  right: 0;
  z-index: 3;
  border: 8px solid var(--bg-light);
}

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

.hero-badge {
  position: absolute;
  top: 40%;
  right: 40%;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 15px;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.2;
  box-shadow: var(--shadow-md);
  z-index: 4;
  animation: float 4s ease-in-out infinite;
}

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

/* --- Sección Sobre Nosotros --- */
.about-section {
  padding: 100px 0;
  background-color: var(--white);
}

.section-subtitle {
  color: var(--secondary-color);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-title-center {
  font-size: 2.5rem;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title-center::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

.about-img-collage {
  position: relative;
  height: 480px;
}

.about-img-wrapper {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-img-1 {
  width: 65%;
  height: 400px;
  left: 0;
  top: 0;
  z-index: 1;
}

.about-img-2 {
  width: 55%;
  height: 280px;
  right: 0;
  bottom: 0;
  z-index: 2;
  border: 6px solid var(--white);
}

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

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

.about-philosophy-box {
  background-color: var(--secondary-bg);
  border-left: 4px solid var(--primary-color);
  padding: 20px 25px;
  border-radius: 0 16px 16px 0;
  margin-top: 30px;
}

.about-philosophy-box p {
  margin: 0;
  font-style: italic;
  color: var(--primary-color);
  font-weight: 500;
}

/* --- Sección Especialidades (Menú) --- */
.specs-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.spec-card {
  background-color: var(--white);
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  height: 100%;
}

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

.spec-img-container {
  height: 250px;
  position: relative;
  overflow: hidden;
}

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

.spec-card:hover .spec-img-container img {
  transform: scale(1.08);
}

.spec-category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(5px);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.spec-diet-tags {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  gap: 6px;
}

.diet-tag {
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.spec-body {
  padding: 30px 25px;
}

.spec-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
  transition: var(--transition-quick);
}

.spec-card:hover .spec-title {
  color: var(--secondary-color);
}

.spec-desc {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Sección Galería --- */
.gallery-section {
  padding: 100px 0;
  background-color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 63, 32, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
  color: var(--white);
  padding: 20px;
  text-align: center;
}

.gallery-overlay i {
  font-size: 2rem;
  margin-bottom: 10px;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

.gallery-overlay p {
  color: var(--secondary-bg);
  font-family: var(--font-headings);
  font-size: 1.1rem;
  margin: 0;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i,
.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

/* Modificar grid para móvil/tablet */
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Sección Beneficios --- */
.benefits-section {
  padding: 100px 0;
  background-color: var(--secondary-bg);
  position: relative;
}

.benefit-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition-smooth);
  border: 1px solid rgba(112, 141, 114, 0.1);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.benefit-icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(112, 141, 114, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--primary-color);
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon-box {
  background-color: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.benefit-desc {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Sección Contacto y Ubicación --- */
.contact-section {
  padding: 100px 0;
  background-color: var(--white);
}

.contact-info-card {
  background-color: var(--bg-light);
  border-radius: 24px;
  padding: 40px;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.contact-item-details h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact-item-details p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 40px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.btn-contact-maps {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}

.btn-contact-maps:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-contact-fb {
  background-color: #1877f2;
  color: var(--white);
  border: 1px solid #1877f2;
}

.btn-contact-fb:hover {
  background-color: transparent;
  color: #1877f2;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-contact-wa {
  background-color: #25d366;
  color: var(--white);
  border: 1px solid #25d366;
}

.btn-contact-wa:hover {
  background-color: transparent;
  color: #25d366;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.map-container {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- Footer --- */
.footer-section {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0 30px;
  position: relative;
}

.footer-logo {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo i {
  color: var(--secondary-color);
}

.footer-quote {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-title {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

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

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

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

.footer-links a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-social-icons {
  display: flex;
  gap: 15px;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.footer-social-icon:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 50px 0 30px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition-smooth);
  animation: pulse-wa 2s infinite;
}

.whatsapp-floating:hover {
  transform: scale(1.1) translateY(-5px);
  color: var(--white);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Efectos y Animaciones de Entrada (Scroll Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Delays para animaciones secuenciales */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* --- Ajustes Responsive Generales --- */
@media (max-width: 991px) {
  .hero-section {
    padding: 120px 0 80px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-collage {
    height: 400px;
    margin-top: 50px;
  }
  
  .hero-img-1 {
    height: 300px;
  }
  
  .hero-img-2 {
    height: 200px;
  }
  
  .about-img-collage {
    height: 380px;
    margin-bottom: 40px;
  }
  
  .about-img-1 {
    height: 300px;
  }
  
  .about-img-2 {
    height: 200px;
  }
  
  .section-title,
  .section-title-center {
    font-size: 2.2rem;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .about-section {
    text-align: center;
  }
  
  .about-philosophy-box {
    border-left: none;
    border-top: 4px solid var(--primary-color);
    border-radius: 0 0 16px 16px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-collage {
    display: none; /* Simplificación para móviles muy pequeños o verticales */
  }
  
  .hero-section {
    min-height: auto;
  }
  
  .contact-info-card {
    padding: 30px 20px;
  }
  
  .map-container {
    min-height: 300px;
    margin-top: 30px;
  }
}
