/*
 * Maestranza la Gruta - Stylesheet
 * High performance, optimized, responsive CSS
 */

:root {
  --primary: #ff1a12;
  --primary-dark: #ea120a;
  --text-dark: #17233c;
  --text-soft: #5d6778;
  --bg-light: #f3f3f3;
  --bg-panel: #f6f7f9;
  --bg-dark: #171b22;
  --bg-dark-card: #232833;
  --border-light: rgba(23, 35, 60, 0.08);
  --border-dark: rgba(255, 255, 255, 0.09);
  --yellow: #efd339;
  --dots-color: #e8dba4;
  --frame-color: #efc8ff;
  --max-width: 1200px;
  --max-width-wide: 1400px;
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.04);
  --shadow-heavy: 0 18px 45px rgba(13, 18, 28, 0.18);
  --transition: all 0.3s ease;
}

/* Reset & Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Responsive Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 28px;
}

/* Typography Utility */
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.kicker-line {
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  display: block;
}

.kicker-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #111827;
}

/* Header */
.gruta-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  padding: 0 20px;
}

.gruta-logo img {
  height: 35px;
  width: auto;
  display: block;
}

/* Nav Menu */
.gruta-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.gruta-menu a {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

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

.gruta-menu a:hover {
  color: var(--primary);
}

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

/* Header CTA */
.gruta-cta {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gruta-phone-link {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
}

.gruta-btn-min {
  background-color: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.gruta-btn-min:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.gruta-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.gruta-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

/* Hamburger active animation */
.gruta-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

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

/* Mobile Nav Drawer Overlay */
.gruta-mobile-menu {
  position: fixed;
  top: 65px;
  left: 0;
  width: 100%;
  height: calc(100vh - 65px);
  background-color: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.gruta-mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: auto;
}

.mobile-menu-list a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}

.mobile-menu-list a:hover {
  color: var(--primary);
}

.mobile-menu-footer {
  width: 100%;
}

.mobile-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 8px;
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* Hero Section */
.gruta-hero-video {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.gruta-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.gruta-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.55));
}

.gruta-hero-inner {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gruta-hero-content {
  max-width: 900px;
}

.gruta-hero-content .gruta-title {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(32px, 7vw, 84px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-wrap: balance;
}

.gruta-hero-content .gruta-subtitle {
  margin: 0 auto 32px;
  max-width: 750px;
  color: rgba(255,255,255,0.92);
  font-size: clamp(16px, 2.2vw, 32px);
  line-height: 1.3;
  font-weight: 400;
  text-wrap: balance;
}

.gruta-hero-content .gruta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 54px;
  padding: 0 30px;
  background: var(--primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(255,26,18,0.3);
}

.gruta-hero-content .gruta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255,26,18,0.4);
}

/* Contact Modern Section */
.gruta-contact-modern {
  width: 100%;
  background: #fff;
  padding: 80px 0;
}

.gruta-contact-box {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
}

/* Left Contact Card */
.gruta-phone-card {
  background: linear-gradient(180deg, var(--bg-dark-card) 0%, var(--bg-dark) 100%);
  color: #fff;
  border-radius: 24px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-heavy);
  position: relative;
  overflow: hidden;
}

.gruta-phone-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 26, 18, 0.1);
  filter: blur(2px);
}

.gruta-phone-top {
  position: relative;
  z-index: 2;
}

.gruta-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.gruta-phone-icon {
  width: 15px;
  height: 15px;
  stroke: var(--primary);
}

.gruta-phone-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 8px;
}

.gruta-phone-number {
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -1.2px;
  font-weight: 800;
  margin-bottom: 12px;
  word-break: break-word;
}

.gruta-phone-text {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.gruta-phone-actions {
  position: relative;
  z-index: 2;
  margin-top: 22px;
}

.gruta-call-btn {
  width: 100%;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(255, 26, 18, 0.22);
}

.gruta-call-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.gruta-call-btn svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
}

/* Right Form Card */
.gruta-contact-panel {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.gruta-contact-panel .gruta-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 6px;
}

