/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --amber-50:  #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --stone-50:  #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
  --radius: 10px;
  --transition: .25s ease;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--stone-800);
  background: var(--stone-50);
  line-height: 1.6;
}

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

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

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== LANGUAGE SWITCHER ===== */
#lang-bar {
  background: var(--stone-900);
  padding: 6px 0;
  text-align: right;
}
#lang-bar .container { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.lang-btn {
  background: none;
  border: 1px solid var(--stone-500);
  color: var(--stone-300);
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: .78rem;
  letter-spacing: .05em;
  transition: var(--transition);
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--stone-900);
  font-weight: 600;
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--stone-900);
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--amber-500);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--stone-900);
  letter-spacing: -.05em;
}

.logo-text { line-height: 1.15; }
.logo-text .brand { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.logo-text .sub   { font-size: .72rem; color: var(--amber-400); letter-spacing: .08em; text-transform: uppercase; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--stone-300);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

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

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--stone-300);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
@media(max-width:768px){
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--stone-900);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 20px;
    border-top: 1px solid var(--stone-700);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 24px; }
}

/* ===== HERO ===== */
#hero {
  background: linear-gradient(135deg, var(--stone-900) 0%, var(--stone-800) 60%, #3a2e1c 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::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='%23f59e0b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--amber-400);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

#hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

#hero h1 span { color: var(--amber-400); }

#hero p {
  font-size: 1.1rem;
  color: var(--stone-300);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--amber-500);
  color: var(--stone-900);
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.btn-primary:hover { background: var(--amber-600); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--stone-500);
}
.btn-outline:hover { border-color: var(--amber-400); color: var(--amber-400); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--amber-400); }
.stat .lbl { font-size: .78rem; color: var(--stone-400); text-transform: uppercase; letter-spacing: .06em; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--stone-900);
  margin-bottom: 14px;
}
.section-header p { color: var(--stone-500); max-width: 580px; margin: 0 auto; }
.divider { width: 56px; height: 4px; background: var(--amber-500); border-radius: 2px; margin: 14px auto 0; }

/* ===== SERVICIOS ===== */
#servicios { padding: 96px 0; background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--amber-200); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: var(--amber-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--stone-800); margin-bottom: 10px; }
.service-card p  { font-size: .9rem; color: var(--stone-500); line-height: 1.65; }

/* ===== ZONA ===== */
#zona { padding: 96px 0; background: var(--stone-100); }

.zona-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media(max-width:768px){ .zona-inner { grid-template-columns: 1fr; } }

.zona-text h2 { font-size: 2rem; font-weight: 800; color: var(--stone-900); margin-bottom: 16px; }
.zona-text p  { color: var(--stone-500); margin-bottom: 28px; }

.zona-provinces {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.province-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1.5px solid var(--amber-300);
  color: var(--amber-700);
  font-weight: 600;
  font-size: .9rem;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.zona-map {
  background: linear-gradient(135deg, var(--stone-800), var(--stone-900));
  border-radius: 18px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.zona-map .map-icon { font-size: 4rem; margin-bottom: 16px; }
.zona-map h3 { color: var(--amber-400); font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.zona-map p  { color: var(--stone-400); font-size: .9rem; }

/* ===== CONTACTO ===== */
#contacto { padding: 96px 0; background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
@media(max-width:768px){ .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--stone-800); margin-bottom: 28px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
  background: var(--stone-50);
  border-radius: var(--radius);
  border: 1px solid var(--stone-200);
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--amber-300); background: var(--amber-50); }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--amber-100);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item .ci-label { font-size: .75rem; font-weight: 600; color: var(--stone-400); text-transform: uppercase; letter-spacing: .07em; }
.contact-item .ci-value { font-size: 1rem; font-weight: 600; color: var(--stone-800); }
.contact-item a { color: var(--amber-600); }
.contact-item a:hover { color: var(--amber-700); text-decoration: underline; }

/* FORM */
.contact-form-wrap {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  padding: 36px;
}
.contact-form-wrap h3 { font-size: 1.2rem; font-weight: 700; color: var(--stone-800); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:520px){ .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .83rem; font-weight: 600; color: var(--stone-600); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--stone-300);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--stone-800);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit { width: 100%; padding: 14px; font-size: 1rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--stone-900);
  color: var(--stone-400);
  padding: 52px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media(max-width:768px){ .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand .brand-name { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }

.footer-links h4 { color: var(--white); font-size: .9rem; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .07em; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--amber-400); }

.footer-bottom {
  border-top: 1px solid var(--stone-700);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
}
.footer-bottom span { color: var(--amber-400); }

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--amber-500);
  color: var(--stone-900);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 999;
}
#scrollTop:hover { background: var(--amber-600); transform: translateY(-3px); }
#scrollTop.visible { display: flex; }

/* ===== UTILITY ===== */
.text-amber { color: var(--amber-500); }
section { scroll-margin-top: 70px; }
