/* ════════════════════════════════════════════
   EL LORO DENTAL — CSS PREMIUM
   Art Deco Geométrico · Naranja & Gris
════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --orange:        #E87722;
  --orange-dark:   #C5601A;
  --orange-light:  #F5A05A;
  --orange-pale:   #FFF3EA;
  --gray-900:      #1A1A1A;
  --gray-800:      #2C2C2C;
  --gray-700:      #3D3D3D;
  --gray-600:      #555555;
  --gray-400:      #9E9E9E;
  --gray-200:      #E8E8E8;
  --gray-100:      #F5F5F5;
  --gold:          #C9A84C;
  --gold-light:    #E2C97E;
  --white:         #FFFFFF;

  --font-title: 'Young Serif', Georgia, serif;
  --font-body:  'Onest', system-ui, sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.18);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.24);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ════════════════════════════════════════════
   LAYOUT UTILS
════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-wrap {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.section-light { background: var(--white); }
.section-dark  { background: var(--gray-900); color: var(--white); }

/* ── Deco corners (Art Deco) ── */
.deco-corner {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 0;
}
.deco-tl { top: 1.5rem; left: 1.5rem; border-top: 3px solid var(--gold); border-left: 3px solid var(--gold); }
.deco-tr { top: 1.5rem; right: 1.5rem; border-top: 3px solid var(--gold); border-right: 3px solid var(--gold); }
.deco-br { bottom: 1.5rem; right: 1.5rem; border-bottom: 3px solid var(--gold); border-right: 3px solid var(--gold); }
.deco-bl { bottom: 1.5rem; left: 1.5rem; border-bottom: 3px solid var(--gold); border-left: 3px solid var(--gold); }

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 0.35rem 1rem;
  border: 1px solid var(--orange);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: inherit;
  margin-bottom: 1rem;
}

.section-dark .section-title { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

.section-dark .section-sub { color: var(--gray-400); }

.accent-text { color: var(--orange); }

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-dark);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,119,34,.4); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.5);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.header-deco-top,
.header-deco-bottom {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--orange), var(--gold), transparent);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--white);
  line-height: 1;
}

.logo-text-accent { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.02em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 60%; }

.btn-cta-nav {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cta-nav:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
  background: var(--gray-900);
}

/* Art Deco animated pattern */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-color: var(--gray-900);
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(201,168,76,.04) 40px, rgba(201,168,76,.04) 41px),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(201,168,76,.04) 40px, rgba(201,168,76,.04) 41px),
    radial-gradient(ellipse at 20% 50%, rgba(232,119,34,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,.08) 0%, transparent 50%);
  animation: patternShift 20s ease-in-out infinite alternate;
}

@keyframes patternShift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 40px 40px, -40px 40px, 0 0, 0 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.3) 50%, rgba(26,26,26,0.6) 100%);
}

/* Art deco geometric lines */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(90deg, var(--gold) 1px, transparent 1px),
    linear-gradient(0deg, var(--gold) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.03;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 100px;
  margin-bottom: 2rem;
  background: rgba(201,168,76,0.08);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  color: var(--orange);
  position: relative;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Floating Stats ── */
.hero-stats {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 3;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  min-width: 200px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
}

.stat-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(-4px);
}

.stat-icon {
  color: var(--orange);
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--orange);
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* ── Scroll Hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce-hint 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
}

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

/* ════════════════════════════════════════════
   SERVICIOS
════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(232,119,34,.06) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30px, 30px);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,119,34,0.2);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { transform: translate(0, 0) scale(2); }

.service-icon-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-pale);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  color: var(--orange);
  transition: var(--transition);
  border: 1px solid rgba(232,119,34,0.15);
}

.service-card:hover .service-icon-wrap {
  background: var(--orange);
  color: var(--white);
  transform: rotate(5deg) scale(1.05);
}

.service-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.featured-service {
  border-color: rgba(232,119,34,0.25);
  background: linear-gradient(135deg, var(--white) 0%, var(--orange-pale) 100%);
}

.service-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-top: 0.75rem;
}

/* ════════════════════════════════════════════
   SOBRE NOSOTROS
════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-img-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-main:hover img { transform: scale(1.03); }

.img-deco-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.img-deco-frame::before,
.img-deco-frame::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
}

.img-deco-frame::before {
  top: 12px;
  left: 12px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.img-deco-frame::after {
  bottom: 12px;
  right: 12px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.about-img-secondary {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  width: 45%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--gray-900);
  box-shadow: var(--shadow-lg);
}

.about-img-secondary img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.about-badge-float {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--gray-900);
}

.badge-num {
  font-family: var(--font-title);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--white);
}

.badge-text {
  font-size: 0.7rem;
  text-align: center;
  opacity: 0.9;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.about-text {
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-text strong { color: var(--orange); }

.about-features {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}

.feature-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,119,34,0.15);
  border-radius: 50%;
  color: var(--orange);
  flex-shrink: 0;
}

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.team-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,119,34,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.team-photo-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo-wrap img { transform: scale(1.05); }

.team-photo-deco {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(26,26,26,.7) 0%, transparent 100%);
}

.team-info {
  padding: 1.75rem;
}

.team-name {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.team-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.85rem;
}

.team-bio {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* ════════════════════════════════════════════
   GALERÍA
════════════════════════════════════════════ */
.gallery-tabs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.gallery-tab {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  border: 2px solid var(--gray-200);
  color: var(--gray-600);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: var(--transition);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232,119,34,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-item.hidden { display: none; }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}

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

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  z-index: 2;
}

