/* Talleres Auquilla & Hijos — estilos base
   Paleta refinada (ver retroalimentacion1.txt):
   fondo F7FAFC / celeste C9E7EB / azul acento 3EA6FF / azul oscuro 1E3A8A / texto 0B0F19 */

:root {
  --bg: #F7FAFC;
  --bg-alt: #EAF6F8;
  --celeste: #C9E7EB;
  --accent: #3EA6FF;
  --accent-dark: #1E3A8A;
  --text: #0B0F19;
  --text-soft: #4A5568;
  --white: #FFFFFF;
  --border: #E1E8F0;
  --shadow: 0 4px 24px rgba(11, 15, 25, 0.08);
  --radius: 14px;
  --maxw: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; font-weight: 800; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: clamp(19px, 2.2vw, 22px); }
p { margin: 0 0 16px; color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--celeste);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(62, 166, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(62, 166, 255, 0.45); }

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

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45); }

.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--accent-dark);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.icon-link:hover { background: var(--celeste); border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy, .hero-media { min-width: 0; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy p { font-size: 18px; margin-bottom: 28px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Section spacing */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* Card grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.contact-grid > *, .footer-grid > *, .callout > * { min-width: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11,15,25,0.12); }
.card .card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--celeste);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.process-card { text-align: center; }
.process-card .process-photo {
  border-radius: 50%;
  overflow: hidden;
  width: 140px; height: 140px;
  margin: 0 auto 18px;
  border: 4px solid var(--celeste);
}
.process-card .process-photo img { width: 100%; height: 100%; object-fit: cover; }
.process-card .step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

/* Callout */
.callout {
  background: linear-gradient(135deg, var(--accent-dark), #142a63);
  color: #fff;
  border-radius: 20px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.callout h2, .callout p { color: #fff; }
.callout p { opacity: 0.85; margin-bottom: 0; }

/* Alternating feature rows (Servicios page) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-media { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }
.feature-copy, .feature-media { min-width: 0; }
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy ul { margin: 14px 0; }
.feature-copy li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Quote block */
.quote-block {
  background: var(--celeste);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}
.quote-block p {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0;
  max-width: 62ch;
  margin: 0 auto;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-item { margin-bottom: 26px; }
.contact-item .label {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  margin-bottom: 6px;
  display: block;
}
.contact-item .value { font-size: 17px; color: var(--text); }
.contact-item .value a { color: var(--accent-dark); font-weight: 600; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }
.emergency-banner {
  background: #FFF3E0;
  border: 1px solid #FFD9A0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 26px;
  font-weight: 600;
  color: #7A4A00;
}
.emergency-banner a { color: #7A4A00; text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--accent-dark);
  color: #dbe6ff;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.site-footer h3 { color: #fff; margin-bottom: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid p, .footer-grid a { color: #b7c6ee; }
.footer-grid a:hover { color: #fff; }
.footer-thumbs { display: flex; gap: 10px; margin-top: 16px; }
.footer-thumbs img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 13px;
  color: #93a5d6;
  text-align: center;
}

/* Floating WhatsApp button */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
  transition: transform 0.15s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16 / 10; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .feature-row.reverse .feature-media,
  .feature-row.reverse .feature-copy { order: initial; }
  .contact-grid { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-links, .header-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .icon-link { display: none; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
  }
  body.nav-open .header-actions .btn.btn-primary {
    display: inline-flex;
    position: fixed;
    left: 24px; right: 24px;
    top: calc(var(--header-h) + 200px);
    z-index: 101;
  }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; }
  .section { padding: 52px 0; }
  .callout { padding: 34px 22px; }
  .quote-block { padding: 32px 24px; }
}
