/* ===========================
   SONRISAS PLENAS — styles.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* === CSS VARIABLES === */
:root {
  --orange: #E8650A;
  --orange-light: #FF8534;
  --orange-dark: #C4500A;
  --orange-glow: rgba(232, 101, 10, 0.35);
  --gray-900: #1A1A1A;
  --gray-800: #2C2C2C;
  --gray-700: #3D3D3D;
  --gray-600: #5A5A5A;
  --gray-400: #9A9A9A;
  --gray-200: #E8E5E0;
  --gray-100: #F5F3EF;
  --white: #FFFFFF;
  --cream: #FBF9F6;
  --font-title: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.18);
  --shadow-orange: 0 8px 32px rgba(232, 101, 10, 0.3);
}

/* === 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);
  background-color: var(--cream);
  color: var(--gray-800);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  line-height: 1.2;
  font-weight: 700;
}

.section-label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
}

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

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* === HEADER / NAV === */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gray-900);
  line-height: 1.1;
}

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

#header.scrolled .nav-logo-text { color: var(--gray-900); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
  position: relative;
}

#header.scrolled .nav-links a { color: var(--gray-700); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--orange); }

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition) !important;
  box-shadow: var(--shadow-orange);
}

.nav-cta:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 101, 10, 0.4) !important;
}

.nav-cta::after { display: none !important; }

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

#header.scrolled .hamburger span { background: var(--gray-800); }

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

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-900);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}

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

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* === HERO === */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('fotos/consultorio-sillamedica.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.82) 0%,
    rgba(26, 26, 26, 0.55) 50%,
    rgba(232, 101, 10, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 101, 10, 0.18);
  border: 1px solid rgba(232, 101, 10, 0.4);
  color: var(--orange-light);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

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

.hero-title em {
  font-style: normal;
  color: var(--orange-light);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn-primary:hover::before { transform: translateX(0); }

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(232, 101, 10, 0.5);
}

.btn-glow {
  box-shadow: 0 0 32px rgba(232, 101, 10, 0.5), var(--shadow-orange);
  animation: glowPulse 2.5s infinite alternate;
}

@keyframes glowPulse {
  from { box-shadow: 0 0 24px rgba(232, 101, 10, 0.4), var(--shadow-orange); }
  to   { box-shadow: 0 0 48px rgba(232, 101, 10, 0.7), 0 16px 40px rgba(232,101,10,0.4); }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
  cursor: pointer;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,0.6);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Hero stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: center;
  z-index: 3;
}

.hero-stats-inner {
  max-width: 900px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 1.5rem 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange-light);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* === SERVICES === */
#servicios {
  padding: 7rem 2rem;
  background: var(--cream);
  overflow: hidden;
}

.section-header {
  max-width: 1280px;
  margin: 0 auto 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-header-left { max-width: 540px; }

.section-desc {
  font-size: 1rem;
  color: var(--gray-600);
  margin-top: 1rem;
  line-height: 1.7;
}

.services-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}

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

.service-card:hover::before { transform: scaleY(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(232, 101, 10, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--orange);
}

.service-card:hover .service-icon svg {
  stroke: var(--white);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition);
}

.service-name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

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

/* === ABOUT / EQUIPO === */
#nosotros {
  padding: 7rem 2rem;
  background: var(--white);
  overflow: hidden;
}

.about-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-images {
  position: relative;
  height: 580px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 80%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.about-img-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
  height: 55%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
}

.about-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--orange);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow-orange);
  z-index: 2;
}

.about-badge strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.about-text { max-width: 520px; }

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(232, 101, 10, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-feature-text strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.2rem;
}

.about-feature-text p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Team section */
.team-section {
  max-width: 1280px;
  margin: 5rem auto 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--cream);
  border-radius: 24px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.team-card-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
}

.team-card-info {
  padding: 1.5rem;
}

.team-card-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* === TESTIMONIALS === */
#testimonios {
  padding: 7rem 2rem;
  background: var(--gray-900);
  overflow: hidden;
  position: relative;
}

#testimonios::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 5%;
  font-family: var(--font-title);
  font-size: 20rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}

.testimonials-header {
  max-width: 1280px;
  margin: 0 auto 4rem;
  text-align: center;
}

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

.testimonials-header .section-desc {
  color: rgba(255,255,255,0.6);
}

.testimonials-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), background var(--transition);
}

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

.testimonial-card.featured {
  background: var(--orange);
  border-color: transparent;
  transform: translateY(-12px);
}

.testimonial-card.featured:hover { transform: translateY(-16px); }

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.25rem;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: #FFB800;
  stroke: none;
}

.testimonial-card.featured .stars svg { fill: rgba(255,255,255,0.9); }

