/* ── Section headings shared ───────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.18;
  margin-bottom: 1rem;
}
.section-title--light { color: var(--color-text); }
.section-title--dark  { color: var(--color-text-dark); }
.section-subtitle {
  font-size: 1.05rem; color: var(--color-text-muted);
  max-width: 640px; line-height: 1.7;
}
.section-subtitle--dark { color: var(--color-text-dark-2); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-inline: auto; }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background-image: url('../images/hero2.png');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,13,16,0.90) 0%,
    rgba(13,13,16,0.72) 55%,
    rgba(13,13,16,0.45) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  padding-block: clamp(5rem, 12vw, 8rem);
  max-width: 940px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}
.hero-title span { color: var(--color-accent); white-space: nowrap; }
.hero-bajada {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: rgba(245,245,247,0.95);
  max-width: 580px;
  margin-bottom: 0.6rem;
  line-height: 1.45;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: rgba(245,245,247,0.72);
  max-width: 580px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 740px;
  backdrop-filter: blur(8px);
}
.stat-card {
  background: rgba(28,28,30,0.72);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  display: block;
}
.stat-number::before { content: '+'; }
.stat-label {
  font-size: 0.78rem; font-weight: 500;
  color: rgba(245,245,247,0.7);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 0.35rem;
  display: block;
}

/* stat-number without '+' prefix for static values */
.stat-number--static::before { content: '' !important; }

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 380px; }
}
@media (max-width: 360px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 220px; }
  .hero-cta-row .btn { width: 100%; }
}
@media (min-width: 361px) and (max-width: 640px) {
  .hero-cta-row .btn { flex: 1 1 auto; }
}

/* ══════════════════════════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════════════════════════ */
#servicios { background: var(--color-bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: rgba(123,130,232,0.4);
  box-shadow: 0 8px 32px rgba(123,130,232,0.12);
  transform: translateY(-3px);
}
.service-card__img {
  width: 100%; height: 220px;
  object-fit: cover; object-position: center 20%;
}
.service-card__body { padding: 1.75rem; }
.service-card__icon {
  width: 48px; height: 48px;
  background: var(--color-accent-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-accent);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--color-text);
}
.service-card__desc {
  font-size: 0.95rem; color: var(--color-text-muted);
  line-height: 1.65; margin-bottom: 1.25rem;
}
.service-card__link {
  font-size: 0.9rem; font-weight: 600;
  color: var(--color-accent);
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap var(--transition);
}
.service-card__link:hover { gap: 0.65rem; }

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

/* ══════════════════════════════════════════════════════════════
   NOSOTROS
══════════════════════════════════════════════════════════════ */
#nosotros { background: var(--color-bg-light); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.about-text .section-title { margin-bottom: 1.25rem; }
.about-body {
  font-size: 1rem; color: var(--color-text-dark-2);
  line-height: 1.75; margin-bottom: 1rem;
}

