/* ==========================================================================
   Restaurante Rusca - Luxury Dining & NicDark Home-05 Design System
   Integrated with Starbelly Animated Preloader
   ========================================================================== */

:root {
  --font-heading: 'Cormorant', serif;
  --font-body: 'Jost', sans-serif;
  
  --color-primary: #3C3425;
  --color-secondary: #3C3425;
  --color-dark: #3C3425;
  --color-text: #3C3425;
  --color-text-muted: #774D1B;
  --color-light: #F6F1DE;
  --color-light-alt: rgba(163, 149, 122, 0.16);
  --color-white: #F6F1DE;
  --color-border: #A3957A;
  --color-border-light: rgba(163, 149, 122, 0.3);
  
  /* Rusca palette: brown, cream, beige and dark brown. */
  --color-accent: #774D1B;
  --color-accent-hover: #3C3425;
  --color-accent-light: #A3957A;
  --color-accent-glow: rgba(119, 77, 27, 0.25);
  
  --transition-fast: 0.25s ease;
  --transition-normal: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-sm: 0 4px 15px rgba(60, 52, 37, 0.05);
  --shadow-md: 0 10px 30px rgba(60, 52, 37, 0.08);
  --shadow-lg: 0 20px 50px rgba(60, 52, 37, 0.12);
  --shadow-dark: 0 20px 40px rgba(60, 52, 37, 0.4);
  
  --container-width: 1240px;
  --header-height: 90px;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.5px;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

h5 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Containers & Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  width: 100%;
  padding: 0 2rem;
}

.section-padding {
  padding: 7rem 0;
}

.section-padding-sm {
  padding: 4.5rem 0;
}

/* Subtitle Badge */
.section-subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  position: relative;
  font-family: var(--font-body);
}

.section-subtitle.light {
  color: var(--color-accent-light);
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-desc {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(60, 52, 37, 0.15);
}

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

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

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(246, 241, 222, 0.4);
}

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

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline-gold:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.65rem 1.4rem;
  font-size: 0.75rem;
}

/* ==========================================================================
   STARBELLY PRELOADER
   ========================================================================== */
.sb-preloader {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s ease-in-out;
  pointer-events: all;
  background-color: #3C3425;
}

.sb-preloader .sb-preloader-bg {
  box-shadow: 0 0 25px 0 rgba(60, 52, 37, 0.2);
  border-radius: 50%;
  position: absolute;
  background-color: var(--color-accent); /* Starbelly signature expandable circle */
  height: 1600px;
  width: 1600px;
  top: 20%;
  transform: scale(2);
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.sb-preloader .sb-preloader-body {
  position: absolute;
  bottom: 0;
  z-index: 999;
  width: 100%;
  text-align: center;
  transition: 0.5s ease-in-out;
}

.sb-preloader .sb-preloader-body .sb-loading {
  opacity: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 25px;
  color: #F6F1DE;
  font-family: var(--font-body);
  transition: opacity 0.4s ease;
}

.sb-preloader .sb-preloader-body .sb-loading .sb-percent {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.sb-preloader .sb-preloader-body .sb-loading-bar {
  margin-bottom: 20px;
  width: 2px;
  height: 75vh;
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
  background-color: rgba(246, 241, 222, 0.35);
  position: relative;
}

.sb-preloader .sb-preloader-body .sb-loading-bar .sb-bar {
  width: 100%;
  height: 0%;
  background-color: #3C3425;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: height 0.05s linear;
}

/* Preloader Hidden State */
.sb-preloader.sb-hidden {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition-delay: 0.3s;
}

.sb-preloader.sb-hidden .sb-preloader-bg {
  transform: scale(0);
  transition-delay: 0.15s;
}

.sb-preloader.sb-hidden .sb-preloader-body {
  transform: translateY(35%);
  opacity: 0;
  transition-delay: 0s;
}

/* ==========================================================================
   NAVIGATION / HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(60, 52, 37, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(246, 241, 222, 0.08);
  height: 75px;
  box-shadow: 0 10px 30px rgba(60, 52, 37, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.header-logo:hover {
  transform: scale(0.96);
}

.header-logo img, .header-logo svg {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1); /* Crisp white on dark hero */
  transition: filter var(--transition-fast);
}

.header-center {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Hamburger Menu Icon */
.menu-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.menu-toggle-btn:hover {
  background: rgba(246, 241, 222, 0.1);
}

.menu-toggle-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-normal);
}

