/* =============================================
   PLANTILLA 01 — Servicios Profesionales
   Estilo: Clásico y formal
   ============================================= */

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

:root {
  --navy:      #1a2b4a;
  --navy-dark: #111d33;
  --gold:      #c9a84c;
  --gold-light:#e2c47a;
  --gray-light:#f5f6f8;
  --gray-mid:  #e2e5ea;
  --text:      #2c2c2c;
  --text-muted:#6b7280;
  --white:     #ffffff;
  --radius:    6px;
  --shadow:    0 4px 20px rgba(0,0,0,.10);
  --transition:all .25s ease;
  --max-w:     1140px;
  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.3;
}

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

section { padding: 80px 0; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-primary:hover { background: var(--gold-light); }

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

.divider {
  width: 48px; height: 3px;
  background: var(--gold);
  margin: 16px 0 32px;
}

/* =============================================
   HEADER & NAV
   ============================================= */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: var(--navy-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  transition: var(--transition);
}

header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

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

.logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span { color: var(--gold); }

.logo-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── DROPDOWN SERVICIOS ──────────────────────────────────── */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: ' ▾';
  font-size: .65em;
  opacity: .7;
  display: inline-block;
  transform: rotate(0deg) translate(0, -2px);
  transform-origin: center center;
  transition: transform 0.25s ease, opacity 0.2s ease;
  line-height: 0.8;
}
.has-dropdown:hover > a::after,
.has-dropdown.open > a::after { transform: rotate(180deg); opacity: .9; }
.has-dropdown > .dropdown {
  display: none;
  position: absolute;
  top: 31px;
  left: 0;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  min-width: 220px;
  z-index: 200;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
/* Puente invisible que cubre el gap entre el enlace y el panel */
.has-dropdown > .dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -8px;
  right: -8px;
  height: 10px;
}
.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown { display: block; }
.has-dropdown > .dropdown li { display: block; width: 100%; }
.has-dropdown > .dropdown a {
  display: block;
  width: 100%;
  padding: 9px 18px;
  font-size: .85rem;
  font-weight: 400;
  color: rgba(255,255,255,.8);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  box-sizing: border-box;
}
.has-dropdown > .dropdown a::after { display: none; }
.has-dropdown > .dropdown a:hover { color: var(--gold); background: rgba(255,255,255,.06); }

/* ── BREADCRUMB (iguala estilo .page-hero .breadcrumb) ──────── */
nav.breadcrumb {
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  margin-bottom: 16px;
  text-align: center;
}
nav.breadcrumb a { color: var(--gold-light); text-decoration: none; }
nav.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }

nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--gold);
  background: rgba(255,255,255,.06);
}

nav .nav-cta {
  background: var(--gold);
  color: var(--navy-dark);
  margin-left: 8px;
}
nav .nav-cta:hover { background: var(--gold-light); }

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

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3a5f 100%);
  display: flex; align-items: center;
  padding-top: 72px;
  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='%23c9a84c' 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");
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.35);
  color: var(--gold-light);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold);
}

.hero-stat span {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* =============================================
   ABOUT STRIP
   ============================================= */
.strip {
  background: var(--gray-light);
  padding: 40px 0;
}

.strip-inner {
  display: flex; gap: 32px; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
}

.strip-item {
  display: flex; align-items: center; gap: 14px;
  flex: 1 1 200px;
}

.strip-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.strip-item strong { display: block; font-size: .95rem; color: var(--navy); }
.strip-item span   { font-size: .82rem; color: var(--text-muted); }

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--white); }

.services-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 24px;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:hover::after { width: 100%; }

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

.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p  { font-size: .92rem; color: var(--text-muted); }
.link-text { display: inline-block; margin-top: 10px; font-size: .85rem; font-weight: 700; color: var(--gold); text-decoration: none; }
.link-text:hover { text-decoration: underline; }

/* =============================================
   WHY US
   ============================================= */
.whyus { background: var(--navy); }
.whyus .section-label { color: var(--gold-light); }
.whyus .section-title { color: var(--white); }
.whyus .section-intro { color: rgba(255,255,255,.65); }
.whyus .divider       { background: var(--gold); }

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,.09);
  border-color: var(--gold);
}

.why-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.why-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.why-card p  { color: rgba(255,255,255,.55); font-size: .88rem; }

/* =============================================
   COVERAGE
   ============================================= */
.coverage { background: var(--gray-light); }

.coverage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

.coverage-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 28px 0;
}

.tag {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .85rem; font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
}
.tag:hover { border-color: var(--gold); color: var(--gold); }