/* ════════════════════════════════════════════
   TESTIMONIOS
════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-title);
  font-size: 5rem;
  color: rgba(232,119,34,0.08);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,119,34,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.stars {
  color: var(--orange);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: normal;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

.author-service {
  display: block;
  font-size: 0.75rem;
  color: var(--orange);
  margin-top: 0.15rem;
}

/* ════════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════════ */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 50%, var(--orange-dark) 100%);
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,255,255,.03) 30px, rgba(255,255,255,.03) 31px),
    repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(255,255,255,.03) 30px, rgba(255,255,255,.03) 31px);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.cta-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════
   CONTACTO
════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.03em;
}

.form-input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
}

.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,119,34,0.12);
}

.form-input::placeholder { color: var(--gray-400); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239E9E9E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

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

.form-note {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: -0.5rem;
}

/* ── Info Cards ── */
.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.info-card:hover {
  border-color: rgba(232,119,34,0.3);
  background: var(--orange-pale);
}

.info-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.2rem;
}

.info-value {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.5;
}

.info-value a { color: var(--gray-800); transition: color 0.2s; }
.info-value a:hover { color: var(--orange); }

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.site-footer {
  background: var(--gray-900);
  color: var(--white);
  padding-top: 0;
}

.footer-deco-top {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--orange), var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-logo-text {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--white);
}

.footer-logo-text span { color: var(--orange); }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

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

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

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

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-list li,
.footer-list a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  line-height: 1.5;
}

.footer-list a:hover { color: var(--orange); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ════════════════════════════════════════════
   CHAT WIDGET — AYUDA ACTIVA
════════════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.chat-tooltip {
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(232,119,34,0.3);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  animation: tooltip-appear 0.5s ease;
  pointer-events: none;
}

@keyframes tooltip-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-toggle-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(232,119,34,0.45);
  transition: var(--transition);
  position: relative;
  animation: chat-pulse 2.5s ease-in-out infinite;
}

@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(232,119,34,.45), 0 0 0 0 rgba(232,119,34,.4); }
  50%       { box-shadow: 0 4px 30px rgba(232,119,34,.6), 0 0 0 16px rgba(232,119,34,.0); }
}

.chat-toggle-btn.open {
  animation: none;
  box-shadow: 0 4px 20px rgba(232,119,34,0.45);
  background: var(--orange-dark);
}

.chat-toggle-btn:hover {
  transform: scale(1.08);
}

.chat-btn-icon { line-height: 0; }

/* ── Chat Panel ── */
.chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
  transform-origin: bottom right;
}

.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-title {
  display: block;
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1.2;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  opacity: 0.85;
}

.chat-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
}

.chat-header-close {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  line-height: 0;
}

.chat-header-close:hover { color: var(--white); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 320px;
  min-height: 200px;
  background: var(--gray-100);
}

.chat-msg {
  display: flex;
  gap: 0.5rem;
  animation: msg-appear 0.3s ease;
}

@keyframes msg-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg.user { flex-direction: row-reverse; }

.chat-bubble {
  max-width: 80%;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}

.chat-msg.assistant .chat-bubble {
  background: var(--white);
  color: var(--gray-800);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-msg.user .chat-bubble {
  background: var(--orange);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-bubble a {
  color: var(--orange);
  text-decoration: underline;
  font-weight: 600;
}

.chat-msg.user .chat-bubble a { color: rgba(255,255,255,0.85); }

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 1rem;
  background: var(--white);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); background: var(--orange); }
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.chat-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--gray-800);
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  padding: 0.55rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus { border-color: var(--orange); }
.chat-input::placeholder { color: var(--gray-400); }

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:hover { background: var(--orange-dark); transform: scale(1.08); }

/* ════════════════════════════════════════════
   REVEAL ANIMATIONS
════════════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-stats { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-images { max-width: 560px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section-wrap { padding: 4rem 0; }

  .nav-links { display: none; position: fixed; inset: 0; top: 0; background: rgba(26,26,26,0.98); flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; z-index: 999; transition: var(--transition); }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.1rem; }
  .btn-cta-nav { display: none; }
  .nav-burger { display: flex; z-index: 1000; position: relative; }

  .hero-section { padding: 6rem 1rem 3rem; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-ctas { flex-direction: column; align-items: center; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .about-img-secondary { display: none; }
  .about-badge-float { top: auto; bottom: 1rem; left: 1rem; }

  .chat-panel { width: 300px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .deco-corner { width: 60px; height: 60px; }
}