.menu-toggle-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  color: var(--color-white);
  font-size: 0.95rem;
  opacity: 0.75;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  opacity: 1;
  color: var(--color-accent);
  transform: translateY(-2px);
}

.header-cta-btn {
  display: inline-block;
}

/* Fullscreen Menu Drawer */
.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(60, 52, 37, 0.97);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.menu-drawer.open {
  opacity: 1;
  visibility: visible;
}

.drawer-nav {
  text-align: center;
}

.drawer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-nav a {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-white);
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  transition: all var(--transition-fast);
}

.drawer-nav a:hover, .drawer-nav a.active {
  color: var(--color-accent);
  transform: translateX(8px);
}

.drawer-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
}

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

.drawer-footer {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(246, 241, 222, 0.5);
  font-size: 0.85rem;
}

/* ==========================================================================
   HERO BANNER (NicDark Home-05 Hero)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  padding: 8rem 0 5rem;
  overflow: hidden;
  background-color: #3C3425;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Dessert photograph fills the hero at every screen size. */
.hero-slide-postre {
  overflow: hidden;
}

.postre-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.postre-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(60, 52, 37, 0.4) 0%, rgba(60, 52, 37, 0.78) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.6rem;
  background: rgba(246, 241, 222, 0.08);
  border: 1px solid rgba(246, 241, 222, 0.2);
  color: var(--color-accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  color: var(--color-white);
  font-size: clamp(3.5rem, 8.5vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 2.8rem;
  font-weight: 500;
}

.hero-title span {
  display: block;
}

.hero-title span:nth-child(2) {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent-light);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(246, 241, 222, 0.6);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounceSlow 2.5s infinite;
}

.hero-scroll-indicator .mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(246, 241, 222, 0.4);
  border-radius: 15px;
  position: relative;
}

.hero-scroll-indicator .mouse-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

@keyframes bounceSlow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ==========================================================================
   SECTION 2: DISCOVER MORE ABOUT OUR WORK (Gallery Grid)
   ========================================================================== */
.gallery-intro {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  background-color: var(--color-light);
  border-radius: 0px;
  cursor: pointer;
}

.gallery-card-1 {
  grid-column: span 6;
  aspect-ratio: 16 / 11;
}

.gallery-card-2 {
  grid-column: span 6;
  aspect-ratio: 16 / 11;
}

.gallery-card-3 {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
}

.gallery-card-4 {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
}

.gallery-card-5 {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
}

.gallery-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.08);
  filter: brightness(0.9);
}

.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(60, 52, 37, 0.75) 0%, rgba(60, 52, 37, 0.05) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--color-white);
  transition: opacity var(--transition-normal);
}

.gallery-badge {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent-light);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.gallery-title {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 500;
}

/* ==========================================================================
   SECTION 3: SOLUTIONS MADE FOR YOUR NEEDS (Accordion & Services)
   ========================================================================== */
.solutions-section {
  background-color: #3C3425;
  background-image: linear-gradient(90deg, rgba(60, 52, 37, 0.86), rgba(60, 52, 37, 0.55)), url('../imagenes/compatible/02_fachada_beige.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--color-white);
}

.solutions-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.solutions-text .section-subtitle {
  margin-bottom: 0.8rem;
}

.solutions-text .section-title {
  margin-bottom: 1.5rem;
}

.solutions-text p {
  margin-bottom: 1.5rem;
}

/* Luxury Accordion */
.custom-accordion {
  margin: 2.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  transition: all var(--transition-normal);
}

.accordion-item.active {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: 1.3rem 1.6rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-header h4 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0;
  font-weight: 600;
}

.accordion-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-normal);
}

