/* ═══ Páginas internas — visual premium ═══ */

/* Hero enriquecido */
.page-hero--rich {
  position: relative;
  padding: calc(var(--header-h) + 2rem) 0 2.5rem;
  overflow: hidden;
  text-align: left;
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 45%, var(--navy-light) 100%);
}
.page-hero--rich .container { position: relative; z-index: 2; }
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite;
}
.page-hero-orb--1 { width: 280px; height: 280px; background: var(--gold); top: -80px; right: 10%; }
.page-hero-orb--2 { width: 200px; height: 200px; background: var(--color-secondary); bottom: -60px; left: 5%; animation-delay: -4s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -20px) scale(1.05); }
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 992px) {
  .page-hero-inner { grid-template-columns: 1.15fr 0.85fr; }
}

.page-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(232, 185, 35, 0.2);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 50px;
  border: 1px solid rgba(232, 185, 35, 0.35);
  margin-bottom: 1rem;
  animation: fadeSlideDown 0.6s ease both;
}

.page-hero-icon-wrap {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  animation: fadeSlideDown 0.6s ease 0.1s both;
}
.page-hero-icon-wrap img { width: 48px; height: 48px; object-fit: contain; }

.page-hero--rich h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  animation: fadeSlideDown 0.6s ease 0.15s both;
}
.page-hero--rich .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 1.25rem;
  animation: fadeSlideDown 0.6s ease 0.2s both;
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  animation: fadeSlideDown 0.6s ease 0.25s both;
}
.page-hero--rich .breadcrumb {
  justify-content: flex-start;
  margin-top: 0;
  animation: fadeSlideDown 0.6s ease 0.3s both;
}
.page-hero--rich .breadcrumb a { color: var(--gold-light); }
.page-hero--rich .breadcrumb a:hover { color: var(--white); }
.page-hero--rich .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.page-hero--rich .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
}

.page-hero-panel {
  display: grid;
  gap: 0.75rem;
  animation: fadeSlideUp 0.7s ease 0.35s both;
}

/* Hero de páginas de servicio — layout vertical ordenado */
.page-hero--service.page-hero--rich {
  padding: calc(var(--header-h) + 1.5rem) 0 2rem;
}
.page-hero--service .service-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 880px;
}
.service-hero-head {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
}
.service-hero-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.service-hero-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.service-hero-titles {
  flex: 1;
  min-width: 0;
}
.service-hero-titles .page-badge {
  margin-bottom: 0.45rem;
}
.service-hero-titles h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 0;
}
.page-hero--service .lead {
  max-width: none;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
}
.page-hero--service .page-hero-actions {
  margin-bottom: 0;
}
.service-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.service-metric {
  text-align: center;
  padding: 0.9rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition);
}
.service-metric:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(232, 185, 35, 0.35);
}
.service-metric strong {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.service-metric span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}
@media (max-width: 599px) {
  .service-hero-head {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .service-hero-icon {
    width: 68px;
    height: 68px;
  }
  .service-hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .service-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    padding: 0.75rem 1rem;
  }
  .service-metric strong {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .service-metric span {
    text-align: right;
    max-width: 60%;
  }
}

.hero-mini-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold);
  transition: transform var(--transition), background var(--transition);
}
.hero-mini-card:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.15);
}
.hero-mini-card strong {
  display: block;
  font-size: 1.35rem;
  color: var(--gold);
  font-weight: 800;
}
.hero-mini-card span { font-size: 0.8rem; color: rgba(255,255,255,0.85); }

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Intro strip debajo del hero */
.page-intro {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 1.5rem 0;
  position: relative;
  z-index: 3;
  margin-top: -1px;
}
.page-intro-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.page-intro p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 720px;
}
.page-intro-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.page-intro-trust span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}
.page-intro-trust span::before {
  content: '✓ ';
  color: var(--gold-dark);
}