/* Timeline */
.timeline { margin-top: 2rem; }
.tl-item {
  display: flex; gap: 1.25rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-spine {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 20px;
}
.tl-dot {
  width: 12px; height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.tl-line {
  width: 2px; flex: 1;
  background: var(--color-border-light);
  margin-top: 4px;
}
.tl-item:last-child .tl-line { display: none; }
.tl-year {
  font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.tl-desc { font-size: 0.92rem; color: var(--color-text-dark-2); line-height: 1.55; }

/* About image */
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { aspect-ratio: 16/9; order: -1; }
  .about-image img { object-position: center 20%; }
}

/* ══════════════════════════════════════════════════════════════
   MISIÓN / VISIÓN / VALORES
══════════════════════════════════════════════════════════════ */
#mision { background: var(--color-bg); }

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.mvv-card {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.mvv-card:hover {
  border-color: rgba(123,130,232,0.3);
  transform: translateY(-2px);
}
.mvv-card__icon {
  width: 52px; height: 52px;
  background: var(--color-accent-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}
.mvv-card__icon svg { width: 28px; height: 28px; }
.mvv-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.mvv-card__body { font-size: 0.93rem; color: var(--color-text-muted); line-height: 1.7; }

@media (max-width: 768px) {
  .mvv-grid { grid-template-columns: 1fr; }
}
@media (min-width: 480px) and (max-width: 768px) {
  .mvv-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   CLIENTES
══════════════════════════════════════════════════════════════ */
#clientes { background: var(--color-bg-light); }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 2.5rem;
}
.client-pill {
  background: #fff;
  border: 1.5px solid var(--color-border-light);
  border-radius: 2rem;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.88rem; font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.3;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.client-pill:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(123,130,232,0.12);
}

@media (max-width: 768px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .clients-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════
   DIFERENCIADORES
══════════════════════════════════════════════════════════════ */
#diferenciadores { background: var(--color-bg-2); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.why-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition), transform var(--transition);
}
.why-card:hover {
  border-color: rgba(123,130,232,0.35);
  transform: translateY(-3px);
}
.why-card__icon {
  width: 56px; height: 56px;
  background: var(--color-accent-dim);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}
.why-card__icon svg { width: 30px; height: 30px; }
.why-card__title {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 0.65rem; color: var(--color-text);
}
.why-card__desc { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.65; }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .why-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════════════════════ */
#contacto { background: var(--color-bg-light); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-info__title {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--color-text-dark); margin-bottom: 0.75rem;
}
.contact-info__sub {
  font-size: 0.95rem; color: var(--color-text-dark-2);
  line-height: 1.65; margin-bottom: 2rem;
}
.contact-detail {
  display: flex; align-items: flex-start; gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.contact-detail svg { width: 20px; height: 20px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.contact-detail a, .contact-detail span {
  font-size: 0.95rem; color: var(--color-text-dark-2);
  line-height: 1.4;
}
.contact-detail a:hover { color: var(--color-accent); }

/* Form */
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group--full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid #dde1e7;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--color-text-dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(123,130,232,0.15);
}
.form-control.error { border-color: #e53e3e; }
.form-control.valid {
  border-color: #38a169;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338a169' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}
select.form-control { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E9BAE' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.25rem; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error {
  font-size: 0.8rem; color: #e53e3e;
  margin-top: 0.3rem; display: none;
}
.form-error.visible { display: block; }

/* Checkbox */
.form-check {
  display: flex; align-items: flex-start; gap: 0.65rem;
  margin-bottom: 1.5rem; cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--color-accent);
  margin-top: 1px; cursor: pointer;
}
.form-check-label {
  font-size: 0.85rem; color: var(--color-text-dark-2); line-height: 1.4;
}
.form-check-label a { color: var(--color-accent); text-decoration: underline; }

/* Submit button */
.btn-submit {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1.5rem;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { opacity: 0.7; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Success / Error states */
.form-feedback { display: none; }
.form-feedback.visible { display: block; }
.form-feedback--success {
  text-align: center; padding: 2.5rem 1.5rem;
}
.form-feedback--success svg { width: 56px; height: 56px; color: #38a169; margin: 0 auto 1rem; }
.form-feedback--success h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--color-text-dark); margin-bottom: 0.5rem; }
.form-feedback--success p { color: var(--color-text-dark-2); }
.form-feedback--error {
  background: #fff5f5; border: 1px solid #fed7d7;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; margin-bottom: 1rem;
  font-size: 0.9rem; color: #c53030;
}

/* Honeypot */
.honeypot { display: none !important; }

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════ */
#faq { background: var(--color-bg); }

.faq-list {
  max-width: 800px; margin: 3rem auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }

.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--color-accent); }
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--color-silver);
  transition: transform var(--transition), color var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--color-accent); }
.faq-item.open .faq-question { color: var(--color-accent); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ══════════════════════════════════════════════════════════════
   WHATSAPP FLOAT BUTTON
══════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ══════════════════════════════════════════════════════════════
   PHOTO STRIPS
══════════════════════════════════════════════════════════════ */
.photo-strip {
  width: 100%;
  height: clamp(220px, 28vw, 360px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.photo-strip::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,16,0.55) 0%,
    rgba(13,13,16,0.18) 50%,
    rgba(13,13,16,0.55) 100%
  );
}
@media (min-width: 768px) {
  .photo-strip { background-attachment: fixed; }
}
.photo-strip--03 {
  background-image: url('../images/03.jpeg');
  background-position: center 30%;
}
.photo-strip--05 {
  background-image: url('../images/05.jpeg');
  background-position: center 40%;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
#footer {
  background: #0D0D10;
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand__logo { height: 44px; width: auto; margin-bottom: 1rem; filter: brightness(0.9); }
.footer-brand__tagline {
  font-size: 0.88rem; color: var(--color-silver);
  line-height: 1.65; max-width: 260px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-text); margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.9rem; color: var(--color-silver);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 0.75rem;
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a, .footer-contact-item span {
  font-size: 0.88rem; color: var(--color-silver); line-height: 1.4;
}
.footer-contact-item a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem; color: rgba(142,155,174,0.6);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   PRIVACY PAGE
══════════════════════════════════════════════════════════════ */
.privacy-page {
  max-width: 760px; margin: 0 auto;
  padding: 4rem clamp(1rem, 4vw, 2rem) 5rem;
}
.privacy-page h1 {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 800; margin-bottom: 2rem;
}
.privacy-page h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700; margin: 2rem 0 0.6rem;
  color: var(--color-accent);
}
.privacy-page p { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.8; margin-bottom: 0.75rem; }
.privacy-page a { color: var(--color-accent); }
.privacy-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; color: var(--color-accent);
  margin-bottom: 2.5rem; font-weight: 600;
}
.privacy-back:hover { opacity: 0.8; }