.gruta-contact-panel .gruta-subtitle {
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 24px;
}

.gruta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gruta-full {
  grid-column: 1 / -1;
}

.gruta-field,
.gruta-select,
.gruta-textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  background: #fafbfc;
  color: var(--text-dark);
  border-radius: 12px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.gruta-field,
.gruta-select {
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
}

.gruta-textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
  font-size: 15px;
}

.gruta-field:focus,
.gruta-select:focus,
.gruta-textarea:focus {
  border-color: rgba(255, 26, 18, 0.45);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 26, 18, 0.05);
}

.gruta-select-wrap {
  position: relative;
}

.gruta-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.gruta-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: #7f8897;
  pointer-events: none;
}

.gruta-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.gruta-submit {
  min-width: 140px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(255, 26, 18, 0.15);
}

.gruta-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 26, 18, 0.25);
}

.form-feedback {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  display: none;
}

.form-feedback.success {
  color: #2e7d32;
  display: block;
}

.form-feedback.error {
  color: #d32f2f;
  display: block;
}

/* Nosotros Section */
.gruta-about-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  padding: 80px 0;
}

.gruta-about-container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.gruta-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.gruta-about-left {
  position: relative;
  z-index: 2;
}

.gruta-about-title {
  color: var(--text-dark);
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
}

.gruta-about-text {
  max-width: 650px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.gruta-about-icon-wrap {
  width: 245px;
  max-width: 100%;
  opacity: 0.95;
}

.gruta-about-icon-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  stroke: #2f2f2f;
  fill: none;
  stroke-width: 2;
}

/* Right video media */
.gruta-about-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gruta-about-media-shadow {
  position: absolute;
  width: 74%;
  height: 76%;
  right: 0;
  bottom: 20px;
  background-color: var(--yellow);
  z-index: 1;
}

.gruta-about-media {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  aspect-ratio: 1 / 0.78;
  border: 2px solid var(--frame-color);
  background-color: #ddd;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.gruta-about-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative Dots */
.gruta-dots {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 210px;
  height: 210px;
  background-image: radial-gradient(circle, var(--dots-color) 0 8px, transparent 9px);
  background-size: 34px 34px;
  opacity: 0.95;
}

.gruta-dots-left {
  left: 0;
  bottom: 0;
}

.gruta-dots-right {
  right: -26px;
  top: 10px;
  width: 250px;
  height: 220px;
}

/* Esencia Visión / Misión Section */
.gruta-esencia-section {
  background-color: var(--bg-light);
  padding: 80px 0;
  overflow: hidden;
}

.gruta-esencia-container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 28px;
}

.gruta-esencia-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 62px;
  align-items: center;
}

.gruta-esencia-media-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gruta-esencia-media-shadow {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 78%;
  height: 78%;
  background-color: var(--yellow);
  z-index: 1;
}

.gruta-esencia-media {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 530px;
  aspect-ratio: 1 / 1.03;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.gruta-esencia-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gruta-esencia-content {
  max-width: 760px;
}

.gruta-esencia-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.gruta-esencia-kicker-line {
  width: 34px;
  height: 4px;
  background-color: var(--yellow);
  display: block;
}

.gruta-esencia-kicker-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #111827;
}

.gruta-esencia-block {
  margin-bottom: 50px;
}

.gruta-esencia-block:last-child {
  margin-bottom: 0;
}

.gruta-esencia-title {
  color: var(--text-dark);
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -1.3px;
  margin-bottom: 18px;
}

.gruta-esencia-text {
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
}

/* Why choose us Section */
.gruta-why-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: var(--bg-light);
  isolation: isolate;
}

.gruta-why-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(100%) brightness(1.08) contrast(.82);
  opacity: 0.42;
}

.gruta-why-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(244, 244, 244, 0.75), rgba(244, 244, 244, 0.9));
}

.gruta-why-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 28px;
}

.gruta-why-head {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 56px;
}

.gruta-why-title {
  color: var(--text-dark);
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -1.2px;
  margin-bottom: 14px;
  text-wrap: balance;
}

