/* LaPomada by Moveastic — CSS v4.5 */
/* v4.5: reset GP inner-container padding, reduce card spacing.
   v4.0: fix contraste inputs (#b0bcd0→#767676), copyright, stats strip,
   hero badge, iconos en features, etiquetas de tecnología, estrellas.  */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ── Base ─────────────────────────────────────── */
body {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #ffffff;
}

/* Ocultar el título de página duplicado del tema */
.entry-title { display: none !important; }

/* ── Skip link (9.2.4.1) ──────────────────────── */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: #0055b3; color: #ffffff;
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Focus visible (9.2.4.7) ─────────────────── */
:focus-visible {
  outline: 3px solid #0055b3;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Logo ─────────────────────────────────────── */
.site-logo img.is-logo-image,
.site-logo img.header-image {
  max-width: 180px !important;
  width: auto !important; height: auto !important;
}

/* ── Header ───────────────────────────────────── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8edf5;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.inside-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: 1200px; margin: 0 auto;
}

/* ── Navegación ───────────────────────────────── */
.main-navigation a {
  color: #3a3a3a; text-decoration: none;
  font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  display: block;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: #eef4ff; color: #0055b3;
}

/* ── Hero ─────────────────────────────────────── */
.hero-section {
  background: linear-gradient(140deg, #060f1e 0%, #0d2251 50%, #163571 100%);
  padding: 96px 32px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(0,85,179,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(79,172,254,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(0,34,80,0.5) 0%, transparent 60%);
  pointer-events: none;
}

/* Pill/badge sobre el H1 */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #c8d8f8;
  font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 100px;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
}
.hero-badge::before {
  content: "";
  display: inline-block; width: 6px; height: 6px;
  background: #4facfe; border-radius: 50%;
  box-shadow: 0 0 6px #4facfe;
}

.hero-section h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  position: relative;
}
/* Texto de acento dentro del h1 */
.hero-section h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* El <p> del hero está dentro de .wp-block-group__inner-container (no hijo directo)
   y no tiene clase wp-block-paragraph — selector con > fallaba. Usar descendiente
   y :not(.hero-badge) para no afectar el pill badge. */
.hero-section p:not(.hero-badge),
.hero-section .wp-block-paragraph {
  font-size: 20px;
  color: #c8d8f8 !important; /* 13.37:1 sobre #060f1e — !important para ganar a GeneratePress */
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
  position: relative;
}
.hero-section .wp-block-image {
  margin-top: 56px; position: relative;
}
.hero-section .wp-block-image img {
  border-radius: 16px;
  max-width: 900px; width: 100%;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.hero-section .wp-block-buttons { position: relative; }

/* Estadísticas dentro del hero */
.hero-stats {
  display: flex; justify-content: center;
  gap: 40px; flex-wrap: wrap;
  margin-top: 48px; position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
}
.hero-stat-item {
  text-align: center;
}
.hero-stat-item .stat-number {
  display: block;
  font-size: 32px; font-weight: 800;
  color: #ffffff; line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-item .stat-label {
  display: block;
  font-size: 13px; color: #8eacd4;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── Botones ──────────────────────────────────── */
.wp-block-button__link {
  background: #0055b3 !important;
  color: #ffffff !important; /* 5.2:1 */
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600; font-size: 16px;
  text-decoration: none; border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  display: inline-block;
}
.wp-block-button__link:hover {
  background: #003d8a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0,85,179,0.4);
  transform: translateY(-1px);
}
/* CTA sobre fondos oscuros: botón blanco */
.hero-section .wp-block-button__link,
.projects-cta .wp-block-button__link {
  background: #ffffff !important;
  color: #0055b3 !important; /* 5.2:1 */
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.hero-section .wp-block-button__link:hover,
.projects-cta .wp-block-button__link:hover {
  background: #eef4ff !important;
  color: #003d8a !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transform: translateY(-1px);
}
/* Botón secundario (outline) sobre fondo oscuro */
.hero-section .wp-block-buttons .wp-block-button:last-child .wp-block-button__link {
  background: transparent !important;
  color: #c8d8f8 !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  box-shadow: none;
}
.hero-section .wp-block-buttons .wp-block-button:last-child .wp-block-button__link:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.5) !important;
}

/* ── Franja de estadísticas (sección propia) ──── */
.stats-strip {
  padding: 56px 32px;
  background: #ffffff;
  border-bottom: 1px solid #eef2fb;
}
.stats-strip .wp-block-columns {
  max-width: 960px; margin: 0 auto;
  gap: 0;
}
.stats-strip .wp-block-column {
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid #e8edf5;
}
.stats-strip .wp-block-column:last-child { border-right: none; }
.stats-strip h3 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #0055b3;
  line-height: 1; margin-bottom: 8px;
}
.stats-strip p {
  font-size: 14px; font-weight: 600;
  color: #555555; /* 7.4:1 */
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0;
}

/* ── Intro de páginas interiores ──────────────── */

/* Quitar el padding de GeneratePress en .inside-article para tener control total.
   Cada sección gestiona su propio padding. */
.page .inside-article { padding: 0 !important; }

/* H1 intro — siempre primer hijo directo de .entry-content en páginas interiores */
.page .entry-content > h1.wp-block-heading {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; color: #0d0d0d;
  text-align: center;
  padding: 72px 32px 16px;
  max-width: 800px; margin: 0 auto;
  display: block;
}

/* Párrafo de intro — el <p> que sigue inmediatamente al H1.
   FIX: no tiene clase wp-block-paragraph, usamos selector adyacente + !important
   para ganar a GeneratePress que carga después. */
.page .entry-content > h1.wp-block-heading + p {
  color: #555555 !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  text-align: center !important;
  line-height: 1.75 !important;
  padding: 0 32px 56px !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Formulario de contacto — centrado con espacio similar a las secciones */
.page .entry-content > .wpcf7 {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 32px 56px;
}

/* ── Features ─────────────────────────────────── */
.features-section {
  padding: 88px 32px;
  background: #f4f7ff;
}
.features-section h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700; color: #0d0d0d;
  text-align: center; margin-bottom: 48px;
}
.features-section .wp-block-columns { gap: 24px; }
.features-section .wp-block-column {
  background: #ffffff;
  border-radius: 14px; padding: 36px 32px 32px;
  border: 1px solid #e4eaf6;
  border-top: 3px solid #0055b3;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.features-section .wp-block-column:hover {
  box-shadow: 0 10px 32px rgba(0,85,179,0.1);
  transform: translateY(-3px);
}
/* Icono visual en cada tarjeta via HTML en el contenido */
.feature-icon {
  font-size: 32px; line-height: 1;
  margin-bottom: 16px; display: block;
}
.features-section h3 {
  font-size: 18px; font-weight: 700;
  color: #0d0d0d; margin-bottom: 10px;
}
.features-section p { color: #444444; font-size: 15px; } /* 9.7:1 */

/* ── About ────────────────────────────────────── */
.about-section { padding: 88px 32px; background: #ffffff; }
.about-section .wp-block-columns { gap: 56px; align-items: center; }
.about-section h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700; color: #0d0d0d; margin-bottom: 24px;
}
.about-section p { color: #444444; font-size: 17px; line-height: 1.8; }
.about-section img {
  border-radius: 16px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.1);
}
/* Highlight box dentro de about */
.about-highlight {
  background: #f0f6ff;
  border-left: 4px solid #0055b3;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-top: 24px;
  font-size: 16px; font-weight: 600;
  color: #0d2251;
}

/* ── Services preview (home) ──────────────────── */
.services-preview {
  padding: 88px 32px;
  background: linear-gradient(145deg, #0d2251 0%, #163571 100%);
}
.services-preview h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700; color: #ffffff;
  text-align: center; margin-bottom: 8px;
}
.services-preview > p,
.services-preview .wp-block-paragraph:not(.wp-block-column *) {
  color: #c8d8f8; font-size: 17px;
  text-align: center; margin-bottom: 48px;
}
.services-preview h3 { font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 10px; }
.services-preview p { color: #c8d8f8; font-size: 15px; }
.services-preview .wp-block-columns { gap: 24px; }
.services-preview .wp-block-column {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px; padding: 32px;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}
.services-preview .wp-block-column:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-2px);
}
/* Icono encima del h3 en servicios */
.service-icon {
  font-size: 28px; line-height: 1;
  margin-bottom: 14px; display: block;
  opacity: 0.9;
}
/* Etiquetas de tecnología */
.tech-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag {
  background: rgba(255,255,255,0.12);
  color: #c8d8f8;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.18);
}

/* ── Services grid (página Servicios) ─────────── */
.services-grid { padding: 56px 32px 88px; background: #ffffff; }
.services-grid .wp-block-columns { gap: 32px; align-items: flex-start; }
.services-grid .wp-block-column {
  padding: 32px;
  background: #f8faff;
  border-radius: 16px;
  border: 1px solid #e4eaf6;
  transition: box-shadow 0.2s, transform 0.2s;
}
.services-grid .wp-block-column:hover {
  box-shadow: 0 8px 28px rgba(0,85,179,0.09);
  transform: translateY(-2px);
}
.services-grid img {
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  margin-bottom: 20px; width: 100%; display: block;
}
.services-grid h2 { font-size: 22px; font-weight: 700; color: #0d0d0d; margin-bottom: 12px; }
.services-grid p { color: #444444; font-size: 15px; }

/* Etiquetas de tecnología sobre fondo claro */
.tech-tags-light { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag-light {
  background: #e8f0fe;
  color: #0044a0; /* 5.5:1 sobre #e8f0fe */
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── FAQ ──────────────────────────────────────── */
.faq-section { padding: 88px 32px; background: #f4f7ff; }
.faq-section h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700; color: #0d0d0d;
  text-align: center; margin-bottom: 48px;
}
.faq-section details {
  border-bottom: 1px solid #dde5f5;
  background: transparent; transition: background 0.2s;
}
.faq-section details[open] {
  background: #ffffff;
  border: 1px solid #dde5f5;
  border-radius: 12px; padding: 0 20px;
  margin-bottom: 8px;
}
.faq-section summary {
  font-weight: 600; font-size: 16px; color: #0d0d0d;
  cursor: pointer; padding: 20px 4px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
  content: "+"; font-size: 24px; font-weight: 300;
  color: #0055b3; flex-shrink: 0;
  width: 32px; text-align: center;
  transition: transform 0.25s;
}
.faq-section details[open] summary::after { transform: rotate(45deg); }
.faq-section details p { padding: 0 4px 20px; color: #444444; margin: 0; font-size: 15px; }

/* ── Testimonios ──────────────────────────────── */
.testimonials-section { padding: 88px 32px; background: #ffffff; }
.testimonials-section h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700; color: #0d0d0d;
  text-align: center; margin-bottom: 48px;
}
.testimonials-section .wp-block-columns { gap: 24px; align-items: stretch; }
.testimonials-section .wp-block-column { display: flex; }
.wp-block-quote {
  border: none; border-radius: 16px;
  padding: 36px 36px 32px; margin: 0;
  background: #f4f7ff;
  position: relative; overflow: hidden;
  flex: 1; display: flex; flex-direction: column;
}
.wp-block-quote::before {
  content: "\201C";
  position: absolute; top: 8px; left: 24px;
  font-size: 80px; line-height: 1;
  color: #0055b3; opacity: 0.12;
  font-family: Georgia, serif;
  pointer-events: none;
}
/* Estrellas en los testimonios */
.testimonial-stars {
  color: #9a5f00; /* oro oscuro: 4.89:1 sobre #f4f7ff — cumple WCAG 1.4.3 (antes #f5a623 = 1.89:1 fallo) */
  font-size: 16px; letter-spacing: 2px;
  margin-bottom: 14px; display: block;
}
.wp-block-quote p {
  font-style: normal; font-size: 16px;
  color: #1a1a1a; margin-bottom: 20px;
  padding-left: 4px; flex: 1;
  line-height: 1.75;
}
.wp-block-quote cite {
  font-weight: 700; font-size: 14px;
  color: #0055b3; font-style: normal;
  display: flex; align-items: center; gap: 10px;
  padding-left: 4px;
}
.wp-block-quote cite::before {
  content: "";
  display: inline-block;
  width: 20px; height: 2px; background: #0055b3;
}

/* ── Cards de proyectos ───────────────────────── */
.projects-grid { padding: 88px 32px; background: #f4f7ff; }
.project-card {
  background: #ffffff; border: 1px solid #e4eaf6;
  border-radius: 18px; overflow: hidden; margin-bottom: 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.project-card:hover {
  box-shadow: 0 16px 48px rgba(0,85,179,0.13);
  transform: translateY(-4px);
}
.project-card .wp-block-image { margin: 0; }
.project-card .wp-block-image img {
  border-radius: 0 !important; width: 100%;
  height: 240px; object-fit: cover; display: block;
}
.project-card-body { padding: 28px; }
.project-card h2 { font-size: 22px; font-weight: 700; color: #0d0d0d; margin: 0 0 10px; }
.project-card p { color: #444444; margin: 0 0 16px; font-size: 15px; }
/* Etiquetas dentro de project-card */
.project-card .tech-tags-light { margin-top: 0; }

/* ── Projects CTA ─────────────────────────────── */
.projects-cta {
  padding: 96px 32px;
  background: linear-gradient(140deg, #060f1e 0%, #0d2251 50%, #163571 100%);
  text-align: center; position: relative; overflow: hidden;
}
.projects-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(0,85,179,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.projects-cta h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800; color: #ffffff; margin-bottom: 16px; position: relative;
}
.projects-cta p {
  color: #c8d8f8; font-size: 18px; margin-bottom: 40px;
  max-width: 560px; margin-left: auto; margin-right: auto; position: relative;
}

/* ── Formulario accesible ─────────────────────── */
.wpcf7-form .form-group { margin-bottom: 24px; }
.wpcf7-form label { display: block; font-weight: 600; font-size: 15px; color: #1a1a1a; margin-bottom: 6px; }

/* FIX v4: borde #767676 sobre #f8fafc = 4.5:1 — cumple WCAG 1.4.11
   (la v3 usaba #b0bcd0 que solo daba 1.9:1, fallo de contraste de UI) */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%; padding: 13px 16px;
  border: 2px solid #767676; border-radius: 10px;
  font-size: 16px; color: #1a1a1a; background: #f8fafc;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus {
  border-color: #0055b3; outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0,85,179,0.12);
}
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form input[aria-invalid="true"],
.wpcf7-form textarea[aria-invalid="true"] {
  border-color: #b30000; background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(179,0,0,0.1);
}
.wpcf7-not-valid-tip { color: #b30000; font-size: 13px; font-weight: 600; margin-top: 5px; display: block; }
.wpcf7-response-output { padding: 14px 18px; border-radius: 10px; font-weight: 600; margin-top: 20px; font-size: 15px; }
.wpcf7-mail-sent-ok { background: #e8f5e0; color: #1a4d00; border: 1px solid #4a9a1a; }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng { background: #fdecea; color: #6b0000; border: 1px solid #b30000; }
.wpcf7-submit, .btn-submit {
  background: #0055b3; color: #ffffff;
  border: none; padding: 14px 40px; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  min-width: 180px;
}
.wpcf7-submit:hover { background: #003d8a; box-shadow: 0 6px 20px rgba(0,85,179,0.35); transform: translateY(-1px); }
.wpcf7-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Contacto info ────────────────────────────── */
.contact-info { padding: 88px 32px; background: #f4f7ff; }
.contact-info h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 700; color: #0d0d0d; margin-bottom: 16px; }
.contact-info h3 { font-size: 15px; font-weight: 700; color: #0055b3; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.contact-info p { color: #444444; }
.contact-info a { color: #0044a0; text-decoration: underline; }
.contact-info a:hover { color: #003080; }
.contact-info .wp-block-columns { margin-top: 40px; gap: 32px; }
.contact-info .wp-block-column {
  background: #ffffff; border-radius: 14px; padding: 28px;
  border: 1px solid #e4eaf6; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  text-align: center;
}
.contact-icon {
  font-size: 28px; line-height: 1;
  display: block; margin-bottom: 12px;
}

/* ── sr-only ──────────────────────────────────── */
.screen-reader-text, .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;
}

/* ── Footer ───────────────────────────────────── */
.site-footer { background: #0d1117; color: #c9d1d9; padding: 48px 32px 0; }
.site-footer a { color: #79b8ff; text-decoration: none; }
.site-footer a:hover { color: #a8d1ff; text-decoration: underline; }
.site-footer-bar { display: none !important; }
.kit-digital-footer {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 0 32px; text-align: center;
  /* sin border-bottom aquí — footer-bar-custom ya tiene border-top, una sola línea */
}
/* Fondo blanco para que el logo Kit Digital sea visible sobre el footer oscuro
   WCAG 1.4.11: contraste de componentes no textuales — ratio exigido 3:1 */
.kit-digital-footer-logo-wrap {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 32px;
  max-width: 760px;
  margin: 0 auto;
}
/* Logo 1440x132px — ancho generoso para que no quede miniatura */
.kit-digital-footer-logo { width: 100%; height: auto; display: block; max-width: 100%; }
.footer-bar-custom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 0 24px; border-top: 1px solid #21262d;
  max-width: 1200px; margin: 0 auto;
}

/* FIX v4: copyright #8b949e sobre #0d1117 = 6:1 — cumple 4.5:1
   (la v3 usaba #6e7681 que daba 4.3:1, fallo de contraste de texto) */
.footer-copyright { font-size: 13px; color: #8b949e; }

.footer-legal-nav { margin: 0; }
.footer-legal-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.footer-legal-menu li { display: flex; align-items: center; }
.footer-legal-menu li + li::before { content: "|"; color: #30363d; padding: 0 12px; }
.footer-legal-menu a { color: #79b8ff; font-size: 13px; text-decoration: none; transition: color 0.15s; }
.footer-legal-menu a:hover { color: #a8d1ff; text-decoration: underline; }

/* ── Imágenes ─────────────────────────────────── */
img { max-width: 100%; height: auto; }
.about-section img, .services-grid img { border-radius: 14px; display: block; width: 100%; }

/* ── Override GP inner-container padding (v4.5) ──
   GeneratePress inyecta padding:30px a TODOS los
   .site-main .wp-block-group__inner-container vía
   <style> inline en el <head>. Lo anulamos aquí
   para que cada sección controle su propio espaciado.
   Sin este override, cada sección acumula:
   padding-sección + 30px(GP) + contenido, y entre
   tarjetas apiladas se acumulan 30px + 30px = 60px. */
.hero-section > .wp-block-group__inner-container,
.features-section > .wp-block-group__inner-container,
.services-preview > .wp-block-group__inner-container,
.about-section > .wp-block-group__inner-container,
.stats-strip > .wp-block-group__inner-container,
.services-grid > .wp-block-group__inner-container,
.faq-section > .wp-block-group__inner-container,
.testimonials-section > .wp-block-group__inner-container,
.contact-info > .wp-block-group__inner-container,
.projects-grid > .wp-block-group__inner-container,
.projects-cta > .wp-block-group__inner-container {
  padding: 0 !important;
}

/* Para project-cards: el inner-container de la card
   también recibe 30px de GP — lo zeramos aquí porque
   .project-card-body (el div interior) ya tiene
   su propio padding:28px (ver bloque Cards de proyectos). */
.project-card > .wp-block-group__inner-container {
  padding: 0 !important;
}
/* Si hay imágenes en la card, que vayan a borde completo */
.project-card .wp-block-image { margin: 0 !important; }

/* Reducir gap entre tarjetas apiladas */
.project-card { margin-bottom: 16px !important; }
.projects-grid .wp-block-group__inner-container > .is-layout-flow > * + *,
.projects-grid .is-layout-flow > * + * { margin-block-start: 0 !important; }

/* Reducir gap Gutenberg entre bloques dentro de secciones
   (por defecto 1.5em = 24px; lo llevamos a 0 para que cada
    elemento gestione su propio margin/padding) */
.features-section .wp-block-group__inner-container > .is-layout-flow > * + *,
.services-preview .wp-block-group__inner-container > .is-layout-flow > * + *,
.about-section .wp-block-group__inner-container > .is-layout-flow > * + *,
.stats-strip .wp-block-group__inner-container > .is-layout-flow > * + *,
.services-grid .wp-block-group__inner-container > .is-layout-flow > * + *,
.faq-section .wp-block-group__inner-container > .is-layout-flow > * + *,
.testimonials-section .wp-block-group__inner-container > .is-layout-flow > * + *,
.contact-info .wp-block-group__inner-container > .is-layout-flow > * + *,
.projects-cta .wp-block-group__inner-container > .is-layout-flow > * + * {
  margin-block-start: 0 !important;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .hero-section { padding: 72px 20px 60px; }
  .stats-strip { padding: 40px 20px; }
  .stats-strip .wp-block-column { border-right: none; border-bottom: 1px solid #e8edf5; }
  .stats-strip .wp-block-column:last-child { border-bottom: none; }
  .features-section, .services-preview, .about-section,
  .services-grid, .projects-grid, .faq-section,
  .testimonials-section, .contact-info, .projects-cta { padding: 64px 20px; }
  .inside-header { padding: 12px 20px; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 600px) {
  .hero-section { padding: 56px 16px 48px; }
  .stats-strip { padding: 32px 16px; }
  .features-section, .services-preview, .about-section,
  .services-grid, .projects-grid, .faq-section,
  .testimonials-section, .contact-info, .projects-cta { padding: 48px 16px; }
  .inside-header { padding: 10px 16px; }
  .footer-bar-custom { flex-direction: column; align-items: center; text-align: center; }
  .footer-legal-menu { justify-content: center; }
  .project-card .wp-block-image img { height: 200px; }
  .wp-block-quote { padding: 28px 24px; }
  .hero-stats { gap: 16px; padding-top: 28px; margin-top: 32px; }
  .hero-stat-item .stat-number { font-size: 24px; }
}

/* ── prefers-reduced-motion (9.2.2.2) ────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