/* Cards mejoradas */
.cards-grid .info-card,
.feature-grid .feature-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.cards-grid .info-card::after,
.feature-grid .feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--navy-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.cards-grid .info-card:hover,
.feature-grid .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 185, 35, 0.4);
}
.cards-grid .info-card:hover::after,
.feature-grid .feature-card:hover::after {
  transform: scaleX(1);
}
.cards-grid .info-card .service-icon,
.feature-grid .feature-card .service-icon {
  transition: transform 0.35s ease, background 0.35s ease;
}
.cards-grid .info-card:hover .service-icon,
.feature-grid .feature-card:hover .service-icon {
  transform: scale(1.08) rotate(-3deg);
  background: rgba(232, 185, 35, 0.25);
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.feature-card-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

/* Acordeón premium */
.accordion {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.accordion-item { border-bottom: 1px solid var(--gray-100); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  padding: 1.15rem 1.25rem;
  background: var(--white);
  transition: background var(--transition), color var(--transition);
}
.accordion-trigger:hover { background: var(--gray-50); color: var(--navy-light); }
.accordion-item.open .accordion-trigger {
  background: var(--blue-soft);
  color: var(--navy);
}
.accordion-item.open .accordion-trigger::after { transform: rotate(45deg); color: var(--navy); }
.accordion-panel p {
  padding: 0 1.25rem 1.15rem;
  margin: 0;
  border-left: 3px solid var(--gold);
  margin-left: 1.25rem;
}

/* Proceso animado */
.process-mini .process-step {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}
.process-mini .process-step:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.process-mini .num {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.5rem;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

/* Highlight block mejorado */
.highlight-block {
  animation: subtlePulse 4s ease-in-out infinite;
}
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 185, 35, 0); }
  50% { box-shadow: 0 0 40px rgba(232, 185, 35, 0.12); }
}

/* Tech visual mejorado */
.tech-visual {
  height: 160px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.tech-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(232,185,35,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(74,127,212,0.2) 0%, transparent 45%);
}
.tech-node { box-shadow: 0 0 12px var(--gold); }

/* Marketing stats */
.marketing-visual .stat-visual {
  transition: transform var(--transition), box-shadow var(--transition);
}
.marketing-visual .stat-visual:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Related services */
.related-services {
  padding: var(--section-y-sm) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.related-services h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.related-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.related-pills a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
}
.related-pills a img { width: 20px; height: 20px; object-fit: contain; }
.related-pills a:hover,
.related-pills a.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.related-pills a.active { box-shadow: 0 4px 0 var(--gold); }

/* ═══ NOSOTROS ═══ */
.page-hero--about .page-hero-panel { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 575px) {
  .page-hero--about .page-hero-panel { grid-template-columns: 1fr; }
}

.page-block-head--wide {
  max-width: 720px;
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
  }
}

.about-copy p {
  color: var(--text-light);
  line-height: 1.75;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.about-copy p:last-of-type {
  margin-bottom: 1.25rem;
}

.about-highlights {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.about-highlights li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.about-highlights li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.about-visual {
  margin: 0;
  width: 100%;
}
.about-visual-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  background: var(--white);
}
.about-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.about-visual-caption {
  display: block;
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, rgba(232, 185, 35, 0.2) 0%, rgba(232, 185, 35, 0.08) 100%);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.25rem;
}
.about-stat {
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.about-stat strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--navy);
  font-weight: 800;
  line-height: 1.1;
}
.about-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--text-light);
  font-weight: 600;
}
@media (max-width: 479px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
  .about-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.85rem 1rem;
  }
  .about-stat strong { font-size: 1.35rem; }
  .about-stat span {
    margin-top: 0;
    text-align: right;
    max-width: 55%;
  }
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.value-card .benefit-icon {
  margin: 0 auto 1rem;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

.mission-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .mission-duo { grid-template-columns: 1fr 1fr; } }
.mission-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.mission-card--mission {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}
.mission-card--vision {
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--text);
}
.mission-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mission-card--mission h2 { color: var(--gold); }
.mission-card--vision h2 { color: var(--navy); }
.mission-card p { font-size: 0.95rem; line-height: 1.65; opacity: 0.92; }

.approach-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .approach-steps { grid-template-columns: repeat(3, 1fr); } }
.approach-step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition);
}
.approach-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.approach-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Jardinería acento verde sutil */
.page-hero--jard .page-hero-orb--2 { background: var(--color-primary); opacity: 0.25; }
.jard-card:hover { border-color: rgba(45, 106, 79, 0.35); }

/* Contacto */
.contact-info-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-info-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--navy);
}
.contact-form {
  transition: box-shadow var(--transition);
}
.contact-form:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: rgba(12, 31, 74, 0.15);
}

/* Stagger reveal */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .page-hero-orb, .hero-mini-card, .highlight-block { animation: none; }
  .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}
