/* ═══════════════════════════════════════════════════════════════
   DENTALIA — styles.css
   Art Deco Premium · Verde & Oro · Elegante y Sofisticado
═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --c-dark:     #061a0e;
  --c-primary:  #0d3320;
  --c-mid:      #1a5c38;
  --c-light:    #2d7a50;
  --c-gold:     #c9a84c;
  --c-gold-lt:  #e8d08a;
  --c-cream:    #f5f0e6;
  --c-cream-dk: #ede6d6;
  --c-white:    #fdfcf8;
  --c-text:     #1a2a1e;

  --font-display: 'Unbounded', sans-serif;
  --font-body:    'Figtree', sans-serif;

  --ease-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-base: 0.3s;
  --t-slow: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--c-cream);
  color: var(--c-text);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; }

/* ── Tracking utilities ── */
.tracking-ultra { letter-spacing: 0.4em; }


/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════ */
.reveal-item {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal-item.revealed                { opacity: 1; transform: translateY(0); }
.reveal-item[data-delay="100"]       { transition-delay: 0.1s; }
.reveal-item[data-delay="200"]       { transition-delay: 0.2s; }
.reveal-item[data-delay="300"]       { transition-delay: 0.3s; }


/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
#header {
  background: transparent;
}
#header.scrolled {
  background: rgba(6, 26, 14, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

/* Logo */
.logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity var(--t-base) var(--ease-out);
}
.group:hover .logo-img { opacity: 1; }

/* Nav links */
.nav-link {
  color: rgba(245, 240, 230, 0.65);
  position: relative;
  transition: color var(--t-base) var(--ease-out);
  letter-spacing: 0.08em;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transition: transform var(--t-base) var(--ease-out);
  transform-origin: center;
}
.nav-link:hover,
.nav-link.active { color: var(--c-gold-lt); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Nav CTA */
.nav-cta {
  display: inline-block;
  color: var(--c-gold);
  border: 1px solid rgba(201, 168, 76, 0.35);
  position: relative;
  overflow: hidden;
  transition: color var(--t-base) var(--ease-out), border-color var(--t-base);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.nav-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--c-gold);
  transform: translateY(100%);
  transition: transform var(--t-base) var(--ease-out);
}
.nav-cta:hover { color: var(--c-dark); border-color: var(--c-gold); }
.nav-cta:hover::before { transform: translateY(0); }
.nav-cta > * { position: relative; z-index: 1; }
.nav-cta { position: relative; }
.nav-cta span { position: relative; z-index: 1; }

/* Mobile menu */
.mobile-menu {
  background: rgba(6, 26, 14, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}
.mobile-nav-link {
  color: rgba(245, 240, 230, 0.65);
  border-bottom: 1px solid rgba(201, 168, 76, 0.06);
  display: block;
  transition: color var(--t-base), padding-left var(--t-base);
}
.mobile-nav-link:hover { color: var(--c-gold); padding-left: 8px; }


/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero-section {
  background: var(--c-dark);
  position: relative;
  min-height: 100vh;
}

/* Clipped background band */
.hero-band {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 97% 92%, 85% 100%, 15% 100%, 3% 92%, 0 86%);
  overflow: hidden;
}
.hero-band img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    125deg,
    rgba(6, 26, 14, 0.93) 0%,
    rgba(13, 51, 32, 0.82) 45%,
    rgba(13, 51, 32, 0.45) 75%,
    rgba(6, 26, 14, 0.65) 100%
  );
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, transparent 40%, rgba(6, 26, 14, 0.4) 100%);
}

/* Geometric art deco pattern */
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Overline */
.hero-overline {
  display: flex; align-items: center; gap: 14px;
}
.overline-bar {
  display: block; width: 36px; height: 1px;
  background: rgba(201, 168, 76, 0.45);
  flex-shrink: 0;
}

/* Title */
.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero-em {
  font-size: 0.62em;
  opacity: 0.65;
  letter-spacing: 0;
}

/* Stats bar */
.hero-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.stat-item  { display: flex; flex-direction: column; gap: 3px; }
.stat-num   { font-size: 2rem; line-height: 1; }
.stat-lbl   { line-height: 1; }
.stat-sep   { width: 1px; height: 36px; background: rgba(201, 168, 76, 0.18); flex-shrink: 0; }

/* Decorative secondary panel (right side, desktop) */
.hero-side-panel {
  display: none;
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 36%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.hero-side-panel img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(6, 26, 14, 0.85), rgba(6, 26, 14, 0.1));
}
@media (min-width: 1280px) { .hero-side-panel { display: block; } }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; z-index: 10;
}
.scroll-text { letter-spacing: 0.4em; }
.scroll-line {
  width: 1px; height: 56px;
  background: rgba(201, 168, 76, 0.15);
  position: relative; overflow: hidden;
}
.scroll-dot {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 18px; border-radius: 2px;
  background: var(--c-gold);
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { top: -20px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 56px; opacity: 0; }
}


