/* ============================================================
   ESCUDERO E HIJOS – main.css
   Estilos 100% idénticos al diseño original
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #C41230;
  --red-dk: #9E0E26;
  --navy:   #1A2B4A;
  --navy-lt:#243554;
  --off:    #F5F4F0;
  --dark:   #111218;
  --mid:    #4A5568;
  --border: #D8D5CE;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
}

h1,h2,h3,h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(17,18,24,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; color: #fff; letter-spacing: 0.04em; }
.logo-text .sub { font-family: 'Barlow', sans-serif; font-weight: 400; font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.12em; text-transform: uppercase; }

nav { display: flex; align-items: center; gap: 28px; }
nav a { color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.15s; }
nav a:hover { color: #fff; }

.btn-header { background: var(--red); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 22px; border: none; cursor: pointer; transition: background 0.15s; }
.btn-header:hover { background: var(--red-dk); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; }

/* ── HERO ── */
#hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://modulos.llamaia.tech/wp-content/uploads/2026/04/WhatsApp-Image-2026-04-28-at-08.18.49.jpeg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.00); } }

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(17,18,24,0.82) 0%, rgba(26,43,74,0.55) 60%, transparent 100%); }
.hero-content { position: relative; z-index: 2; padding: 68px 40px 40px; max-width: 820px; }
.hero-label { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 14px; margin-bottom: 20px; }
.hero-content h1 { font-size: clamp(36px, 6vw, 72px); color: #fff; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-content h1 span { color: var(--red); }
.hero-content p { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.85); max-width: 540px; line-height: 1.6; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary { background: var(--red); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; padding: 14px 32px; border: 2px solid var(--red); cursor: pointer; transition: all 0.15s; display: inline-block; }
.btn-primary:hover { background: var(--red-dk); border-color: var(--red-dk); }
.btn-outline { background: transparent; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; padding: 14px 32px; border: 2px solid rgba(255,255,255,0.6); cursor: pointer; transition: all 0.15s; display: inline-block; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; display: flex; background: rgba(17,18,24,0.88); border-top: 2px solid var(--red); }
.hero-stat { flex: 1; padding: 20px 28px; border-right: 1px solid rgba(255,255,255,0.1); }
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 32px; color: var(--red); line-height: 1; }
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* ── COTIZAR ── */
#cotizar { background: var(--navy); padding: 60px 40px; }
.form-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.form-intro h2 { font-size: 38px; color: #fff; margin-bottom: 12px; }
.form-intro h2 span { color: var(--red); }
.form-intro p { color: rgba(255,255,255,0.65); font-size: 15px; line-height: 1.6; }

.quick-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-form input, .quick-form select, .quick-form textarea { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-family: 'Barlow', sans-serif; font-size: 14px; padding: 12px 16px; outline: none; transition: border-color 0.15s; width: 100%; }
.quick-form input::placeholder, .quick-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.quick-form select { color: rgba(255,255,255,0.7); }
.quick-form select option { color: #111218; background: #fff; }
.quick-form input:focus, .quick-form select:focus, .quick-form textarea:focus { border-color: var(--red); }
.quick-form textarea { grid-column: 1 / -1; resize: none; height: 90px; }
.quick-form .btn-submit { grid-column: 1 / -1; background: var(--red); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; padding: 14px; border: none; cursor: pointer; transition: background 0.15s; }
.quick-form .btn-submit:hover { background: var(--red-dk); }

/* ── SECTION BASE ── */
section { padding: 80px 40px; }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.section-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--red); }
.section-title { font-size: clamp(30px, 4vw, 48px); color: var(--navy); margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--mid); max-width: 560px; line-height: 1.65; margin-bottom: 48px; }

