/* ===== LA TRIBU DE LA LUZ — Custom Styles ===== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', sans-serif;
  color: #2D3748;
  background: #ffffff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* --- Brand Color --- */
:root {
  --tribu: #4AB4BB;
  --tribu-light: #EAF7F8;
  --tribu-dark: #3A9099;
  --bg-secondary: #F7FAFA;
  --text-primary: #2D3748;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1.25rem 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding: 0.75rem 0;
}

.site-header .logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #2D3748;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-header .logo span {
  color: var(--tribu);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4B5563;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tribu);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--tribu);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  font-family: inherit;
}

.nav-dropdown-toggle .chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-dropdown:hover .chevron,
.nav-dropdown.open .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--tribu-light);
  color: var(--tribu);
}

.nav-dropdown-menu a .dd-icon {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

/* Mobile dropdown accordion */
.mm-dropdown-items {
  display: none;
  flex-direction: column;
  padding-left: 2.5rem;
  gap: 0;
}

.mm-dropdown-items.open {
  display: flex;
}

.mm-dropdown-items a {
  font-size: 0.875rem;
  color: #4B5563;
  padding: 0.65rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.mm-dropdown-items a:hover {
  background: var(--tribu-light);
  color: var(--tribu);
}

.mm-link-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mm-link-dropdown .mm-chevron {
  transition: transform 0.2s;
}

.mm-link-dropdown.open .mm-chevron {
  transform: rotate(180deg);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--tribu);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--tribu-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(74, 180, 187, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--tribu);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--tribu);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--tribu);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2D3748;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ghost:hover {
  color: var(--tribu);
  gap: 0.75rem;
}

.btn-ghost svg {
  transition: transform 0.2s;
}

.btn-ghost:hover svg {
  transform: translateX(3px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #D4EDE8 0%, #EAF7F8 50%, #ffffff 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234AB4BB' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hero two-column grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-text-col {
  max-width: 540px;
}

.hero-img-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-img-wrap {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 3/4;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #B8DDD9 0%, #C8E8D5 50%, #D4C5A9 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

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

/* Keep old class name harmless in case it's referenced */
.hero-image-placeholder { display: none; }

/* --- Section Headings --- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tribu);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  color: #2D3748;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--tribu);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

/* --- Cards --- */
.card {
  background: #F2FAFA;
  border: 1px solid #D9EEEE;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(74,180,187,0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  background: #EAF7F8;
  border-color: var(--tribu);
  box-shadow: 0 12px 36px rgba(74,180,187,0.15);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: linear-gradient(135deg, #B8DDD9 0%, #C8E8D5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* --- Valores grid --- */
.valores-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Dia (day routine) cards --- */
.dia-card {
  padding: 2rem;
  text-align: center;
}

/* --- Value Pills / Icons --- */
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: #F2FAFA;
  border: 1px solid #D9EEEE;
  box-shadow: 0 2px 8px rgba(74,180,187,0.06);
  transition: all 0.25s;
}

.value-item:hover {
  background: #EAF7F8;
  border-color: var(--tribu);
  box-shadow: 0 8px 24px rgba(74,180,187,0.15);
  transform: translateY(-2px);
}

.value-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--tribu-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* --- Testimonials --- */
.testimonial-card {
  background: #F2FAFA;
  border: 1px solid #D9EEEE;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(74,180,187,0.06);
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  background: #EAF7F8;
  border-color: var(--tribu);
  box-shadow: 0 10px 32px rgba(74,180,187,0.15);
}

.testimonial-card .quote-mark {
  font-family: 'Georgia', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--tribu-light);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-weight: 700;
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
}

.star {
  color: #F59E0B;
  font-size: 0.9rem;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #2D3748;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--tribu);
}

.faq-icon {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--tribu);
}

.faq-item.open .faq-question {
  color: var(--tribu);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- Pillar Grid --- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pillar-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: #F2FAFA;
  border: 1px solid #D9EEEE;
  transition: all 0.25s;
}

.pillar-item:hover {
  background: #EAF7F8;
  border-color: var(--tribu);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,180,187,0.12);
}