/* ═══════════════════════════════════════
   SHARED ELEMENTS
═══════════════════════════════════════ */

/* Section badge */
.section-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-mid);
}
.section-badge.text-gold { color: var(--c-gold); }

/* Deco divider */
.deco-divider svg { display: block; }

/* Grid background pattern */
.section-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Corner deco */
.corner-deco {
  position: absolute; width: 100px; height: 100px; opacity: 0.12; pointer-events: none;
}
.corner-tl { top: 24px; left: 24px; border-top: 1px solid var(--c-gold); border-left: 1px solid var(--c-gold); }
.corner-tr { top: 24px; right: 24px; border-top: 1px solid var(--c-gold); border-right: 1px solid var(--c-gold); }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--c-gold);
  color: var(--c-dark);
  padding: 15px 38px;
  font-family: var(--font-display);
  position: relative; overflow: hidden;
  transition: all var(--t-base) var(--ease-out);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--c-gold-lt);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary { position: relative; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--c-cream);
  padding: 14px 38px;
  border: 1px solid rgba(245, 240, 230, 0.25);
  position: relative; overflow: hidden;
  transition: all var(--t-base) var(--ease-out);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn-secondary:hover { color: var(--c-dark); background: var(--c-cream); border-color: var(--c-cream); }

.btn-outline-gold {
  background: transparent;
  color: var(--c-gold);
  padding: 13px 36px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  font-family: var(--font-display);
  transition: all var(--t-base) var(--ease-out);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn-outline-gold:hover { background: var(--c-gold); color: var(--c-dark); border-color: var(--c-gold); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--c-cream);
  padding: 14px 38px;
  border: 1px solid rgba(245, 240, 230, 0.2);
  transition: all var(--t-base) var(--ease-out);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn-ghost:hover { background: rgba(245, 240, 230, 0.08); border-color: rgba(245, 240, 230, 0.4); }


/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card-wide {
    grid-column: span 3;
    flex-direction: row !important;
    align-items: center;
    gap: 36px;
  }
  .service-card-wide .svc-icon-wrap { flex-shrink: 0; }
  .service-card-wide .svc-content   { flex: 1; }
}

.service-card {
  display: flex; flex-direction: column;
  background: var(--c-white);
  padding: 32px;
  border: 1px solid rgba(201, 168, 76, 0.1);
  position: relative; overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(6, 26, 14, 0.1);
}
.service-card:hover .svc-accent { transform: scaleX(1); }
.service-card:hover .svc-icon   { color: var(--c-mid); transform: scale(1.1); }

.svc-icon-wrap {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 92, 56, 0.06);
  margin-bottom: 20px;
  position: relative;
  flex-shrink: 0;
}
.svc-icon-wrap::before {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(201, 168, 76, 0.18);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.svc-icon {
  width: 34px; height: 34px;
  color: var(--c-mid);
  transition: color var(--t-base), transform var(--t-base);
}

.svc-accent {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--c-gold), var(--c-mid));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}


/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-images {
  position: relative; height: 480px;
}
.about-img-main {
  position: absolute; top: 0; left: 0;
  width: 74%; height: 84%;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.about-img-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}
.about-img-main:hover img { transform: scale(1.04); }
.about-img-frame {
  position: absolute; inset: 0;
  border: 1px solid rgba(201, 168, 76, 0.18);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
  pointer-events: none;
}
.about-img-secondary {
  position: absolute; bottom: 0; right: 0;
  width: 54%; height: 48%;
  overflow: hidden;
  border: 3px solid var(--c-dark);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
.about-img-secondary img { width: 100%; height: 100%; object-fit: cover; }

.about-years-badge {
  position: absolute; top: 50%; right: 4%;
  transform: translateY(-50%);
  background: var(--c-gold);
  width: 78px; height: 78px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 5;
}

/* Deco left */
.deco-left { display: flex; align-items: center; gap: 8px; }
.deco-left-line  { display: block; width: 42px; height: 1px; background: var(--c-gold); }
.deco-left-diamond {
  display: block; width: 8px; height: 8px;
  background: var(--c-gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Feature items */
.feature-item   { display: flex; align-items: flex-start; gap: 12px; }
.feature-diamond { color: var(--c-gold); font-size: 0.45rem; margin-top: 0.4rem; flex-shrink: 0; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.1);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base), border-color var(--t-base);
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(6, 26, 14, 0.4);
  border-color: rgba(201, 168, 76, 0.22);
}
.team-img { height: 300px; position: relative; overflow: hidden; }
.team-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.8s ease; }
.team-card:hover .team-img img { transform: scale(1.04); }
.team-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6, 26, 14, 0.75) 0%, transparent 55%);
}
.team-info {
  padding: 24px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}


