/* ══════════════════════════════════════════════════
   Prolock 24H – main.css
   ══════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────── */
:root {
  --navy:   #042950;
  --gold:   #dda85b;
  --white:  #ffffff;
  --gray:   #f5f5f5;
  --text:   #2d2d2d;
  --muted:  #666;
  --border: #e0e0e0;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(4,41,80,.1);
  --max:    1160px;
  --font:   'Poppins', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Tipografía ─────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--muted); line-height: 1.7; }

/* ── Layout ─────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section    { padding: 72px 0; }
.section--gray { background: var(--gray); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy p { color: rgba(255,255,255,.8); }

/* ── Botones ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font); font-size: .9375rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s; text-decoration: none;
}
.btn--primary  { background: var(--navy); color: #fff; }
.btn--primary:hover { background: #063266; }
.btn--outline  { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--gold     { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--gold:hover { background: #c9943e; }
.btn--white    { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--gray); }
.btn--sm { padding: 9px 20px; font-size: .875rem; }

/* ── Header ─────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 70px;
}
.header__logo img { height: 48px; width: auto; }
.header__logo span {
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
}

/* Nav desktop */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 4px;
  font-size: .875rem; font-weight: 500; color: var(--text);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav__link:hover, .nav__link--active { color: var(--navy); background: var(--gray); }
.nav__link--active { font-weight: 600; }
.nav__arrow { font-size: .6rem; transition: transform .2s; }
.nav__item:hover .nav__arrow { transform: rotate(180deg); }

/* Dropdown */
.nav__dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; min-width: 230px;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 200;
  padding: 6px 0;
}
.nav__item:hover .nav__dropdown { display: block; }
.nav__dropdown a {
  display: block; padding: 9px 18px;
  font-size: .875rem; color: var(--text);
  transition: background .15s, color .15s;
}
.nav__dropdown a:hover { background: var(--gray); color: var(--navy); }

/* CTA + lang */
.header__actions { display: flex; align-items: center; gap: 12px; }

/* Lang switcher */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 20px;
  background: #fff; cursor: pointer; font-size: .8125rem; font-weight: 500;
  transition: border-color .2s;
}
.lang__btn:hover { border-color: var(--navy); }
.lang__btn img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.lang__menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 200;
  min-width: 150px; padding: 6px 0;
}
.lang.open .lang__menu { display: block; }
.lang__menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; font-size: .875rem; color: var(--text);
  transition: background .15s;
}
.lang__menu a:hover { background: var(--gray); }
.lang__menu img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all .25s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 70px 0 0 0;
  background: #fff; z-index: 99; overflow-y: auto;
  padding: 20px; border-top: 1px solid var(--border);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0;
  font-size: 1rem; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--navy); }