.pillar-item .emoji {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.pillar-item .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4B5563;
  font-family: 'Poppins', sans-serif;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--tribu) 0%, #3A9099 100%);
  border-radius: 28px;
  padding: 4rem 3rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='40' cy='40' r='20' stroke='white' stroke-opacity='0.07' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='35' stroke='white' stroke-opacity='0.05' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.cta-banner .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--tribu-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s;
}

.cta-banner .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* --- Contact Form --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  font-family: 'Poppins', sans-serif;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #2D3748;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--tribu);
  box-shadow: 0 0 0 3px rgba(74, 180, 187, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border);
  border-radius: 5px;
  accent-color: var(--tribu);
  cursor: pointer;
  margin-top: 2px;
}

/* --- Footer --- */
.site-footer {
  background: #1A2332;
  color: #9CA3AF;
}

.site-footer a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--tribu);
}

.footer-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(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; }
.delay-5 { transition-delay: 0.5s; }

/* --- Mobile Menu --- */
/* ══════════════════════════════════════
   MOBILE MENU PANEL
   ══════════════════════════════════════ */

/* Overlay oscuro — creado por JS, no bloquea hasta abrir */
.mm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mm-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Panel: desliza desde la derecha */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px 0 0 24px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Cabecera del panel */
.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1.1rem;
  border-bottom: 1px solid #EDF2F4;
  flex-shrink: 0;
  background: #fff;
}

.mm-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #2D3748;
  letter-spacing: -0.01em;
}
.mm-logo span { color: var(--tribu); }

.mobile-menu-close {
  background: #F3F4F6;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6B7280;
  transition: background 0.2s;
  flex-shrink: 0;
  padding: 0;
  position: static;
}
.mobile-menu-close:active { background: #E5E7EB; }

/* Links */
.mm-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mm-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2D3748;
  text-decoration: none;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  position: relative;
}
.mm-link::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--tribu);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.mm-link:active, .mm-link:hover {
  background: var(--tribu-light);
  color: var(--tribu);
  padding-left: 1.75rem;
}
.mm-link:active::before, .mm-link:hover::before { opacity: 1; }

.mm-link-icon {
  font-size: 1.15rem;
  width: 1.6rem;
  text-align: center;
  flex-shrink: 0;
}

/* Footer del panel — degradado blanco → turquesa */
.mm-footer {
  flex-shrink: 0;
  background: linear-gradient(to bottom, #ffffff 0%, var(--tribu-light) 40%);
  border-top: 1.5px solid #E8F5F6;
  padding: 1.4rem 1.4rem 1.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.mm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--tribu);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(74,180,187,0.35);
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.mm-cta:active { background: #3a9da3; transform: scale(0.97); }

.mm-lang { margin: 0 !important; }

.mm-tagline {
  font-size: 0.68rem;
  color: #6B7280;
  text-align: center;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Hamburger --- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2D3748;
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Divider --- */
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--tribu);
  border-radius: 3px;
  margin: 1.25rem 0;
}

/* --- Image Photo Placeholder --- */
.photo-placeholder {
  background: linear-gradient(135deg, #B8DDD9 0%, #C4E0D4 40%, #D4C5A9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: inherit;
}

.photo-placeholder-label {
  font-size: 0.75rem;
  color: rgba(0,0,0,0.4);
  font-weight: 500;
  text-align: center;
  padding: 0.5rem;
}

/* --- Key facts strip (replaces panoramic image) --- */
.facts-strip {
  background: linear-gradient(135deg, #4AB4BB 0%, #3A9099 100%);
  padding: 2.25rem 0;
}

.facts-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 0;
}

.fact-item {
  text-align: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.25);
}

.fact-item:last-child {
  border-right: none;
}

.fact-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.fact-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .facts-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .fact-item {
    padding: 1.25rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.25);
  }
  .fact-item:nth-child(2n) { border-right: none; }
  .fact-item:nth-last-child(-n+2) { border-bottom: none; }
  .fact-value { font-size: 1.4rem; }
  .fact-label { font-size: 0.72rem; }
}