/* ═══════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */
.testimonials-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 768px)  { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testi-card {
  background: var(--c-white);
  padding: 32px;
  border: 1px solid rgba(201, 168, 76, 0.1);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(6, 26, 14, 0.1); }

/* Featured testimonial (dark variant) */
.testi-featured {
  background: var(--c-primary);
  border-color: rgba(201, 168, 76, 0.15);
}
.testi-featured .testi-big-quote  { color: rgba(201, 168, 76, 0.2); }
.testi-featured .testi-stars      { color: var(--c-gold); }
.testi-featured p                 { color: rgba(245, 240, 230, 0.75); }
.testi-featured .testi-author     { border-top-color: rgba(201, 168, 76, 0.12); }
.testi-featured cite              { color: var(--c-cream); }
.testi-featured .testi-avatar     { background: var(--c-gold); color: var(--c-dark); }

.testi-big-quote {
  position: absolute; top: 12px; right: 20px;
  font-size: 5rem; line-height: 1;
  color: rgba(26, 92, 56, 0.1);
  font-family: Georgia, serif;
  user-select: none;
}
.testi-stars { color: var(--c-gold); font-size: 0.85rem; letter-spacing: 3px; }
.testi-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}
.testi-avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--c-mid); color: var(--c-cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}


/* ═══════════════════════════════════════
   GALLERY
═══════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(201, 168, 76, 0.1);
}
.gallery-item img  { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img,
.gallery-item:focus img { transform: scale(1.08); outline: none; }

.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(6, 26, 14, 0.72);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay { opacity: 1; }
.gallery-label { color: var(--c-gold); letter-spacing: 0.2em; }
.gallery-plus  { color: var(--c-cream); font-size: 2.2rem; line-height: 1; font-weight: 300; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 26, 14, 0.97);
  backdrop-filter: blur(5px);
}
.lightbox-content {
  position: relative; z-index: 1;
  max-width: min(90vw, 900px);
  max-height: 85vh;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.lightbox-img {
  max-width: 100%; max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(201, 168, 76, 0.18);
}
.lightbox-caption {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0 4px;
}
.lightbox-close, .lightbox-arrow {
  position: fixed; z-index: 2;
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--c-cream);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-base) var(--ease-out);
}
.lightbox-close {
  top: 20px; right: 20px;
  width: 42px; height: 42px;
  font-size: 0.85rem;
}
.lightbox-close:hover { background: var(--c-gold); color: var(--c-dark); border-color: var(--c-gold); }
.lightbox-arrow {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 2.2rem; line-height: 1;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-arrow:hover { background: rgba(201, 168, 76, 0.15); border-color: var(--c-gold); color: var(--c-gold); }


/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section { position: relative; }
.cta-bg {
  position: absolute; inset: 0;
  background: var(--c-primary);
}
.cta-radial {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.07) 0%, transparent 65%);
}


/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-form {
  background: var(--c-white);
  padding: 40px;
  border: 1px solid rgba(201, 168, 76, 0.14);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block; margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26, 42, 30, 0.55);
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--c-cream);
  border: 1px solid rgba(201, 168, 76, 0.18);
  color: var(--c-text);
  font-family: var(--font-body); font-size: 0.95rem;
  outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.form-input:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}
.form-input::placeholder { color: rgba(26, 42, 30, 0.3); }
.form-input.error { border-color: #dc2626; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c9a84c'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px; cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 110px; }

.btn-whatsapp {
  display: block; width: 100%;
  padding: 17px 32px;
  background: #25D366; color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  transition: background var(--t-base), transform var(--t-base);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* Contact info card */
.contact-info-card {
  background: var(--c-white);
  padding: 32px;
  border: 1px solid rgba(201, 168, 76, 0.14);
  display: flex; flex-direction: column; gap: 24px;
}
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 92, 56, 0.08);
  color: var(--c-mid);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.contact-label {
  display: block; margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-mid);
}


