/*
Theme Name: Ambulancias San Pablo
Theme URI: https://ambulanciassanpablo.com.mx/
Author: Ambulancias San Pablo
Description: Tema a la medida para el sitio de Ambulancias San Pablo, servicio de ambulancias en el área metropolitana de Monterrey.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ambulancias-san-pablo
*/

:root {
  --orange: #f5741d;
  --orange-light: #ff8c3d;
  --blue: #1a5bc4;
  --blue-dark: #123f8a;
  --whatsapp: #25d366;
  --bg: #0b0b0c;
  --bg-alt: #131315;
  --card: #19191c;
  --card-border: #26262a;
  --text: #ffffff;
  --muted: #a8a8ae;
  --radius: 14px;
  --shadow-sm: 0 4px 14px rgba(0,0,0,.25);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }
a { color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--orange);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: linear-gradient(135deg, var(--orange-light), var(--orange)); color: #fff; }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(245,116,29,.35); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { box-shadow: 0 12px 28px rgba(37,211,102,.3); }
.btn-outline { background: transparent; border-color: #3a3a3f; color: var(--text); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,11,12,.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #202023;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.5rem; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(245,116,29,.3);
}
.logo-icon svg { width: 22px; height: 22px; color: #fff; }
.logo-text { font-weight: 800; line-height: 1.15; letter-spacing: .3px; font-size: .95rem; }
nav { display: flex; gap: 2rem; }
nav a { color: #e4e4e6; text-decoration: none; font-weight: 600; font-size: .92rem; position: relative; padding-bottom: 4px; }
nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
nav a:hover { color: #fff; }
nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }
.social-icons { display: flex; gap: .6rem; }
.social-icons a {
  color: #cfcfd2; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #2c2c30; display: flex; align-items: center; justify-content: center;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.social-icons a svg { width: 16px; height: 16px; }
.social-icons a:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

.hero { position: relative; min-height: 76vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: scale(1.02); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11,11,12,.35) 0%, rgba(11,11,12,.75) 55%, rgba(11,11,12,.97) 100%);
}
.hero-text { position: relative; z-index: 2; padding: 3.5rem 1.5rem 4rem; max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(245,116,29,.14); border: 1px solid rgba(245,116,29,.4);
  color: var(--orange-light); font-weight: 700; font-size: .82rem;
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero-badge span.dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d876;
  box-shadow: 0 0 0 3px rgba(52,216,118,.25);
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; margin: 0 0 1.1rem; max-width: 720px; letter-spacing: -.01em; }
.hero p { font-size: 1.1rem; max-width: 620px; color: var(--muted); margin: 0 0 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.section { padding: 5.5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: .6rem 0 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 1.75rem;
  border: 1px solid var(--card-border);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #3a3a3f; box-shadow: var(--shadow-lg); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.1rem;
  background: rgba(245,116,29,.12); display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 24px; height: 24px; color: var(--orange); }
.card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.two-col p { color: var(--muted); }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.highlights li {
  display: flex; align-items: center; gap: .8rem;
  background: var(--card); padding: 1rem 1.2rem; border-radius: 10px;
  border: 1px solid var(--card-border); font-weight: 500; font-size: .95rem;
}
.highlights li svg {
  width: 20px; height: 20px; color: var(--orange); flex-shrink: 0;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4/3; border: 1px solid var(--card-border);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.08); }

.contact-form {
  display: grid; gap: 1.1rem; background: var(--card); padding: 1.75rem;
  border-radius: var(--radius); border: 1px solid var(--card-border);
}
.contact-form label { display: grid; gap: .4rem; font-weight: 600; font-size: .88rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
  padding: .75rem .9rem; border: 1px solid #303034; border-radius: 8px;
  background: #0f0f11; color: #fff; font: inherit; transition: border-color .18s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--orange);
}
.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; font-size: .98rem; }
.contact-list li svg {
  width: 20px; height: 20px; color: var(--orange); flex-shrink: 0;
}
.contact-list strong { font-weight: 700; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--orange); }

.site-footer {
  background: #000; color: var(--muted); padding: 1.75rem 0; text-align: center;
  font-size: .88rem; border-top: 1px solid #1c1c1f;
}

@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #0b0b0c;
    border-bottom: 1px solid #202023; flex-direction: column; gap: 1rem;
    padding: 1.25rem 1.5rem; display: none;
  }
  nav.open { display: flex; }
  .nav-toggle { display: block; }
  .social-icons { display: none; }
}