.gruta-why-subtitle {
  color: var(--text-soft);
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.4;
  font-weight: 500;
  text-wrap: balance;
}

.gruta-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.gruta-why-item {
  padding: 22px 38px;
  text-align: center;
  position: relative;
}

.gruta-why-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 0;
  width: 1px;
  height: 360px;
  background: rgba(21, 33, 58, 0.1);
}

.gruta-why-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: block;
  stroke: var(--yellow);
}

.gruta-why-item-title {
  color: var(--text-dark);
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.7px;
  margin-bottom: 18px;
  text-wrap: balance;
}

.gruta-why-item-text {
  max-width: 360px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.62;
}

/* Reviews Testimonials Loop Section */
.gruta-reviews-loop {
  background-color: #f5f5f5;
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.gruta-reviews-wrap {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 28px;
}

.gruta-reviews-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.gruta-reviews-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dark);
}

.gruta-reviews-kicker-line {
  width: 34px;
  height: 3px;
  background-color: var(--primary);
  display: block;
}

.gruta-reviews-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.gruta-reviews-subtitle {
  color: var(--text-soft);
  font-size: 17px;
}

/* Infinite Marquee */
.gruta-reviews-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  padding: 10px 0;
}

.gruta-reviews-track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: grutaReviewsLoop 35s linear infinite;
  will-change: transform;
}

.gruta-reviews-marquee:hover .gruta-reviews-track {
  animation-play-state: paused;
}

.gruta-review-card {
  width: 390px;
  min-height: 220px;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gruta-review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.gruta-review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gruta-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #e9eef7;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.gruta-review-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.gruta-review-time {
  color: #7a8699;
  font-size: 13px;
  font-weight: 500;
}

.gruta-review-google {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4285f4;
  font-size: 13px;
  font-weight: 700;
}

.gruta-review-google-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #4285f4;
}

.gruta-review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.gruta-review-stars svg {
  width: 18px;
  height: 18px;
  fill: #f4c542;
}

.gruta-review-text {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

@keyframes grutaReviewsLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate to half width since items are duplicated */
    transform: translateX(calc(-50% - 11px));
  }
}

/* Projects Section */
.gruta-projects-section {
  background-color: #fff;
  padding: 80px 0;
}

.projects-container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 28px;
}

.projects-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.projects-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.projects-subtitle {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.5;
}

/* Filter tabs styling */
.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
}

.gallery-tab {
  background: none;
  border: none;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
}

.gallery-tab:hover {
  color: var(--primary);
}

.gallery-tab.active {
  background-color: rgba(255, 26, 18, 0.08);
  color: var(--primary);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  transition: var(--transition);
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  background-color: #eee;
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, box-shadow 0.3s ease;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 26, 18, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.06);
}

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

.gallery-item:hover .gallery-overlay svg {
  transform: scale(1);
}

/* Gallery Pagination */
.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination-btn {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: none;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(255, 26, 18, 0.03);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 26, 18, 0.2);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-btn.nav-btn {
  width: auto;
  padding: 0 16px;
}

/* Video Sub-section - Trap Trap */
.gruta-trap-section {
  background-color: #fff;
  padding: 40px 0 80px;
}

.trap-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.trap-title {
  text-align: center;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.trap-video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  background-color: #000;
}

.trap-video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Gaviones Section with Video Playlist */
.gruta-gaviones-section {
  background-color: #fff;
  padding: 60px 0 80px;
  border-top: 1px solid var(--border-light);
}

.gaviones-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.gaviones-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 40px;
}

.gaviones-playlist-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  background-color: #171b22;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  margin-bottom: 40px;
}

.playlist-player {
  aspect-ratio: 16 / 9;
  background-color: #000;
  display: flex;
  align-items: center;
}

.playlist-player video {
  width: 100%;
  height: 100%;
  display: block;
}

.playlist-sidebar {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.08);
  height: 100%;
  color: #fff;
}

.playlist-header {
  padding: 18px 20px;
  background-color: #212630;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.playlist-items {
  overflow-y: auto;
  max-height: 380px;
  display: flex;
  flex-direction: column;
}

