/* =============================================
   ETIQUETA DE SECCIÓN (label decorativo)
============================================= */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.1rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* =============================================
   QUÉ HACEMOS
============================================= */

.what-we-do {
  background: var(--color-surface);
}

.what-editorial h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1.4rem;
  color: var(--color-primary);
}

.what-editorial .lead {
  font-size: 1.08rem;
  color: var(--color-gray-dark);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 38rem;
}

.what-editorial p {
  max-width: 38rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Tarjeta de servicios */
.what-services {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-light);
  align-self: start;
}

.services-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gray-text);
  display: block;
  margin-bottom: 1.5rem;
}

.what-services ul {
  display: flex;
  flex-direction: column;
}

.what-services li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-gray-light);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-primary);
}

.what-services li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.what-services li::before {
  content: '';
  flex-shrink: 0;
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--color-accent);
  border-radius: 50%;
}

/* =============================================
   BLOQUE SEO — ARQUITECTURA
============================================= */

.architecture-seo {
  background: var(--color-white);
}

.architecture-inner {
  max-width: 54rem;
}

.architecture-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 1.75rem;
  color: var(--color-primary);
}

.architecture-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--color-gray-text);
}

/* =============================================
   EDITORIAL HUMANO
============================================= */

.human-editorial {
  background: var(--color-surface);
}

.human-editorial-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 1.4rem;
  color: var(--color-primary);
}

.human-editorial-text .lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.human-editorial-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.human-editorial-text .signature {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-light);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  line-height: 1.7;
}

.human-editorial-image img {
  border-radius: var(--radius-md);
  object-fit: cover;
  height: 23.75rem;
  width: 100%;
  box-shadow: var(--shadow-md);
}

/* =============================================
   PRINCIPIOS — Tarjetas en grid
============================================= */

.principles-editorial {
  background: var(--color-primary);
}

.principles-header {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.principles-header h2 {
  color: var(--color-white);
  margin-bottom: 0.85rem;
}

.principles-header p {
  color: rgba(207, 216, 227, 0.7);
  font-size: 0.975rem;
}

/* Tarjeta principio */
.principle-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: background var(--t), border-color var(--t);
}

.principle-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.principle-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.principle-content h3 {
  color: var(--color-white);
  font-size: 1.02rem;
  margin-bottom: 0.75rem;
}

.principle-content p {
  color: rgba(207, 216, 227, 0.68);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* =============================================
   FAQ — Grid 2 columnas
============================================= */

.faq-section {
  background: var(--color-white);
}

.faq-section h2 {
  margin-bottom: 2.25rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color var(--t), box-shadow var(--t);
}

.faq-item:hover {
  border-color: rgba(242, 140, 40, 0.4);
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 0.965rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.faq-item p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-gray-text);
}

/* =============================================
   CTA FINAL
============================================= */

.closing-cta {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.closing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 60%, rgba(31,111,178,0.25) 0%, transparent 55%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  max-width: 50rem;
  text-align: center;
  margin-inline: auto;
}

.closing-cta h2 {
  color: var(--color-white);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 1.25rem;
}

.closing-cta p {
  font-size: 1.02rem;
  color: rgba(207, 216, 227, 0.75);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-inline: auto;
}

.closing-cta small {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.76rem;
  color: rgba(207, 216, 227, 0.45);
}

/* =============================================
   PAGE TRANSITION (fade in/out)
============================================= */

body.page-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body.page-fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 960px)
============================================= */

@media (max-width: 960px) {
  .human-editorial-image img {
    height: 17.5rem;
  }

  .principle-item {
    padding: 1.5rem;
  }
}

/* =============================================
   RESPONSIVE — MÓVIL (≤ 640px)
============================================= */

@media (max-width: 640px) {
  .what-editorial .lead {
    font-size: 1rem;
  }

  .human-editorial-image img {
    height: 13.75rem;
  }

  .principles-header {
    text-align: left;
  }

  .closing-inner {
    text-align: left;
  }

  .closing-cta p {
    margin-inline: 0;
  }

  .faq-section h2 {
    margin-bottom: 1.5rem;
  }
}