/* --- Language switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(74,180,187,0.1);
  border-radius: 20px;
  padding: 3px;
  margin-left: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6B7280;
  padding: 0.3rem 0.75rem;
  border-radius: 14px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.lang-btn .fi {
  width: 1.1em;
  height: 0.82em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--tribu);
  color: #fff;
}


/* Botón scroll-down: oculto en desktop, visible solo en móvil */
.scroll-down-btn { display: none; }

/* =====================================================
   RESPONSIVE — GLOBAL (applies to ALL pages)
   ===================================================== */

/* --- Tablet & mobile: collapse all multi-col grids --- */
@media (max-width: 900px) {

  /* Nav */
  .hidden-mobile { display: none !important; }
  .hamburger     { display: flex !important; }
  /* Hamburger oscuro por defecto (páginas sin foto de fondo) */
  .hamburger span { background: #2D3748; }


  /* ══════════════════════════════════════════
     MOBILE HERO — Foto de fondo, texto encima
     ══════════════════════════════════════════ */

  .hero {
    /* Fallback para navegadores sin svh, luego svh para móviles con barra de direcciones */
    height: calc(var(--vh, 1vh) * 100) !important;
    min-height: 620px !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;
  }

  /* Bordes redondeados solo al hacer scroll */
  .hero { transition: border-radius 0.5s ease !important; z-index: 1 !important; }
  .hero.hero-scrolled { border-radius: 0 0 36px 36px !important; }
  .hero.hero-scrolled .hero-bg { border-radius: 0 0 36px 36px !important; }

  /* Botón scroll-down */
  .scroll-down-btn {
    display: flex !important;
    position: absolute !important;
    bottom: 1.75rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.18) !important;
    border: 2px solid rgba(255,255,255,0.55) !important;
    color: #fff !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    animation: bounce-arrow 2s ease-in-out infinite !important;
    transition: background 0.2s !important;
  }
  .scroll-down-btn:active {
    background: rgba(255,255,255,0.35) !important;
  }

  @keyframes bounce-arrow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
  }

  /* Foto ocupa todo el hero como fondo */
  .hero-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    background-image: url('../images/hero.jpg') !important;
    background-size: cover !important;
    background-position: center 25% !important;
    background-repeat: no-repeat !important;
  }

  /* Overlay: solo oscuro arriba para el header */
  .hero-bg::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
      180deg,
      rgba(0,0,0,0.52)  0%,
      rgba(0,0,0,0.08) 22%,
      rgba(0,0,0,0)    40%,
      rgba(0,0,0,0)    100%
    ) !important;
    z-index: 1 !important;
  }
  /* Degradado oscuro en la parte inferior — cubre todo el ancho */
  .hero-bg::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 45%, transparent 100%) !important;
    z-index: 1 !important;
  }

  /* Header transparente SOLO en inicio (page-home) */
  .page-home .site-header {
    background: linear-gradient(180deg, rgba(0,0,0,0.50) 0%, transparent 100%) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .page-home .site-header.scrolled {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06) !important;
  }
  .page-home .site-header.scrolled .logo       { color: #2D3748 !important; }
  .page-home .site-header.scrolled .logo span  { color: var(--tribu) !important; }
  .page-home .site-header.scrolled .hamburger span { background: #2D3748 !important; }
  .page-home .site-header:not(.scrolled) .logo,
  .page-home .site-header:not(.scrolled) .logo span { color: #fff !important; }
  .page-home .site-header:not(.scrolled) .hamburger span { background: #fff !important; }

  /* Container z-index sobre el overlay */
  .hero .container {
    position: relative !important;
    z-index: 2 !important;
    padding: 0 1.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Grid: columna única, texto al fondo */
  .hero-grid {
    grid-template-columns: 1fr !important;
    padding-top: 0 !important;
    padding-bottom: 3.5rem !important;
    gap: 0 !important;
    min-height: unset !important;
    align-items: flex-end !important;
  }

  /* Columna imagen oculta — la foto va de fondo */
  .hero-img-col { display: none !important; }

  /* ── Texto sobre la foto ── */
  .hero-text-col {
    max-width: 100% !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 2rem 1.75rem 3rem !important;
    position: relative !important;
    z-index: 2 !important;
    margin-top: auto !important;
  }

  .hero-text-col .section-label {
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
  }

  .hero-text-col h1 {
    color: #fff !important;
    font-size: clamp(2.3rem, 8.5vw, 3.2rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 0.75rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
  }
  .hero-text-col h1 span { color: #9EE4E8 !important; }

  .hero-text-col .section-divider {
    background: rgba(255,255,255,0.4) !important;
    width: 36px !important;
    margin: 0.6rem 0 1rem !important;
  }

  .hero-text-col p {
    color: rgba(255,255,255,0.90) !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.75rem !important;
  }

  .hero-text-col > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 0.7rem !important;
  }
  .hero-text-col .btn-primary {
    background: var(--tribu) !important;
    color: #fff !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 24px rgba(74,180,187,0.5) !important;
  }
  .hero-text-col .btn-outline {
    background: rgba(255,255,255,0.12) !important;
    border: 2px solid rgba(255,255,255,0.6) !important;
    color: #fff !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
  }

  /* All 2-col section grids → 1 col */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns:auto 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* 3-col cards → 2 col */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  /* 4-col grids (founders, footer) → 2 col */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }

  /* Remove sticky sidebar */
  [style*="position:sticky"] { position: static !important; }

  /* Sections less vertical padding */
  .section-py {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  /* Reduce large gaps */
  [style*="gap:5rem"] { gap: 2.5rem !important; }
  [style*="gap:4rem"] { gap: 2rem !important; }
  [style*="gap:3rem"] { gap: 1.5rem !important; }

  /* CTA banner */
  .cta-banner { padding: 2.5rem 1.5rem !important; }

  /* Aspect ratio images on mobile don't force huge height */
  [style*="aspect-ratio:4/5"],
  [style*="aspect-ratio:4/3"],
  [style*="aspect-ratio:1"] {
    aspect-ratio: 3/2 !important;
  }

  /* Blockquote smaller */
  blockquote { font-size: 0.9rem !important; }

  /* Pillar grid 4-col on tablet */
  .pillar-grid { grid-template-columns: repeat(4, 1fr) !important; }

  /* Footer bottom bar stacks */
  .site-footer [style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
}

/* --- Mobile only (≤ 600px): further simplification --- */
@media (max-width: 600px) {

  /* 3/4-col → full 1 col */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Contact form two-col inputs → 1 col */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:1.25rem"] {
    grid-template-columns: 1fr !important;
  }

  /* Sections less padding */
  .section-py {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Testimonial / card padding */
  .testimonial-card { padding: 1.5rem !important; }
  .cta-banner       { padding: 2rem 1.25rem !important; }

  /* Buttons wrap nicely */
  [style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:1rem"] {
    gap: 0.75rem !important;
  }
  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Hero text size floor */
  .hero-text-col h1 { font-size: clamp(1.75rem, 8vw, 2.5rem) !important; }
  .hero-text-col p  { font-size: 0.95rem !important; }

  /* Section titles don't overflow */
  .section-title { word-break: break-word; }

  /* Reduce big gaps in hero */
  .hero-grid { gap: 1.5rem !important; }

  /* Form box padding on small screens */
  [style*="border-radius:24px"][style*="box-shadow"] { padding: 1.5rem !important; }

  /* Pillar grid 2-col minimum */
  .pillar-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Valores grid 1 column on mobile */
  .valores-grid { grid-template-columns: 1fr !important; }

  /* Dia cards: compact horizontal layout on mobile */
  .dia-card {
    padding: 1rem 1.25rem !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
  }
  .dia-card span[style*="font-size:2rem"] {
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }

  /* Facts value font size */
  .fact-value { font-size: 1.25rem !important; }
}

/* --- WhatsApp floating --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 50;
}

/* En móvil en la home: oculto hasta que el usuario baje */
@media (max-width: 900px) {
  #wa-float {
    opacity: 0;
    transform: scale(0.7) translateY(10px);
    pointer-events: none;
  }
  #wa-float.wa-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* --- Utility --- */
.text-tribu { color: var(--tribu); }
.bg-tribu { background: var(--tribu); }
.bg-tribu-light { background: var(--tribu-light); }
.bg-secondary { background: var(--bg-secondary); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

@media (min-width: 1280px) {
  .container { padding: 0 2.5rem; }
}

.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-py {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}