.playlist-item {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.playlist-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.playlist-item.active {
  background-color: rgba(255, 26, 18, 0.15);
  border-left: 3px solid var(--primary);
}

.item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.8);
}

.playlist-item.active .item-icon {
  background-color: var(--primary);
  color: #fff;
}

.item-icon svg {
  width: 14px;
  height: 14px;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
}

.item-duration {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.gaviones-large-img {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.gaviones-large-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Secondary Contact Details Section */
.gruta-secondary-contact {
  background-color: #fff;
  padding: 80px 0;
  border-top: 1px solid var(--border-light);
}

.secondary-contact-container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 28px;
}

.secondary-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.secondary-contact-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.secondary-contact-img img {
  width: 100%;
  height: auto;
  display: block;
}

.secondary-contact-details .contact-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.secondary-contact-details .contact-subtitle {
  font-size: 18px;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 34px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: rgba(255, 26, 18, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-text strong {
  font-size: 15px;
  color: var(--text-dark);
}

.info-text span {
  font-size: 16px;
  color: var(--text-soft);
}

.contact-social-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-social-icons {
  display: flex;
  gap: 16px;
}

.contact-social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-social-icons a:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.contact-social-icons svg {
  width: 18px;
  height: 18px;
}

/* Footer styling */
.gruta-footer {
  background-color: #171b22;
  color: #fff;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.gruta-footer-inner {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 28px;
}

.gruta-footer-top {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  margin-bottom: 50px;
}

/* Newsletter Widget Card */
.gruta-news-card {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 30px 24px;
}

.gruta-news-logo img {
  height: 38px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}

.gruta-news-text {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}

.gruta-news-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gruta-news-input {
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background-color: rgba(255,255,255,0.03);
  color: #fff;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.gruta-news-input:focus {
  border-color: var(--primary);
  background-color: rgba(255,255,255,0.06);
}

.gruta-news-btn {
  height: 48px;
  border-radius: 10px;
  border: none;
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.gruta-news-btn:hover {
  background-color: var(--primary-dark);
}

/* Columns Footer Links */
.gruta-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 20px;
}

.gruta-col-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
}

.gruta-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.gruta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gruta-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.gruta-list a {
  color: rgba(255,255,255,0.7);
}

.gruta-list a:hover {
  color: var(--primary);
}

.gruta-mini-arrow {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.gruta-mini-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Credit Signature */
.gruta-noweb {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
}

.gruta-noweb a {
  opacity: 0.8;
}

.gruta-noweb a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.gruta-noweb img {
  max-width: 250px;
  height: auto;
  display: block;
}

/* Bottom Copy & Social */
.gruta-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gruta-social {
  display: flex;
  gap: 16px;
}

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

.gruta-social a:hover {
  transform: translateY(-1px);
  color: #fff;
}

.gruta-social svg {
  width: 20px;
  height: 20px;
}

.gruta-copy {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* Floating WhatsApp Button */
.gruta-whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9999;
}

.gruta-whatsapp-float a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366 0%, #19b955 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(37,211,102,0.3);
  transition: var(--transition);
}

.gruta-whatsapp-float a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(37,211,102,0.4);
  filter: saturate(1.05);
}

.gruta-wa-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gruta-wa-icon svg {
  width: 22px;
  height: 22px;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border-radius: 4px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.05);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0.6;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.15);
  opacity: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Responsiveness adjustments */