.testimonial-text {
  font-size: 0.925rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card.featured .testimonial-text { color: rgba(255,255,255,0.95); }

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

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-card.featured .testimonial-avatar {
  background: rgba(255,255,255,0.25);
}

.testimonial-name {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.testimonial-service {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

.testimonial-card.featured .testimonial-service { color: rgba(255,255,255,0.75); }

/* === GALERIA === */
#galeria {
  padding: 7rem 2rem;
  background: var(--cream);
  overflow: hidden;
}

.gallery-header {
  max-width: 1280px;
  margin: 0 auto 3rem;
}

.gallery-tabs {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}

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

.gallery-grid {
  max-width: 1280px;
  margin: 0 auto;
  columns: 3;
  gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition);
}

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

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

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

.gallery-item-label {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}

.gallery-item-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 48px;
  height: 48px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition);
}

.gallery-item:hover .gallery-item-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item-zoom svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-img-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}

.lightbox-nav:hover { background: var(--orange); }

.lightbox-nav svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-prev { left: -4rem; }
.lightbox-next { right: -4rem; }

.lightbox-counter {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* === CONTACTO === */
#contacto {
  padding: 7rem 2rem;
  background: var(--white);
  overflow: hidden;
}

.contact-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info { max-width: 440px; }

.contact-info .section-title {
  margin-bottom: 1.25rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 101, 10, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail-content strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.contact-detail-content span {
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 500;
}

.map-container {
  margin-top: 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

/* Contact Form */
.contact-form-wrap {
  background: var(--cream);
  border-radius: 28px;
  padding: 2.5rem;
}

.contact-form-wrap h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.contact-form-wrap p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

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

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232,101,10,0.12);
}

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

.btn-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #25D366;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1fba59;
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

/* === CTA BAND === */
#cta-band {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 50%, var(--orange-light) 100%);
  overflow: hidden;
  position: relative;
}

#cta-band::before {
  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='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.cta-content h2 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
}

.cta-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--orange-dark);
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 1rem 2.25rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--transition);
}

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

/* === FOOTER === */
#footer {
  background: var(--gray-900);
  padding: 5rem 2rem 2rem;
  overflow: hidden;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {}

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

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

.footer-logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.1;
}

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

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--orange);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.7);
  transition: fill var(--transition);
}

.footer-social a:hover svg { fill: var(--white); }

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition), padding-left var(--transition);
}

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

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-hour-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.footer-hour-row span:first-child { color: rgba(255,255,255,0.5); }
.footer-hour-row span:last-child { color: rgba(255,255,255,0.85); font-weight: 500; }

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--orange-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}

.footer-contact-item span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-bottom a { color: var(--orange-light); }

/* === FLOATING BUTTONS === */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.08);
}

.float-btn-whatsapp {
  background: #25D366;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.float-btn-whatsapp:hover {
  box-shadow: 0 16px 48px rgba(37, 211, 102, 0.5);
}

.float-btn-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.float-btn-chat {
  background: var(--orange);
  box-shadow: var(--shadow-orange);
}

.float-btn-chat:hover {
  box-shadow: 0 16px 48px rgba(232, 101, 10, 0.45);
}

.float-btn-chat svg {
  width: 26px;
  height: 26px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tooltip */
.float-btn-tooltip {
  position: relative;
}

.float-btn-tooltip::before {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.float-btn-tooltip:hover::before { opacity: 1; }

/* === AI CHAT WIDGET === */
.chat-widget {
  position: fixed;
  bottom: 7rem;
  right: 2rem;
  z-index: 950;
  width: 360px;
  max-height: 520px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(232,101,10,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

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

.chat-header {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.chat-header-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  background: #7FE87F;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-close-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.chat-close-btn:hover { background: rgba(255,255,255,0.25); }

.chat-close-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

.chat-msg {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.55;
  animation: msgIn 0.3s ease;
}

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

.chat-msg-bot {
  background: var(--gray-100);
  color: var(--gray-800);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

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

.chat-typing {
  align-self: flex-start;
  background: var(--gray-100);
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingDot 1.2s infinite;
}

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

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-5px); opacity: 1; }
}

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

.chat-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-900);
  outline: none;
  transition: border-color var(--transition);
}

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

.chat-send-btn {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

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

.chat-send-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card:nth-child(3) { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-images { height: 400px; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 768px) {
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-stats-inner { gap: 1.5rem; }
  .stat-number { font-size: 1.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card.featured { transform: none; }
  .testimonial-card:nth-child(3) { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { columns: 1; }
  .chat-widget { width: calc(100vw - 2rem); right: 1rem; bottom: 6rem; }
  .floating-buttons { right: 1rem; bottom: 1.5rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .about-images { height: 320px; }
  .lightbox-prev { left: -1rem; }
  .lightbox-next { right: -1rem; }
  .cta-btn-group { flex-direction: column; align-items: center; }
  .btn-white, .btn-outline-white { width: 100%; max-width: 340px; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 300px; justify-content: center; }
  .hero-stats-inner { flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
  .about-images { height: 260px; }
}
