/* =============================
   Grúas Herrera — Landing Page
   ============================= */

:root {
  --navy-900: #0a1a4d;
  --navy-800: #0b1f5e;
  --navy-700: #16327a;
  --navy-600: #21407f;
  --navy-testimonial: #001c62;
  --gold: #f5d128;
  --gold-dark: #e0ba17;
  --red: #e8151a;
  --red-dark: #c3100f;
  --gray-bg: #f0f1f6;
  --text-dark: #10182f;
  --text-body: #3d4457;
  --text-muted: #6b7280;
  --white: #ffffff;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px rgba(16, 24, 47, 0.10);
  --shadow-btn: 0 8px 18px rgba(232, 21, 26, 0.25);
  --container-w: 1180px;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  margin: 0 0 .5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: #fff; padding: 12px 20px;
  z-index: 10000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
  padding: 16px 28px;
  border-radius: 999px;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-yellow {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(245, 209, 40, 0.35);
}
.btn-yellow:hover { background: var(--gold-dark); }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-red:hover { background: var(--red-dark); }

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: #fff;
  border-bottom: 1px solid #eceef3;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
  gap: 16px;
}
.logo img { height: 44px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 16px;
}
.header-phone .icon-phone { width: 18px; height: 18px; color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,13,38,.88) 20%, rgba(6,13,38,.55) 55%, rgba(6,13,38,.25) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: start;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
}
.hero-subheading {
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 18px;
}
.hero-text {
  color: rgba(255,255,255,.92);
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.6;
}
.hero-text strong { color: #fff; }

.hero-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 22px 0 28px;
}
.hero-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 600; font-size: 14.5px; color: #fff;
}
.check-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
  line-height: 1;
}