/* ── SOLUCIONES ── */
#soluciones { background: var(--off); }
.solutions-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.sol-card { background: #fff; padding: 36px 32px; border-bottom: 3px solid transparent; transition: border-color 0.15s, box-shadow 0.15s; position: relative; overflow: hidden; }
.sol-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--red); transform: scaleY(0); transition: transform 0.2s; transform-origin: top; }
.sol-card:hover::before { transform: scaleY(1); }
.sol-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.09); }
.sol-icon { width: 48px; height: 48px; background: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.sol-icon svg { width: 26px; height: 26px; fill: #fff; }
.sol-card h3 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.sol-card p { font-size: 14px; color: var(--mid); line-height: 1.6; }

/* ── MINERÍA ── */
#mineria { background: var(--navy); padding: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.mineria-img { background-image: url('https://modulos.llamaia.tech/wp-content/uploads/2026/04/WhatsApp-Image-2026-04-28-at-08.18.46-2.jpeg'); background-size: cover; background-position: center; min-height: 420px; }
.mineria-content { padding: 72px 56px; display: flex; flex-direction: column; justify-content: center; }
.mineria-content .section-label { color: #e8a838; }
.mineria-content .section-label::before { background: #e8a838; }
.mineria-content h2 { font-size: clamp(28px, 3.5vw, 44px); color: #fff; margin-bottom: 20px; }
.mineria-content h2 span { color: var(--red); }
.mineria-content p { color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.65; margin-bottom: 32px; }
.mineria-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.mineria-tag { border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; }

/* ── BENEFICIOS ── */
#beneficios { background: #fff; }
.benefits-wrap { max-width: 1200px; margin: 0 auto; }
.benefits-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.benefit-item { text-align: center; padding: 32px 20px; background: var(--off); border-top: 3px solid var(--red); }
.benefit-item .icon { width: 52px; height: 52px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.benefit-item .icon svg { width: 26px; height: 26px; fill: #fff; }
.benefit-item h4 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.benefit-item p { font-size: 13px; color: var(--mid); line-height: 1.55; }

/* ── GALERÍA ── */
#galeria { background: var(--off); }
.gallery-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 6px; }
.gallery-grid .g-item { overflow: hidden; aspect-ratio: 4/3; background: #ddd; }
.gallery-grid .g-item.tall { grid-row: span 2; aspect-ratio: unset; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.05); }
.gallery-link { display: block; width: 100%; height: 100%; }

/* ── PROCESO ── */
#proceso { background: #fff; }
.proceso-steps { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.proceso-steps::before { content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; background: var(--border); z-index: 0; }
.step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-num { width: 64px; height: 64px; background: var(--navy); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 22px; color: #fff; }
.step:nth-child(odd) .step-num { background: var(--red); box-shadow: 0 0 0 2px var(--red); }
.step h4 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--mid); line-height: 1.55; }

/* ── CLIENTES ── */
#clientes { background: var(--off); }
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.client-card { background: #fff; border: 1px solid var(--border); width: 200px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-decoration: none; transition: box-shadow 0.2s, border-color 0.2s; cursor: pointer; }
.client-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); border-color: var(--red); }
.client-card img { max-width: 140px; max-height: 64px; object-fit: contain; display: block; }
.client-card .client-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; color: var(--mid); text-align: center; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── FAQ ── */
#faq { background: var(--off); }
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; background: none; border: none; text-align: left; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; color: var(--navy); }
.faq-question .arrow { width: 24px; height: 24px; background: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s; }
.faq-question .arrow svg { width: 14px; height: 14px; fill: #fff; }
.faq-question.open .arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 0 20px; font-size: 15px; color: var(--mid); line-height: 1.65; }
.faq-answer.open { display: block; }

/* ── CONTACTO ── */
#contacto { background: var(--navy); }
.contacto-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contacto-info h2 { font-size: 42px; color: #fff; margin-bottom: 16px; }
.contacto-info h2 span { color: var(--red); }
.contacto-info p { color: rgba(255,255,255,0.65); font-size: 16px; line-height: 1.65; margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-item .ci-icon { width: 44px; height: 44px; background: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .ci-icon svg { width: 22px; height: 22px; fill: #fff; }
.contact-item .ci-text .label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.contact-item .ci-text a, .contact-item .ci-text span { display: block; font-size: 16px; font-weight: 600; color: #fff; margin-top: 2px; }
.contact-item .ci-text a:hover { color: var(--red); }
.contact-form-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 40px; }
.contact-form-box h3 { font-size: 24px; color: #fff; margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form select, .contact-form textarea { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-family: 'Barlow', sans-serif; font-size: 14px; padding: 12px 16px; outline: none; transition: border-color 0.15s; width: 100%; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact-form select { color: rgba(255,255,255,0.6); }
.contact-form select option { color: #111218; background: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--red); }
.contact-form textarea { resize: none; height: 110px; }
.contact-form .btn-send { background: var(--red); color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; padding: 14px; border: none; cursor: pointer; transition: background 0.15s; }
.contact-form .btn-send:hover { background: var(--red-dk); }

/* ── FOOTER ── */
footer { background: var(--dark); padding: 48px 40px 28px; border-top: 2px solid var(--red); }
.footer-top { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 28px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.6; margin-top: 16px; max-width: 300px; }
.footer-col h5 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.3); }

/* ── WHATSAPP FLOAT ── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.45); transition: transform 0.2s, box-shadow 0.2s; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
.wa-tooltip { position: fixed; bottom: 100px; right: 28px; background: #fff; border-left: 3px solid #25D366; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--dark); box-shadow: 0 4px 20px rgba(0,0,0,0.15); white-space: nowrap; z-index: 998; opacity: 0; transform: translateY(6px); transition: all 0.2s; pointer-events: none; }
.wa-float:hover ~ .wa-tooltip, .wa-float:focus ~ .wa-tooltip { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .g-item.tall { grid-row: span 1; aspect-ratio: 4/3; }
  .proceso-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .proceso-steps::before { display: none; }
  #mineria { grid-template-columns: 1fr; }
  .mineria-img { min-height: 300px; }
}

@media (max-width: 768px) {
  header { padding: 0 20px; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(17,18,24,0.97); padding: 24px 20px; gap: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
  .hamburger { display: flex; }
  .btn-header { display: none; }
  section { padding: 56px 20px; }
  #cotizar { padding: 48px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 28px; }
  .quick-form { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; gap: 2px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-steps { grid-template-columns: 1fr; gap: 28px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { display: none; }
  .hero-content { padding: 80px 20px 40px; }
}