.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-primary);
  transition: all var(--transition-normal);
}

.accordion-icon::before {
  width: 14px;
  height: 2px;
}

.accordion-icon::after {
  width: 2px;
  height: 14px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-item.active .accordion-icon::before,
.accordion-item.active .accordion-icon::after {
  background-color: var(--color-accent);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 1.6rem;
}

.accordion-item.active .accordion-content {
  padding: 0 1.6rem 1.4rem;
}

.accordion-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Services 4-Grid */
.services-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-feature-card {
  background-color: var(--color-white);
  padding: 2.5rem 1.8rem;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.service-icon-box {
  width: 65px;
  height: 65px;
  background-color: rgba(119, 77, 27, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--color-accent);
  font-size: 1.6rem;
  transition: all var(--transition-normal);
}

.service-feature-card:hover .service-icon-box {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.1);
}

.service-feature-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.service-feature-card span {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 4: 3D FLIP BOXES (Coordination, Scheduling, etc.)
   ========================================================================== */
.flip-boxes-section {
  background-color: var(--color-white);
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.flip-box {
  perspective: 1200px;
  height: 380px;
  cursor: pointer;
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner,
.flip-box.is-flipped .flip-box-inner {
  transform: rotateY(180deg);
}

.flip-box-front, .flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.8rem;
  border: 1px solid var(--color-border);
}

.flip-box-front {
  background-color: var(--color-light);
}

.flip-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.8rem;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.flip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-box:hover .flip-avatar {
  transform: scale(1.08);
}

.flip-box-front h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.flip-box-front .flip-subtitle {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.flip-box-back {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: rotateY(180deg);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.flip-box-back h4 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.flip-box-back p {
  color: rgba(246, 241, 222, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   SECTION 5: EXPLORE OUR WORLD - CONSULTING
   ========================================================================== */
.consulting-section {
  background-color: var(--color-light);
}

.consulting-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.consulting-header-text {
  max-width: 650px;
}

.consulting-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.consulting-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-normal);
}

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

.consulting-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

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

.consulting-body {
  padding: 1.8rem;
}

.consulting-badge {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.consulting-body h4 {
  font-size: 1.3rem;
  color: var(--color-primary);
}

/* ==========================================================================
   SECTION 6: TAILORED FOR YOU (3 Column Showcase)
   ========================================================================== */
.tailored-section {
  background-color: var(--color-white);
}

.tailored-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tailored-card {
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.tailored-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.tailored-card-img {
  width: 100%;
  height: 290px;
  overflow: hidden;
  position: relative;
}

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

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

.tailored-card-img .card-tag {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.tailored-card-body {
  padding: 2.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tailored-card-body h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tailored-card-body p {
  flex: 1;
  font-size: 0.98rem;
  margin-bottom: 1.8rem;
}

/* ==========================================================================
   SECTION 7: TESTIMONIALS CAROUSEL
   ========================================================================== */
.testimonials-section {
  background-color: var(--color-light);
  overflow: hidden;
}

.testimonials-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.testimonials-intro {
  max-width: 500px;
}

.testimonials-slider {
  position: relative;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-md);
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.testimonial-stars {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 4px;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--color-primary);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h5 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-primary);
}

.author-info span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--color-accent);
  transform: scale(1.3);
}

.slider-nav-btns {
  display: flex;
  gap: 10px;
}

.slider-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.slider-nav-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ==========================================================================
   SECTION 8: PARALLAX FEATURES (The Simple One, Essential Pack, etc.)
   ========================================================================== */
.parallax-section {
  position: relative;
  background-color: #3C3425;
  color: var(--color-white);
  padding: 8rem 0;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(60, 52, 37, 0.85);
  z-index: 1;
}

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

.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.feature-col {
  border-left: 1px solid rgba(246, 241, 222, 0.15);
  padding-left: 2rem;
  transition: transform var(--transition-normal);
}

.feature-col:hover {
  transform: translateY(-6px);
  border-left-color: var(--color-accent);
}

.feature-col-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--color-accent-light);
  line-height: 1;
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.feature-col h4 {
  color: var(--color-white);
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

.feature-col p {
  color: rgba(246, 241, 222, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 9: ARTICLES / STORIES GRID
   ========================================================================== */
.articles-section {
  background-color: var(--color-white);
}

.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.article-card {
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  background-color: var(--color-white);
}

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

.article-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.article-body {
  padding: 1.6rem;
}

.article-date {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
}

.article-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.article-body h3 a:hover {
  color: var(--color-accent);
}

.article-body p {
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: gap var(--transition-fast);
}

.article-read-more:hover {
  gap: 10px;
  color: var(--color-accent);
}

/* ==========================================================================
   SECTION 10: CALL TO ACTION BANNER
   ========================================================================== */
.cta-banner-section {
  position: relative;
  background-color: #3C3425;
  color: var(--color-white);
  text-align: center;
  padding: 8rem 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.cta-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(60, 52, 37, 0.78);
  z-index: 1;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-banner-content h1 {
  color: var(--color-white);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.cta-banner-content p {
  color: rgba(246, 241, 222, 0.8);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   FOOTER (NicDark Luxury Footer)
   ========================================================================== */
.site-footer {
  background-color: #3C3425;
  color: rgba(246, 241, 222, 0.7);
  padding: 6.5rem 0 3rem;
  border-top: 1px solid rgba(246, 241, 222, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 3.5rem;
  margin-bottom: 5rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-contact-list li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.footer-contact-list strong {
  color: var(--color-white);
  font-weight: 500;
}

.footer-col-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand-text {
  max-width: 480px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: rgba(246, 241, 222, 0.65);
}

.footer-social-links {
  display: flex;
  gap: 1.2rem;
}

.footer-social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 222, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.footer-social-links a:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(246, 241, 222, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  gap: 1.8rem;
}

.footer-nav a {
  color: rgba(246, 241, 222, 0.6);
}

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

/* ==========================================================================
   RESERVATION MODAL
   ========================================================================== */
.reservation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(60, 52, 37, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1.5rem;
}

.reservation-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--color-white);
  width: 100%;
  max-width: 580px;
  padding: 3rem;
  position: relative;
  box-shadow: var(--shadow-dark);
  transform: translateY(30px);
  transition: transform var(--transition-normal);
}

.reservation-modal.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.modal-close-btn:hover {
  transform: rotate(90deg);
  color: var(--color-accent);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.reservation-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-light);
  color: var(--color-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: var(--color-white);
}

.form-submit-btn {
  grid-column: span 2;
  margin-top: 0.8rem;
  width: 100%;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-fade,
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-fade.revealed,
.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   RESPONSIVE DESIGN / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
  .features-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  
  .flip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .consulting-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .solutions-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .tailored-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin: 0 auto;
  }
  
  .testimonials-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-contact-list li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .site-header.scrolled {
    height: 64px;
  }

  .header-logo img, .header-logo svg {
    height: 38px;
  }
  
  .section-padding {
    padding: 5rem 0;
  }

  /* Hero Section */
  .hero-section {
    min-height: 100vh;
    padding: 7rem 0 4rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1.6rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 7.5vw, 4.4rem);
    letter-spacing: -1px;
    margin-bottom: 2.2rem;
  }

.hero-slide-postre.active .postre-wrap {
    transform: scale(1.02);
  }

.gallery-card-1, .gallery-card-2, .gallery-card-3, .gallery-card-4, .gallery-card-5 {
    grid-column: span 12;
    aspect-ratio: 16 / 10;
  }
  
  .flip-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .flip-box {
    height: 350px;
  }
  
  .consulting-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid-4 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .feature-col {
    padding-left: 1.5rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 2.2rem 1.5rem;
  }
  
  .reservation-form {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .form-submit-btn {
    grid-column: span 1;
  }
  
  .modal-card {
    width: 92%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.2rem 1.4rem;
  }

  .form-group input, 
  .form-group select, 
  .form-group textarea {
    font-size: 16px; /* Prevents auto-zoom on mobile browsers */
  }
  
  .header-social {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .site-header.scrolled {
    height: 58px;
  }

  .header-logo img, .header-logo svg {
    height: 32px;
  }

  .header-right .btn-book-table {
    padding: 0.55rem 0.95rem;
    font-size: 0.72rem;
    letter-spacing: 1px;
  }

  .menu-toggle-btn {
    width: 38px;
    height: 38px;
    padding: 6px;
  }

  .menu-toggle-btn span {
    width: 20px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7.2vw, 3.2rem);
    margin-bottom: 1.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
    gap: 0.8rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    padding: 0.85rem 1.4rem;
    font-size: 0.8rem;
  }

.hero-slide-postre.active .postre-wrap {
    transform: scale(1.02);
  }

.services-feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  }

  .section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .accordion-header {
    padding: 1.1rem 1.2rem;
  }

  .accordion-header h4 {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.85rem 1.6rem;
    font-size: 0.8rem;
  }

  .modal-card {
    padding: 1.8rem 1.1rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .drawer-nav a {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  }
}

@media (max-height: 650px) {
  .hero-scroll-indicator {
    display: none;
  }

  .hero-section {
    min-height: 100vh;
    padding: 5rem 0 3rem;
  }

  .hero-title {
    margin-bottom: 1.5rem;
  }
}

/* Keep text readable over the facade and cards on their light surfaces. */
.solutions-text .section-title {
  color: var(--color-white);
}

.solutions-text .section-subtitle {
  color: var(--color-accent-light);
}

.solutions-section .accordion-item,
.solutions-section .service-feature-card {
  color: var(--color-text);
}

.solutions-wrapper > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .solutions-section {
    background-image: linear-gradient(rgba(60, 52, 37, 0.78), rgba(60, 52, 37, 0.78)), url('../imagenes/compatible/02_fachada_beige.jpg');
    background-position: 50% center;
  }
}

@media (max-width: 480px) {
  .solutions-section {
    padding: 3.5rem 0;
  }

  .solutions-section .solutions-wrapper {
    gap: 2rem;
  }
}
/* Palette contrast on dark surfaces and photographs. */
.hero-badge,
.hero-title span:nth-child(2),
.social-link:hover,
.drawer-nav a:hover,
.drawer-nav a.active,
.footer-nav a:hover {
  color: var(--color-white);
}

.drawer-nav a::after,
.footer-col h4::after {
  background-color: var(--color-accent-light);
}

.header-logo img,
.header-logo svg,
.footer-logo img,
.footer-logo svg {
  filter: brightness(0) saturate(100%) invert(94%) sepia(12%) saturate(451%) hue-rotate(356deg) brightness(102%) contrast(93%);
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-white);
}

:focus-visible {
  outline: 3px solid var(--color-accent-light);
  outline-offset: 4px;
}
.section-subtitle.light,
.solutions-text .section-subtitle {
  color: var(--color-white);
}

/* Contact details remain readable on narrow screens. */
.footer-contact-list a { overflow-wrap: anywhere; }
.visit-hours { padding: 1.5rem 0; border-top: 1px solid rgba(246,241,222,.2); }
.visit-hours h4 { color: var(--color-white); margin-bottom: .6rem; }
.visit-hours a { display: inline-block; padding: .6rem 0; color: var(--color-white); text-decoration: underline; }
.footer-contact-list a:hover { color: var(--color-white); text-decoration: underline; }
.flip-box:focus-within .flip-box-inner { transform: rotateY(180deg); }
.cta-banner-content h2 { color: var(--color-white); font-size: clamp(2rem,5vw,4.5rem); margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.7rem,6vw,5.5rem); }
@media(max-width:480px) { .hero-title { font-size: clamp(2.1rem,9vw,3rem); } .visit-hours { font-size:.9rem; } }