/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer-wave { line-height: 0; }
.footer-map  { border-bottom: 1px solid rgba(201, 168, 76, 0.08); }
.footer-logo { filter: brightness(0) invert(1); opacity: 0.7; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-gold); margin-bottom: 1.5rem;
}
.footer-link {
  display: block; font-family: var(--font-body);
  font-size: 0.875rem; color: rgba(245, 240, 230, 0.4);
  padding: 2px 0;
  transition: color var(--t-base), padding-left var(--t-base);
}
.footer-link:hover { color: var(--c-gold); padding-left: 5px; }
.footer-info-label {
  display: block; margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(201, 168, 76, 0.45);
}
.hours-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(201, 168, 76, 0.05);
}
.emergency-box {
  background: rgba(201, 168, 76, 0.05);
  border-left: 2px solid rgba(201, 168, 76, 0.25);
  padding: 10px 14px;
}
.footer-bottom { border-top: 1px solid rgba(201, 168, 76, 0.07); }

.social-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201, 168, 76, 0.18);
  color: rgba(245, 240, 230, 0.3);
  transition: all var(--t-base) var(--ease-out);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.social-icon:hover { background: var(--c-gold); color: var(--c-dark); border-color: var(--c-gold); }


/* ═══════════════════════════════════════
   WHATSAPP FAB
═══════════════════════════════════════ */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55); }

.wa-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366;
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}


/* ═══════════════════════════════════════
   CHAT WIDGET — AYUDA ACTIVA
═══════════════════════════════════════ */
.chat-widget {
  position: fixed;
  bottom: 92px;   /* 24 (wa bottom) + 56 (wa height) + 12 (gap) */
  right: 24px;
  z-index: 950;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 10px;
}

.chat-toggle-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-primary);
  border: 2px solid rgba(201, 168, 76, 0.35);
  color: var(--c-gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(6, 26, 14, 0.45);
  transition: all var(--t-base) var(--ease-out);
  position: relative;
}
.chat-toggle-btn:hover {
  background: var(--c-gold); color: var(--c-dark);
  border-color: var(--c-gold); transform: scale(1.06);
}

.chat-dot {
  position: absolute; top: 1px; right: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--c-gold);
  border: 2px solid var(--c-cream);
  display: none;
}
.chat-dot.show { display: block; animation: dotPulse 1.5s ease infinite; }
@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.35); }
}

/* Chat panel */
.chat-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--c-dark);
  border: 1px solid rgba(201, 168, 76, 0.18);
  box-shadow: 0 20px 60px rgba(6, 26, 14, 0.55);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(18px) scale(0.94);
  opacity: 0; pointer-events: none;
  transition: all 0.35s var(--ease-spring);
  transform-origin: bottom right;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1; pointer-events: all;
}

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--c-primary);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}
.chat-avatar {
  width: 34px; height: 34px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--c-gold);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.chat-title  { color: var(--c-cream); }
.chat-status { color: rgba(201, 168, 76, 0.55); }
.chat-close-btn {
  color: rgba(245, 240, 230, 0.35);
  font-size: 0.75rem; padding: 4px;
  transition: color var(--t-base);
  line-height: 1;
}
.chat-close-btn:hover { color: var(--c-cream); }

.chat-messages {
  flex: 1; height: 280px; overflow-y: auto;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(201, 168, 76, 0.18) transparent;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.18); border-radius: 2px; }

.chat-msg {
  max-width: 86%; font-family: var(--font-body);
  font-size: 0.83rem; line-height: 1.5;
  padding: 9px 13px;
}
.chat-msg.user {
  background: var(--c-mid); color: var(--c-cream);
  align-self: flex-end;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.chat-msg.assistant {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(201, 168, 76, 0.1);
  color: rgba(245, 240, 230, 0.82);
  align-self: flex-start;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.chat-typing {
  display: flex; gap: 4px; align-items: center;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(201, 168, 76, 0.1);
  align-self: flex-start;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  max-width: 60px;
}
.typing-dot {
  width: 6px; height: 6px;
  background: rgba(201, 168, 76, 0.55); border-radius: 50%;
  animation: typingBounce 1.2s ease infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-5px); }
}

.chat-footer {
  display: flex; gap: 8px;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 10px 12px;
  background: rgba(6, 26, 14, 0.4);
}
.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(201, 168, 76, 0.1);
  color: var(--c-cream); font-size: 0.85rem;
  padding: 9px 12px; outline: none;
  transition: border-color var(--t-base);
}
.chat-input:focus   { border-color: rgba(201, 168, 76, 0.35); }
.chat-input::placeholder { color: rgba(245, 240, 230, 0.22); }

.chat-send-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--c-gold); color: var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-base);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.chat-send-btn:hover { background: var(--c-gold-lt); transform: scale(1.06); }
.chat-send-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }


/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .about-images { height: 360px; }
  .contact-form {
    padding: 24px 20px;
    clip-path: none;
  }
  .chat-panel { width: 288px; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 14px; }
  .stat-num   { font-size: 1.6rem; }
  .stat-sep   { height: 28px; }
}
