/* =============================================
   SIESQUEN CASTILLO SPA – Styles
   Minimalist White Design
   ============================================= */

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

:root {
  --white:    #ffffff;
  --off-white:#f7f7f7;
  --gray-100: #f2f2f2;
  --gray-200: #e5e5e5;
  --gray-400: #a0a0a0;
  --gray-600: #666666;
  --dark:     #1a1a1a;
  --dark-2:   #2d2d2d;
  --accent:   #D4891A;
  --accent-dk:#b87315;
  --radius:   10px;
  --shadow:   0 2px 20px rgba(0,0,0,0.07);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: auto; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--dark);
  color: var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); }

.btn-full { width: 100%; }

/* ─── HEADER ──────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-brand { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; color: var(--dark); }
.logo-sub { font-size: 0.68rem; font-weight: 400; color: var(--gray-600); letter-spacing: 0.01em; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--dark); background: var(--gray-100); }
.nav-link.active { color: var(--dark); }
.nav-cta {
  background: var(--dark);
  color: var(--white) !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--accent) !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(212,137,26,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,0,0,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 700px; }

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--dark); letter-spacing: -0.03em; }
.stat-label { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--gray-200); }

/* ─── SECTION COMMONS ─────────────────────── */
.section { padding: 96px 0; }
.section-gray { background: var(--off-white); }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc { color: var(--gray-600); font-size: 1rem; line-height: 1.7; }

/* ─── SERVICES ────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}
.service-desc { font-size: 0.88rem; color: var(--gray-600); line-height: 1.65; }


/* ─── SERVICE EXTRAS ─────────────────────── */
.service-card--wide {
  grid-column: 1 / -1;
}

.machine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  color: var(--dark-2);
  background: var(--gray-100);
}

.service-brands {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--gray-400);
}
.brands-label {
  font-weight: 600;
  color: var(--dark);
  margin-right: 4px;
}

.service-list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.service-list li {
  font-size: 0.82rem;
  color: var(--gray-600);
  padding-left: 14px;
  position: relative;
}
.service-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ─── ABOUT ───────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.value-item strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.value-item p { font-size: 0.85rem; color: var(--gray-600); }

.about-visual { position: relative; }
.about-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--gray-200);
}
.about-img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder::after {
  content: "Foto del equipo";
  color: var(--gray-400);
  font-size: 0.85rem;
}
.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--dark);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.badge-num { display: block; font-size: 2rem; font-weight: 700; line-height: 1; color: var(--accent); }
.badge-txt { font-size: 0.75rem; color: var(--gray-400); }

/* ─── GALLERY ─────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  cursor: pointer;
}
.gallery-item--large {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: 0.85rem; font-weight: 500; }

.gallery-placeholder {
  background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.gallery-placeholder::after {
  content: "Foto";
  color: var(--gray-400);
  font-size: 0.8rem;
  position: absolute;
}
.gallery-placeholder img { display: none; }

/* ─── GALLERY NOTICE & REF BADGE ─────────── */
.gallery-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbf0;
  border: 1px solid #f0d080;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: #7a5c00;
  margin-bottom: 20px;
}
.gallery-notice svg { flex-shrink: 0; color: #c8930a; }

.ref-img { position: relative; }

.gallery-item .ref-img + .gallery-overlay::after,
.gallery-item:has(.ref-img) .gallery-overlay::after {
  content: "Imagen de referencia";
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  color: rgba(255,255,255,0.8);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ─── CONTACT ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--accent); }
.contact-item strong { display: block; font-size: 0.8rem; color: var(--gray-400); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item a, .contact-item span { font-size: 0.95rem; color: var(--dark); }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--dark-2); }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--gray-400); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,137,26,0.12);
}
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea { resize: vertical; min-height: 100px; }

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

/* ─── FOOTER ──────────────────────────────── */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo { height: 48px; margin: 0 auto; filter: brightness(0) invert(1); }
.footer-logo-name { font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; color: var(--white); margin-top: 10px; }
.footer-tagline { font-size: 0.78rem; color: var(--gray-400); margin-top: 2px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.85rem; color: var(--gray-400); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.78rem; color: var(--gray-400); border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; width: 100%; text-align: center; }

/* ─── WHATSAPP BUTTON ─────────────────────── */
.whatsapp-btn {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  z-index: 9999 !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  background: #25D366 !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none !important;
}
.whatsapp-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.whatsapp-btn svg {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  flex-shrink: 0;
}

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .contact-item { flex: 1 1 200px; }
}

@media (max-width: 768px) {
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.6rem; }

  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 24px 24px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow); gap: 4px; }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: 8px; }
  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }

  .burger { display: flex; }

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

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--large { grid-column: span 2; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--large { grid-column: span 1; aspect-ratio: 4/3; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .contact-info { flex-direction: column; }
}