.coverage-map {
  background: var(--navy);
  border-radius: var(--radius);
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  opacity: .75;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.testi-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.testi-quote {
  font-size: 3rem; line-height: 1;
  color: var(--gold);
  font-family: Georgia, serif;
  margin-bottom: 8px;
}

.testi-card p {
  font-size: .95rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 24px;
}

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

.testi-avatar {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-weight: 700; font-size: .9rem;
}

.testi-author strong { display: block; font-size: .9rem; color: var(--navy); }
.testi-author span   { font-size: .8rem; color: var(--text-muted); }

.testi-stars { color: var(--gold); font-size: .9rem; margin-bottom: 12px; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #b8862e 100%);
  padding: 60px 0;
}

.cta-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 24px;
}

.cta-banner h2 { color: var(--navy-dark); font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-banner p  { color: rgba(26,43,74,.75); margin-top: 6px; }

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

/* =============================================
   CONTACT FORM (contacto.html)
   ============================================= */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px; align-items: start;
}

.contact-info h2 { margin-bottom: 8px; }

.contact-detail {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 28px;
}

.c-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gray-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.contact-detail strong { display: block; font-size: .85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-detail span   { color: var(--navy); font-weight: 600; }

.form-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

.form-group label {
  display: block; font-size: .85rem; font-weight: 700;
  color: var(--navy); margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

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

.form-success {
  display: none;
  background: #e8f5e9; border: 1px solid #a5d6a7;
  color: #2e7d32;
  border-radius: var(--radius);
  padding: 16px; text-align: center;
  margin-top: 16px;
}

/* =============================================
   SERVICES PAGE — detail
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p  { color: rgba(255,255,255,.65); margin-top: 12px; font-size: 1.05rem; }
.breadcrumb   { color: rgba(255,255,255,.45); font-size: .85rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--gold-light); }

.services-detail { background: var(--white); }

.service-block {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px; align-items: start;
  padding: 36px;
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius);
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-block:hover { box-shadow: var(--shadow); border-color: var(--gold); }

.service-block-icon {
  width: 72px; height: 72px;
  background: var(--navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.service-block h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-block p  { color: var(--text-muted); font-size: .95rem; }

.service-block ul {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px;
}
.service-block ul li {
  background: var(--gray-light);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: .8rem; font-weight: 600; color: var(--navy);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p { font-size: .88rem; margin-top: 14px; line-height: 1.8; max-width: 240px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; flex-wrap: wrap; gap: 12px;
  font-size: .8rem;
}

.footer-bottom a { color: var(--gold-light); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .coverage-inner { grid-template-columns: 1fr; }
  .coverage-map   { min-height: 220px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  section { padding: 56px 0; }

  nav ul      { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; width: 100%; background: var(--navy-dark); padding: 16px; gap: 4px; }
  nav ul.open { display: flex; }
  .hamburger  { display: flex; }
  /* Dropdown mobile */
  nav ul li { display: block; }
  .has-dropdown { display: block; }
  nav a { text-align: center; justify-content: center; }
  .has-dropdown > .dropdown {
    display: none;
    position: static !important;
    box-shadow: none; border: none; border-radius: 0;
    background: transparent; padding: 0 0 8px; min-width: 0; width: 100%;
  }
  .has-dropdown > .dropdown::before { display: none; }
  .has-dropdown:hover > .dropdown { display: none; }
  .has-dropdown.open > .dropdown { display: flex; flex-direction: column; gap: 0; }
  .has-dropdown > .dropdown a { font-size: .85rem; padding: 8px 0; text-align: center; display: block; width: 100%; }
  .has-dropdown:hover > a::after { transform: rotate(0deg) translate(0,-2px); opacity: .7; }
  .has-dropdown.open > a::after { transform: rotate(180deg); opacity: .9; }

  .hero-stats   { gap: 24px; }
  .strip-inner  { flex-direction: column; gap: 20px; }
  .form-row     { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .service-block{ grid-template-columns: 1fr; }
  .service-block-icon { width: 52px; height: 52px; font-size: 1.4rem; }
}

/* FLOATING WHATSAPP */
.float-wa{position:fixed;bottom:24px;right:24px;z-index:150;width:56px;height:56px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(0,0,0,.18);transition:transform .2s,box-shadow .2s;text-decoration:none}
.float-wa:hover{transform:scale(1.1);box-shadow:0 6px 24px rgba(0,0,0,.25)}
.float-wa svg{width:26px;height:26px;fill:#fff}
@media(max-width:600px){.float-wa{bottom:16px;right:16px;width:50px;height:50px}.float-wa svg{width:22px;height:22px}}
