/* ═══════════════════════════════════════════
   HERO — index.html
═══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: white; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.8rem;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 8rem;
  max-width: 820px;
}
.hero-logo {
  width: clamp(160px, 28vw, var(--hero-logo-size));
  height: auto;
  opacity: .95;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
  animation: hero-in .9s ease .1s both;
}
.hero h1 {
  animation: hero-in .9s ease .3s both;
  font-size: clamp(1.75rem, 4.5vw, 3.2rem);
}
.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.82); font-weight: 300; line-height: 1.7;
  max-width: 52ch; animation: hero-in .9s ease .45s both;
}
.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: hero-in .9s ease .6s both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about { padding: 7rem 0; background: white; }

.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.about-img-wrap {
  position: relative; order: 1;
}
@media (min-width: 768px) { .about-img-wrap { order: 0; } }

.about-img-wrap::before {
  content: ''; position: absolute;
  top: -1.4rem; left: -1.4rem;
  width: 55%; height: 55%;
  background: var(--color-primary); border-radius: var(--radius-lg);
  opacity: .07; z-index: 0;
}
.about-img-wrap::after {
  content: ''; position: absolute;
  bottom: -.9rem; right: -.9rem;
  width: 38%; height: 38%;
  background: var(--color-primary); border-radius: var(--radius-lg);
  opacity: .05; z-index: 0;
}
.about-img-wrap img {
  position: relative; z-index: 1;
  width: 100%; border-radius: var(--radius-xl);
  object-fit: cover; aspect-ratio: 4/3; box-shadow: var(--shadow-lg);
}

.about-text h2 { margin-bottom: 1.4rem; }
.about-text p  { font-size: .95rem; color: var(--color-text-body); line-height: 1.78; margin-bottom: .9rem; }

.about-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.about-badge  {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; color: var(--color-text-body);
}
.about-badge svg { width: 15px; height: 15px; stroke: var(--color-primary); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   STATS
═══════════════════════════════════════════ */
.stats {
  padding: 6rem 0;
  background: linear-gradient(135deg, #160000 0%, var(--color-primary) 60%, #b91c1c 100%);
  text-align: center; position: relative; overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,120,0,.12) 0%, transparent 60%);
}
.stats .container { position: relative; }

.stats-title { color: white; margin-bottom: 3.5rem; }

.stats-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

.stat-num   { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; color: white; line-height: 1; }
.stat-label { font-size: .9rem; color: rgba(255,255,255,.78); font-weight: 300; margin-top: .4rem; }

.stats-ctas {
  margin-top: 3.5rem;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   CLIENTS
═══════════════════════════════════════════ */
.clients { padding: 5rem 0; background: var(--color-bg); }
.clients-header { text-align: center; margin-bottom: 3rem; }

/* ═══════════════════════════════════════════
   BENEFITS
═══════════════════════════════════════════ */
.benefits { padding: 7rem 0; background: white; }
.benefits-header { text-align: center; margin-bottom: 3.5rem; }

.benefits-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
}
@media (min-width: 600px)  { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

/* ═══════════════════════════════════════════
   SERVICES LIST — servicio.html
═══════════════════════════════════════════ */
.services-section { background: white; }

.services-header-wrap {
  padding: 5rem 0 3.5rem;
  background: var(--color-bg);
  text-align: center;
}
.services-header { max-width: 680px; margin: 0 auto; }

/* ── List container ── */
.services-list { display: flex; flex-direction: column; }

/* ── Individual row ── */
.service-row { padding: 5rem 0; }
.sr-odd  { background: white; }
.sr-even { background: var(--color-bg); }

/* ── Inner grid ── */
.sr-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  /* imagen 44% / texto 56% */
  .sr-odd  .sr-inner { grid-template-columns: 0.8fr 1fr; gap: 4rem; }
  /* texto primero visualmente, imagen 44% */
  .sr-even .sr-inner { grid-template-columns: 1fr 0.8fr; gap: 4rem; }
  .sr-even .sr-media { order: 2; }
  .sr-even .sr-text  { order: 1; }
}
@media (min-width: 1100px) {
  .sr-odd  .sr-inner { gap: 5.5rem; }
  .sr-even .sr-inner { gap: 5.5rem; }
}