/* Hero form card */
.hero-form-card {
  background: #fff;
  color: var(--text-body);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.hero-form-card h2 {
  font-size: 22px;
  color: var(--navy-900);
}
.hero-form-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dfe2ea;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-group input::placeholder { color: #a7adba; }
.form-group input:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(22,50,122,.12);
}
.form-legal {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin: 14px 0 0;
}

/* Honeypot: off-screen (not display:none) so most bots still fill it in */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.2em;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  margin: 12px 0 0;
}
.form-status.is-success { color: #1a7f37; }
.form-status.is-error { color: var(--red); }

/* ---------- Mid banner ---------- */
.mid-banner { padding: 64px 0 56px; text-align: center; }
.mid-banner-lead {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}
.mid-banner-box {
  background: var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  max-width: 900px;
  margin: 0 auto;
}
.mid-banner-box h3 {
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 10px;
}
.mid-banner-box p {
  color: rgba(255,255,255,.85);
  margin: 0;
  font-size: 14.5px;
}

/* ---------- Siempre cerca de ti ---------- */
.near-you { background: var(--gray-bg); padding: 72px 0; }
.eyebrow {
  text-align: center;
  color: var(--red);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
}
.section-heading {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 40px;
}
.eyebrow-left, .section-heading-left { text-align: left; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.near-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.near-card-body { padding: 20px 22px 24px; }
.near-card-body h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}
.near-card-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Carousel */
.carousel {
  position: relative;
  aspect-ratio: 4 / 2.55;
  overflow: hidden;
  background: #dde1ea;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.65,0,.35,1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(10,14,30,.45);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}
.carousel:hover .carousel-arrow, .carousel:focus-within .carousel-arrow { opacity: 1; }
.carousel-arrow:hover { background: rgba(10,14,30,.7); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.carousel-dots button {
  width: 7px; height: 7px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.55);
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dots button.is-active {
  background: #fff;
  transform: scale(1.3);
}
.carousel-dots:empty { display: none; }

/* ---------- Services (dark overlay) ---------- */
.services {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}
.services-bg { position: absolute; inset: 0; z-index: 0; }
.services-bg img { width: 100%; height: 100%; object-fit: cover; }
.services .container { position: relative; z-index: 1; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.service-card {
  background: rgba(11, 31, 94, .82);
  padding: 34px 26px;
  text-align: center;
  color: #fff;
}
.service-icon {
  width: 30px; height: 30px;
  color: var(--gold);
  margin: 0 auto 14px;
}
.service-card h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin: 0;
  max-width: 26ch;
  margin-inline: auto;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-700); padding: 46px 0; }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band-inner h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.cta-band-inner p { color: rgba(255,255,255,.75); margin: 0; font-size: 14.5px; }

/* ---------- FAQ + testimonials ---------- */
.faq-section { padding: 84px 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: start;
}
.faq-sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 28px; }

.accordion-item {
  background: #fff;
  border: 1px solid #e7e9f0;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none;
  padding: 18px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  text-align: left;
}
.accordion-icon {
  position: relative;
  width: 12px; height: 12px; flex-shrink: 0;
}
.accordion-icon::before, .accordion-icon::after {
  content: ''; position: absolute; background: var(--red);
  transition: transform .25s ease;
}
.accordion-icon::before { width: 12px; height: 2px; top: 5px; left: 0; }
.accordion-icon::after { width: 2px; height: 12px; top: 0; left: 5px; }
.accordion-item.is-open .accordion-icon::after { transform: scaleY(0); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.accordion-panel p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.accordion-item.is-open .accordion-panel { max-height: 220px; }

.tag-testimonios {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-900);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: -18px;
  position: relative;
  z-index: 2;
  margin-left: 24px;
}
.testimonial-card {
  background: var(--navy-testimonial);
  border-radius: var(--radius-lg);
  padding: 38px 32px 30px;
  color: #fff;
}
.testimonial-card h2 { color: #fff; font-size: 22px; }
.testimonial-card blockquote {
  margin: 0 0 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.testimonial-card blockquote:first-of-type { border-top: none; }
.testimonial-card blockquote p {
  font-style: italic;
  font-size: 14.5px;
  color: rgba(255,255,255,.9);
  margin-bottom: 14px;
}
.testimonial-card footer {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* ---------- CTA2 ---------- */
.cta2Fondo{
  background: url(../assets/img/3F65BD55-E91D-4E77-96B7-C83A0A66D23E.jpg);
  background-position: center center;
  background-size: cover;
}

.cta2 {
  background: rgba(27, 63, 135, 0.8);
  padding: 90px 0;
  text-align: center;
}

.cta2-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta2-inner > p {
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 15px;
}
.cta2-box {
  background: var(--navy-testimonial);
  border-radius: var(--radius-lg);
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 40px;
}
.cta2-box p {
  color: rgba(255,255,255,.92);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.cta2-box strong { color: var(--red); }

/* ---------- Form section ---------- */
.form-section { background: var(--gray-bg); padding: 84px 0; }
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 0 auto;
  padding: 34px 38px;
  box-shadow: var(--shadow-card);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer-logo {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}
.footer-heading {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-hours { color: var(--gold); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.footer-list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--gold); }
.footer-list a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 24px;
  font-size: 12.5px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: #fff; }

/* ---------- Floating buttons ---------- */
.floating-buttons {
  position: fixed;
  right: calc(18px + var(--safe-right));
  bottom: calc(24px + var(--safe-bottom));
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  display: flex; align-items: center; gap: 10px;
  width: 52px; height: 52px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  overflow: hidden;
  transition: width .28s ease, transform .2s ease, box-shadow .2s ease;
  padding: 0 15px;
}
.float-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.float-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease;
}
.float-btn:hover {
  width: 148px;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.3);
}
.float-btn:hover .float-label { opacity: 1; }
.float-call { background: var(--red); }
.float-whatsapp { background: #25d366; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =============================
   Responsive
   ============================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-card { max-width: 480px; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
  .header-phone span { display: none; }
  .logo img { height: 38px; }

  .hero { padding: 32px 0 48px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-checklist { grid-template-columns: 1fr; }
  .hero-form-card { padding: 24px 20px; max-width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .mid-banner { padding: 48px 0; }
  .mid-banner-box { padding: 22px 20px; }

  .near-you { padding: 56px 0; }
  .cards-grid { grid-template-columns: 1fr; }

  .services { padding: 56px 0; }
  .services-grid { grid-template-columns: 1fr; gap: 2px; }

  .cta-band-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-band-inner .btn { width: 100%; }

  .faq-section { padding: 56px 0; }
  .tag-testimonios { margin-left: 20px; }
  .testimonial-card { padding: 30px 22px 24px; }

  .cta2 { padding: 56px 0; }
  .cta2-box { padding: 26px 22px; }
  .cta2-box .btn { width: 100%; }

  .form-section { padding: 56px 0; }
  .form-card { padding: 26px 20px; }

  .footer-grid { grid-template-columns: 1fr; padding: 48px 0 32px; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  .floating-buttons { right: calc(14px + var(--safe-right)); bottom: calc(18px + var(--safe-bottom)); }
  .float-btn:hover { width: 132px; }
}

@media (max-width: 380px) {
  .hero-content h1 { font-size: 1.75rem; }
  .btn-lg { padding: 15px 22px; font-size: 14px; }
}
