/* ─── COMPONENTES ───────────────────────────────────────────── */

/* ── Logo con placa blanca (el archivo del cliente trae fondo blanco) ── */
.logo-badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.logo-badge img {
  height: 30px;
  width: auto;
  display: block;
}

/* ── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-brand);
  animation: btn-glow 2.4s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--accent-dk);
  transform: translateY(-2px);
  animation-play-state: paused;
}

/* ── Glow (call to action) ─────────────────────────────────── */
@keyframes btn-glow {
  0%, 100% {
    box-shadow: var(--shadow-brand), 0 0 10px 2px rgba(201, 161, 90, 0.45);
  }
  50% {
    box-shadow: var(--shadow-brand), 0 0 24px 8px rgba(201, 161, 90, 0.85);
  }
}

.btn-outline {
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--brand);
}

.btn-secondary {
  background: var(--brand);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--brand-dk);
}

/* ── Encabezados de sección ───────────────────────────────── */
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--mid);
  font-size: 1.05rem;
}

.section-head p + p {
  margin-top: 12px;
}

/* ── Tarjetas de servicio ─────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-lt);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card .icon svg {
  width: 26px;
  height: 26px;
  transition: var(--transition);
}

.service-card:hover .icon {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.1) rotate(-8deg);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--mid);
  font-size: 0.95rem;
}

/* ── Franja de números ─────────────────────────────────────── */
.stats-strip {
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 700px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
}

.stats-strip .stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--accent);
}

.stats-strip .stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}

/* ── Collage / composición de fotos (no cuadradas) ────────── */
.collage {
  position: relative;
  min-height: 480px;
}

.collage-photo {
  position: absolute;
  background: var(--white);
  padding: 10px 10px 34px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.collage-photo img {
  border-radius: 2px;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.collage-photo::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gray-dk);
}

.collage-photo.tape::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px;
  height: 26px;
  background: rgba(232, 131, 78, 0.35);
  border: 1px solid rgba(232, 131, 78, 0.5);
}

.collage-photo--a {
  top: 0;
  left: 4%;
  width: 46%;
  height: 260px;
  transform: rotate(-6deg);
  z-index: 2;
}

.collage-photo--b {
  top: 8%;
  right: 2%;
  width: 40%;
  height: 220px;
  transform: rotate(4deg);
  z-index: 1;
}

.collage-photo--c {
  bottom: 0;
  left: 18%;
  width: 42%;
  height: 240px;
  transform: rotate(3deg);
  z-index: 3;
}

.collage-photo--d {
  bottom: 4%;
  right: 6%;
  width: 32%;
  height: 190px;
  transform: rotate(-5deg);
  z-index: 2;
}

.collage-pin {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 4;
}

.collage-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 700px) {
  .collage { min-height: 620px; }
  .collage-photo--a { width: 70%; left: 0; }
  .collage-photo--b { width: 58%; right: 0; top: 42%; }
  .collage-photo--c { width: 62%; left: 12%; bottom: 0; }
  .collage-photo--d { display: none; }
}

/* ── Bloque split (imagen + texto) ────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.split-text .eyebrow { margin-bottom: 14px; }

.split-text h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 18px;
}

.split-text p {
  color: var(--mid);
  margin-bottom: 16px;
}

.split-text ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 28px;
}

.split-text li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
}

.split-text li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Franja CTA final ─────────────────────────────────────── */
.cta-strip {
  background: var(--brand-dk);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-strip h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 480px;
}

/* ── Formulario de contacto ───────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── Info de contacto ──────────────────────────────────────── */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-lt);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-item p,
.contact-info-item a {
  color: var(--mid);
  font-size: 0.95rem;
}

/* ── Reveal on scroll ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Fade-in puro (sin desplazamiento) ────────────────────── */
[data-fade] {
  opacity: 0;
  transition: opacity 1s ease;
}

[data-fade].is-visible {
  opacity: 1;
}

.photo-stack .ph-2[data-fade] {
  transition-delay: 0.25s;
}

/* ── Botón con pulso ──────────────────────────────────────── */
@keyframes btn-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 42, 74, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(11, 42, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(11, 42, 74, 0);
  }
}

.btn-pulse {
  animation: btn-pulse-ring 2.2s ease-out infinite;
}

.btn-pulse:hover {
  animation-play-state: paused;
}

/* ── Tabla / listado condiciones ──────────────────────────── */
.policy-block {
  margin-bottom: 40px;
}

.policy-block h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-lt);
}

.policy-block p,
.policy-block li {
  color: var(--gray-dk);
  font-size: 0.95rem;
}

.policy-block ul {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 4px;
}

.policy-block li::before {
  content: '— ';
  color: var(--accent);
}