.mobile-nav__group { padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-nav__group-title {
  font-weight: 600; color: var(--navy);
  padding: 8px 0 4px; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase;
}
.mobile-nav__sub a { padding: 9px 0 9px 14px; font-size: .9rem; }
.mobile-nav__actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 520px; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy) 55%, #063a6b 100%);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .22;
}
.hero__content { position: relative; z-index: 1; padding: 80px 0; max-width: 620px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: var(--gold); padding: 6px 14px; border-radius: 20px;
  font-size: .8125rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p  { color: rgba(255,255,255,.85); font-size: 1.0625rem; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__phones {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px;
}
.hero__phone {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.9); font-size: .9375rem; font-weight: 600;
}
.hero__phone-icon {
  width: 36px; height: 36px; background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Stat strip ─────────────────────────────────── */
.stats {
  background: var(--gold); padding: 18px 0;
}
.stats__inner {
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.stat { text-align: center; color: #fff; }
.stat__num { font-size: 1.5rem; font-weight: 700; display: block; }
.stat__lbl { font-size: .78rem; opacity: .9; }

/* ── Cards ──────────────────────────────────────── */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 28px 24px;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(4,41,80,.14); transform: translateY(-2px); }
.card__icon {
  width: 52px; height: 52px; background: rgba(4,41,80,.07);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.5rem;
}
.card h3 { color: var(--navy); margin-bottom: 8px; }
.card p  { font-size: .9rem; }

/* ── Section heading ────────────────────────────── */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head__label {
  display: inline-block; background: rgba(4,41,80,.07);
  color: var(--navy); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p  { max-width: 560px; margin: 0 auto; }

/* ── Two-col ────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.two-col--flip { direction: rtl; }
.two-col--flip > * { direction: ltr; }
.two-col__img {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
}
.two-col__content h2 { margin-bottom: 16px; }
.two-col__content p  { margin-bottom: 20px; }

/* ── Checklist ──────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.checklist li::before {
  content: '✓'; color: var(--gold); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

/* ── Accordion ──────────────────────────────────── */
.accordion { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; background: #fff; cursor: pointer;
  border: none; font-family: var(--font); font-size: 1rem; font-weight: 600;
  color: var(--navy); text-align: left; gap: 12px; transition: background .15s;
}
.accordion-btn:hover { background: var(--gray); }
.accordion-btn svg { flex-shrink: 0; transition: transform .25s; }
.accordion-item.open .accordion-btn svg { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 20px 20px; }
.accordion-item.open .accordion-body { display: block; }
.accordion-body p { color: var(--muted); }

/* ── Slider ─────────────────────────────────────── */
.slider { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/7; }
.slider__track { height: 100%; }
.slider__slide { display: none; height: 100%; }
.slider__slide.active { display: block; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(4,41,80,.55); color: #fff; border: none;
  width: 44px; height: 56px; border-radius: 4px; cursor: pointer;
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2;
}
.slider__btn:hover { background: rgba(4,41,80,.85); }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 2;
}
.slider__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s;
}
.slider__dot.active { background: #fff; }

/* ── Tarifa table ───────────────────────────────── */
.tarifa-section { margin-bottom: 40px; }
.tarifa-section h3 {
  color: var(--navy); font-size: 1.05rem; padding: 10px 0;
  border-bottom: 2px solid var(--navy); margin-bottom: 0;
}
.tarifa-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--border); gap: 12px;
}
.tarifa-row:last-child { border-bottom: none; }
.tarifa-name { font-weight: 500; flex: 1; font-size: .9375rem; }
.tarifa-desc { font-size: .82rem; color: var(--muted); font-style: italic; }
.tarifa-price { font-weight: 700; color: var(--navy); white-space: nowrap; flex-shrink: 0; }

/* ── Formulario contacto ────────────────────────── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .875rem; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: .9375rem; color: var(--text);
  background: #fff; transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(4,41,80,.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; }
.form-check input { margin-top: 3px; flex-shrink: 0; }
.form-check a { color: var(--navy); text-decoration: underline; }
.form__error { color: #c00; font-size: .875rem; display: none; }
.form__error.visible { display: block; }

/* ── CTA Banner ─────────────────────────────────── */
.cta-banner {
  background: var(--navy); color: #fff;
  padding: 48px 0; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; font-size: 1.5rem; }
.cta-banner p  { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.cta-banner__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Contact info ───────────────────────────────── */
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item__icon {
  width: 44px; height: 44px; background: rgba(4,41,80,.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.contact-item__label { font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.contact-item__val { font-weight: 600; font-size: 1rem; }
.contact-item__val a { color: var(--navy); }
.contact-item__val a:hover { text-decoration: underline; }

/* ── WhatsApp flotante ──────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  font-size: 1.6rem; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ── Footer ─────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 56px 0 24px; }
.footer__grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 40px; margin-bottom: 40px;
}
.footer__brand img { height: 52px; margin-bottom: 12px; }
.footer__brand p  { font-size: .875rem; }
.footer__col h4   { color: #fff; font-size: .875rem; font-weight: 600; margin-bottom: 14px; letter-spacing: .05em; text-transform: uppercase; }
.footer__col ul   { display: flex; flex-direction: column; gap: 8px; }
.footer__col a    { font-size: .875rem; color: rgba(255,255,255,.7); transition: color .15s; }
.footer__col a:hover { color: var(--gold); }
.footer__phones   { display: flex; flex-direction: column; gap: 10px; }
.footer__phone    { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.footer__phone a  { color: rgba(255,255,255,.9); font-weight: 600; }
.footer__phone a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.45);
}

/* ── Página interior hero ───────────────────────── */
.page-hero {
  background: var(--navy); padding: 56px 0 48px;
  color: #fff;
}
.page-hero__label { color: var(--gold); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 640px; }

/* ── Feature list ───────────────────────────────── */
.features { display: flex; flex-direction: column; gap: 20px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(4,41,80,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.feature h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.feature p  { font-size: .9rem; }

/* ── Gracias page ───────────────────────────────── */
.thanks { text-align: center; padding: 100px 0; }
.thanks__icon { font-size: 4rem; margin-bottom: 20px; }
.thanks h1 { margin-bottom: 12px; color: var(--navy); }
.thanks p  { margin-bottom: 30px; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav, .header__actions .btn { display: none; }
  .hamburger { display: flex; }

  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col--flip { direction: ltr; }
  .two-col__img { max-height: 280px; }

  .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats__inner { gap: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 48px 0; }

  .hero { min-height: auto; }
  .hero__content { padding: 60px 0; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }

  .cta-banner__actions { flex-direction: column; align-items: center; }

  /* Mostrar lang en móvil */
  .header__actions .lang { display: block; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .container { padding: 0 16px; }
}