/* ── Media block ── */
.sr-media {
  position: relative;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-media img {
  width: 100%; display: block;
  max-height: 360px;
  object-fit: contain;
  border-radius: var(--radius-xl);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.sr-media:hover img { transform: scale(1.04); }

/* ── Styled variant (nuevas imágenes de servicios) ── */
.sr-media--styled {
  padding: 1.25rem;
  background: white;
  border-radius: calc(var(--radius-xl) + 4px);
  border: 2px solid rgba(255, 13, 0, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), 0 0 0 6px rgba(255, 13, 0, 0.04);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.sr-media--styled:hover {
  border-color: rgba(255, 13, 0, 0.3);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.11), 0 0 0 6px rgba(255, 13, 0, 0.09);
}
.sr-media--styled img {
  border-radius: var(--radius-xl);
}
.sr-even .sr-media--styled {
  background: var(--color-bg);
}

/* shine on hover */
.sr-media::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.sr-media:hover::after { opacity: 1; }

/* ── Number badge ── */
.sr-num {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 3;
  width: 2.6rem; height: 2.6rem;
  background: var(--color-primary);
  color: white; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .5px;
  box-shadow: var(--shadow-red);
}

/* ── Text block ── */
.sr-text { }
.sr-text h3 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--color-primary);
  margin: .6rem 0 1.1rem;
  line-height: 1.2;
}
.sr-lead {
  font-size: 1rem; font-weight: 600;
  color: var(--color-text); line-height: 1.6;
  margin-bottom: .85rem;
}
.sr-text > p:not(.sr-lead) {
  font-size: .95rem; color: var(--color-text-body);
  line-height: 1.78; margin-bottom: 1.8rem;
}

/* ── CTA button ── */
.sr-cta {
  display: inline-flex; align-items: center; gap: .5rem;
}
.sr-cta::after {
  content: '→';
  transition: transform 0.25s ease;
}
.sr-cta:hover::after { transform: translateX(4px); }

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, #160000, var(--color-primary));
  padding: 5.5rem 0; text-align: center; color: white;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,80,0,.18) 0%, transparent 65%);
}
.cta-banner .container { position: relative; }
.cta-banner h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: .7rem; }
.cta-banner p  { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: .98rem; max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-banner-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   CONTACT — contacto.html
═══════════════════════════════════════════ */
.contact-section { padding: 6rem 0 8rem; background: var(--color-bg); }

.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.6fr; align-items: start; }
}

.contact-info h2   { margin-bottom: .7rem; }
.contact-info > p  { font-size: .95rem; color: var(--color-text-body); line-height: 1.75; margin-bottom: 2.2rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.3rem; }
.ci-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: rgba(255,13,0,.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ci-icon svg { width: 19px; height: 19px; stroke: var(--color-primary); }
.ci-text strong { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: .15rem; }
.ci-text span   { font-size: .875rem; color: var(--color-text-body); }

.contact-socials { display: flex; gap: .7rem; margin-top: 2rem; }
.contact-socials a {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1.5px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-body);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.contact-socials a:hover { border-color: var(--color-primary); color: white; background: var(--color-primary); }
.contact-socials svg { width: 16px; height: 16px; }

/* Form card */
.form-card {
  background: white; border-radius: var(--radius-xl);
  padding: 2.5rem; box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }

.form-row {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem;
}
@media (min-width: 520px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label { font-size: .78rem; font-weight: 700; color: #374151; letter-spacing: .3px; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: .72rem 1rem;
  border: 1.5px solid #e5e7eb; border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: .9rem; color: var(--color-text);
  background: #fafafa; outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,13,0,.08);
  background: white;
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit {
  width: 100%; padding: .9rem;
  background: var(--color-primary); color: white;
  border: none; border-radius: var(--radius-full);
  font-family: var(--font-main); font-size: .82rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; margin-top: .6rem;
  transition: background var(--transition-fast), box-shadow var(--transition-base);
}
.form-submit:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-red); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }

.form-success {
  display: none; text-align: center; padding: 2.5rem 1rem; color: #16a34a;
}
.form-success svg   { width: 52px; height: 52px; stroke: #16a34a; margin: 0 auto 1rem; }
.form-success h4    { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.form-success p     { font-size: .9rem; color: var(--color-text-body); }

/* anti-bot honeypot — must stay off-screen */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; overflow: hidden; }

/* optional field indicator */
.field-optional { font-weight: 400; font-size: .75rem; color: var(--color-text-muted); margin-left: .3rem; }

/* inline error messages */
.field-error { font-size: .75rem; color: #dc2626; margin-top: .2rem; display: none; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #dc2626; }