@media (max-width: 1200px) {
  .gruta-about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  
  .gruta-about-right {
    min-height: auto;
  }
  
  .gruta-about-media {
    max-width: 100%;
  }
  
  .gruta-about-media-shadow {
    width: 78%;
    height: 78%;
  }

  .gruta-esencia-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gruta-esencia-media-col {
    min-height: auto;
  }

  .gruta-esencia-media {
    max-width: 100%;
  }

  .gruta-esencia-media-shadow {
    width: 82%;
    height: 82%;
  }

  .gruta-footer-top {
    grid-template-columns: 320px 1fr;
    gap: 34px;
  }

  .gruta-footer-cols {
    gap: 24px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (max-width: 991px) {
  .gruta-nav-desktop {
    display: none;
  }
  
  .gruta-phone-link {
    display: none;
  }
  
  .gruta-toggle {
    display: flex;
  }

  .gruta-contact-box {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gruta-phone-card {
    min-height: auto;
  }

  .gruta-why-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gruta-why-item:not(:last-child)::after {
    display: none;
  }

  .gruta-why-item {
    border-bottom: 1px solid rgba(21, 33, 58, 0.08);
    padding: 30px 20px;
  }

  .gruta-why-item:last-child {
    border-bottom: none;
  }

  .gaviones-playlist-wrapper {
    grid-template-columns: 1fr;
  }

  .playlist-sidebar {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .secondary-contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gruta-footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gruta-news-card {
    max-width: 100%;
  }

  .gruta-footer-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .gruta-hero-video, .gruta-hero-inner {
    min-height: 85vh;
  }

  .gruta-hero-content .gruta-title {
    font-size: clamp(30px, 10vw, 42px);
    margin-bottom: 15px;
  }

  .gruta-hero-content .gruta-title br {
    display: none;
  }

  .gruta-hero-content .gruta-subtitle {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 25px;
  }

  .gruta-hero-content .gruta-btn {
    height: 50px;
    width: 80%;
    max-width: 280px;
  }

  .gruta-about-section {
    padding: 50px 0;
  }

  .gruta-about-title {
    font-size: 34px;
    line-height: 1.1;
  }

  .gruta-about-text {
    font-size: 16px;
  }

  .gruta-about-media {
    aspect-ratio: 1 / 0.84;
  }

  .gruta-about-media-shadow {
    width: 82%;
    height: 82%;
    bottom: 0;
    right: -2px;
  }

  .gruta-dots-left {
    width: 120px;
    height: 120px;
    background-size: 24px 24px;
    background-image: radial-gradient(circle, var(--dots-color) 0 5px, transparent 6px);
  }

  .gruta-dots-right {
    width: 110px;
    height: 120px;
    background-size: 24px 24px;
    background-image: radial-gradient(circle, var(--dots-color) 0 5px, transparent 6px);
  }

  .gruta-esencia-section {
    padding: 50px 0;
  }

  .gruta-esencia-media-shadow {
    width: 84%;
    height: 84%;
  }

  .gruta-esencia-title {
    font-size: 34px;
  }

  .gruta-esencia-text {
    font-size: 16px;
  }

  .gruta-why-section {
    padding: 50px 0;
  }

  .gruta-why-title {
    font-size: 34px;
  }

  .gruta-why-subtitle {
    font-size: 16px;
  }

  .gruta-why-item-title {
    font-size: 24px;
  }

  .gruta-why-item-text {
    font-size: 16px;
  }

  .gruta-reviews-loop {
    padding: 50px 0;
  }

  .gruta-reviews-title {
    font-size: 30px;
  }

  .gruta-reviews-subtitle {
    font-size: 16px;
  }

  .gruta-review-card {
    width: 300px;
    min-height: 200px;
    padding: 18px 16px;
    border-radius: 18px;
  }

  .gruta-review-avatar {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .gruta-review-name {
    font-size: 15px;
  }

  .gruta-review-text {
    font-size: 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .lightbox-prev, .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .gruta-whatsapp-float {
    left: 14px;
    bottom: 14px;
  }

  .gruta-whatsapp-float a {
    height: 52px;
    padding: 0 15px 0 12px;
    gap: 10px;
    font-size: 14px;
  }

  .gruta-wa-icon {
    width: 30px;
    height: 30px;
  }

  .gruta-wa-icon svg {
    width: 19px;
    height: 19px;
  }

  .gruta-footer {
    padding-top: 50px;
  }

  .gruta-noweb {
    margin-top: 20px;
  }

  .gruta-noweb img {
    max-width: 210px;
  }

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

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .gruta-grid {
    grid-template-columns: 1fr;
  }
}
