/* ═══════════════════════════════════════════
   PAGES — Estilos especificos de cada seccion
   ═══════════════════════════════════════════ */

/* ── Sobre mi: valores ── */
.value-card { text-align: center; }
.value-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.05); display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.value-icon svg { width: 18px; height: 18px; stroke: var(--navy-300); stroke-width: 1.5; fill: none; }
.value-card h3 { font-size: 16px; color: #fff; margin-bottom: 6px; }
.value-card p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── Areas: grid de servicios ── */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.area-card .card-row { display: flex; align-items: start; gap: 16px; }
.area-card .card-badge {
  margin-top: 10px; display: inline-block; font-size: 11px; font-weight: 500;
  color: var(--navy-500); background: var(--navy-50); padding: 4px 12px; border-radius: 6px;
}

/* ── Trayectoria: leyenda ── */
.tl-legend {
  display: flex; justify-content: center; gap: 32px;
  margin-bottom: 40px; font-size: 13px; font-weight: 500;
}
.tl-legend-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.tl-legend-dot { width: 12px; height: 12px; border-radius: 50%; }
.tl-legend-exp .tl-legend-dot {
  background: linear-gradient(135deg, var(--navy-500), var(--navy-400));
  border: 2px solid var(--navy-300);
}
.tl-legend-form .tl-legend-dot {
  background: linear-gradient(135deg, var(--warm-500), var(--warm-400));
  border: 2px solid var(--warm-200);
}

/* ── Trayectoria: timeline unificado dual ── */
.tl-unified {
  position: relative; padding-left: 0; max-width: 960px; margin: 0 auto;
}
.tl-unified::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--navy-400), var(--navy-300) 30%, var(--navy-200) 70%, var(--navy-100));
}
.tl-unified::after {
  content: ''; position: absolute; left: 50%; top: 0; width: 4px; height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(79,122,189,0.25), transparent 30%);
  filter: blur(4px); pointer-events: none;
}

/* ── Era markers ── */
.tl-era {
  position: relative; text-align: center; margin: 28px 0 20px; z-index: 3;
}
.tl-era span {
  display: inline-block;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 5px 18px; border-radius: 20px;
  box-shadow: 0 4px 16px rgba(22,37,68,0.15);
}

/* ── Entry base ── */
.tl-entry {
  position: relative; width: 45%; padding: 6px 0 24px;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}

/* Experiencia: izquierda */
.tl-entry[data-branch="exp"] {
  margin-left: 0; margin-right: auto; text-align: right; padding-right: 36px;
}
/* Formación: derecha */
.tl-entry[data-branch="form"] {
  margin-left: auto; margin-right: 0; text-align: left; padding-left: 36px;
}

/* ── Dot en la línea central ── */
.tl-dot {
  position: absolute; top: 12px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; z-index: 2;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.tl-entry[data-branch="exp"] .tl-dot {
  right: -8px; left: auto; border: 2.5px solid var(--navy-400);
}
.tl-entry[data-branch="form"] .tl-dot {
  left: -8px; right: auto; border: 2.5px solid var(--warm-400);
}

/* Dot pseudo-elements */
.tl-dot::before {
  content: ''; position: absolute; inset: -5px;
  border-radius: 50%; opacity: 0; transition: all 0.4s; pointer-events: none;
}
.tl-dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; opacity: 0; transition: all 0.4s; pointer-events: none;
}

/* Hover exp: glow navy */
.tl-entry[data-branch="exp"]:hover .tl-dot {
  border-color: var(--navy-500); background: var(--navy-50); transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(51,90,158,0.1), 0 0 20px rgba(51,90,158,0.12);
}
.tl-entry[data-branch="exp"]:hover .tl-dot::before { opacity: 1; background: rgba(79,122,189,0.08); transform: scale(1.5); }
.tl-entry[data-branch="exp"]:hover .tl-dot::after { opacity: 1; border: 2px solid rgba(79,122,189,0.2); }

/* Hover form: glow warm */
.tl-entry[data-branch="form"]:hover .tl-dot {
  border-color: var(--warm-500); background: var(--warm-50); transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(196,150,66,0.12), 0 0 20px rgba(196,150,66,0.1);
}
.tl-entry[data-branch="form"]:hover .tl-dot::before { opacity: 1; background: rgba(196,150,66,0.08); transform: scale(1.5); }
.tl-entry[data-branch="form"]:hover .tl-dot::after { opacity: 1; border: 2px solid rgba(196,150,66,0.2); }

/* First entry animated dot */
.tl-entry:first-of-type .tl-dot {
  border-color: var(--navy-500);
  background: linear-gradient(135deg, var(--navy-500), var(--navy-400));
  box-shadow: 0 0 0 4px rgba(51,90,158,0.1);
}
.tl-entry:first-of-type .tl-dot::after {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; opacity: 1; border: none;
  background: rgba(79,122,189,0.15);
  animation: dotPing 2s cubic-bezier(0,0,0.2,1) infinite;
}

/* ── Card body ── */
.tl-body {
  padding: 14px 20px; border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.tl-entry[data-branch="exp"]:hover .tl-body {
  background: linear-gradient(135deg, var(--navy-50), rgba(220,230,243,0.3));
  border-color: var(--navy-100); transform: translateX(-6px);
  box-shadow: 0 6px 24px rgba(30,52,96,0.06);
}
.tl-entry[data-branch="form"]:hover .tl-body {
  background: linear-gradient(135deg, var(--warm-50), rgba(237,217,168,0.2));
  border-color: var(--warm-200); transform: translateX(6px);
  box-shadow: 0 6px 24px rgba(166,124,55,0.06);
}

/* ── Type badge ── */
.tl-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 4px;
}
.tl-badge-exp { color: var(--navy-600); background: var(--navy-50); border: 1px solid var(--navy-100); }
.tl-badge-form { color: var(--warm-600); background: var(--warm-50); border: 1px solid var(--warm-200); }

/* ── Year badge ── */
.tl-year {
  display: inline-block; font-size: 11px; font-weight: 600; color: #fff;
  padding: 3px 11px; border-radius: 5px; letter-spacing: 0.02em; transition: all 0.3s;
}
.tl-entry[data-branch="exp"] .tl-year {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
}
.tl-entry[data-branch="form"] .tl-year {
  background: linear-gradient(135deg, var(--warm-600), var(--warm-500));
}
.tl-entry[data-branch="exp"]:hover .tl-year {
  background: linear-gradient(135deg, var(--navy-500), var(--navy-400));
  box-shadow: 0 2px 8px rgba(51,90,158,0.2);
}
.tl-entry[data-branch="form"]:hover .tl-year {
  background: linear-gradient(135deg, var(--warm-500), var(--warm-400));
  box-shadow: 0 2px 8px rgba(196,150,66,0.2);
}

/* ── Body typography ── */
.tl-body h3 { font-size: 16px; margin-top: 6px; transition: color 0.3s; }
.tl-entry[data-branch="exp"]:hover .tl-body h3 { color: var(--navy-700); }
.tl-entry[data-branch="form"]:hover .tl-body h3 { color: var(--warm-600); }
.tl-body .org { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.tl-body .org a { color: var(--navy-500); border-bottom: 1px solid var(--navy-200); transition: all 0.3s; }
.tl-body .org a:hover { color: var(--navy-700); border-color: var(--navy-400); }
.tl-body .desc { font-size: 12px; color: var(--ink-faint); margin-top: 4px; line-height: 1.5; }
.tl-body .tl-desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; line-height: 1.6; font-style: italic; opacity: 0.8; }

/* Lista de formacion (estilo antiguo) */
.form-item {
  padding: 14px 0; border-bottom: 1px solid rgba(220,230,243,0.4);
  border-left: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.form-item:last-child { border-bottom: none; }
.form-item:hover {
  background: linear-gradient(90deg, var(--navy-50), transparent);
  margin: 0 -12px; padding: 14px 12px; border-radius: 8px;
  border-left-color: var(--navy-400);
  padding-left: 16px;
}
.form-item .year {
  font-size: 11px; font-weight: 600; color: var(--navy-500);
  display: inline-block; padding: 1px 8px; border-radius: 3px;
  background: var(--navy-50); transition: all 0.3s;
}
.form-item:hover .year { background: var(--navy-100); color: var(--navy-600); }
.form-item h4 { font-size: 15px; font-family: 'DM Serif Display'; margin-top: 2px; }
.form-item .org { font-size: 13px; color: var(--ink-soft); margin-top: 1px; }
.form-item .desc { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }

/* ── Ideas: articulos ── */
.article-item {
  padding: 24px 0; padding-left: 20px; border-bottom: 1px solid rgba(220,230,243,0.4);
  transition: all 0.3s; position: relative;
}
.article-item::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--navy-300), var(--navy-500), var(--navy-300));
  opacity: 0; transition: opacity 0.4s;
}
.article-item:hover::before { opacity: 1; }
.article-item:hover { background: linear-gradient(90deg, rgba(74,122,184,0.03), transparent 50%); }
.article-item:first-child { padding-top: 0; }
.article-item:last-child { border-bottom: none; }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-faint); }
.article-item h2 { font-size: 20px; margin-top: 8px; transition: color 0.3s; }
.article-item:hover h2 { color: var(--navy-600); }
.article-item p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.7; }
.read-more { font-size: 13px; color: var(--navy-500); font-weight: 500; margin-top: 8px; display: inline-block; cursor: pointer; user-select: none; transition: all 0.3s; }
.read-more:hover { color: var(--navy-600); transform: translateX(3px); display: inline-block; }
.read-more.open { color: var(--navy-600); }

/* Contenido expandible de articulos */
.article-expand {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.4s, padding 0.4s;
  opacity: 0; padding: 0 0;
}
.article-expand.open {
  max-height: 5000px; opacity: 1; padding: 16px 0 4px;
}
.article-expand-inner {
  font-size: 14px; color: var(--ink-soft); line-height: 1.8;
  padding: 16px 20px; background: var(--navy-50); border-radius: 10px;
  border-left: 3px solid var(--navy-200);
}
.article-expand-inner p + p { margin-top: 10px; }

/* ── Perspectiva ── */
.persp-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid rgba(220,230,243,0.4);
  cursor: pointer; transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  border-left: 2px solid transparent;
}
.persp-item:last-child { border-bottom: none; }
.persp-item:hover {
  padding-left: 8px;
  border-left-color: var(--navy-400);
  background: linear-gradient(90deg, var(--navy-50), transparent);
  border-radius: 8px; padding: 20px 8px 20px 16px;
}
.persp-item h3 { font-size: 20px; transition: color 0.3s; }
.persp-item:hover h3 { color: var(--navy-600); }
.persp-item p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.7; }
.persp-tags { display: flex; gap: 4px; margin-bottom: 6px; }
.persp-arrow { color: var(--navy-300); font-size: 18px; transition: transform 0.3s, color 0.3s; flex-shrink: 0; }
.persp-item:hover .persp-arrow { transform: translateX(4px); color: var(--navy-500); }
.persp-item.open .persp-arrow { transform: rotate(90deg); color: var(--navy-500); }

/* ── Contacto ── */

/* Grid 2 columnas: info | formulario */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}

/* Mapa embebido */
.contact-map {
  width: 100%; height: 220px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--navy-100);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe { width: 100%; height: 100%; display: block; }

/* Tarjetas de información */
.contact-cards { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--navy-100);
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.contact-card:hover {
  background: var(--navy-50); border-color: var(--navy-200);
  transform: translateX(4px);
  box-shadow: var(--shadow-xs);
}
.contact-card-icon {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: var(--navy-50); display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.contact-card-icon svg { stroke: var(--navy-500); }
.contact-card:hover .contact-card-icon { background: var(--navy-100); }
.contact-card strong { font-size: 14px; color: var(--ink); display: block; margin-bottom: 2px; }
.contact-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.contact-link-inline {
  color: var(--navy-500); text-decoration: none;
  border-bottom: 1px solid var(--navy-200); transition: all 0.3s;
}
.contact-link-inline:hover { color: var(--navy-700); border-color: var(--navy-400); }

/* Tarjeta digital con QR */
.digital-card-qr {
  display: flex; align-items: center; gap: 20px;
  margin-top: 20px; padding: 20px 24px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-50), rgba(220,230,243,0.5));
  border: 1px solid var(--navy-200);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative; overflow: hidden;
}
.digital-card-qr::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  pointer-events: none;
}
.digital-card-qr:hover::before { animation: shineSlide 0.7s ease-out; }
.digital-card-qr:hover {
  background: linear-gradient(135deg, var(--navy-100), var(--navy-50));
  border-color: var(--navy-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,52,96,0.1);
}
.digital-card-qr-code {
  width: 96px; height: 96px; flex-shrink: 0;
  background: #fff; border-radius: 10px; padding: 6px;
  box-shadow: 0 2px 8px rgba(30,52,96,0.08);
  display: flex; align-items: center; justify-content: center;
}
.digital-card-qr-code svg { width: 100%; height: 100%; }
.digital-card-qr-info { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.digital-card-qr-label {
  display: flex; align-items: center; gap: 8px; color: var(--navy-800);
}
.digital-card-qr-label svg { stroke: var(--navy-600); flex-shrink: 0; }
.digital-card-qr-label strong { font-size: 15px; }
.digital-card-qr-info > span {
  font-size: 13px; color: var(--ink-soft); line-height: 1.4;
}
.digital-card-qr-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 13px; font-weight: 600; color: var(--navy-600);
  text-decoration: none;
  transition: color 0.3s, gap 0.3s;
}
.digital-card-qr-link:hover { color: var(--navy-800); gap: 10px; }
.digital-card-qr-link svg {
  transition: transform 0.3s;
}
.digital-card-qr-link:hover svg { transform: translateX(3px); }

/* Responsive: tarjeta QR en móvil */
@media (max-width: 480px) {
  .digital-card-qr { flex-direction: column; text-align: center; padding: 20px 16px; }
  .digital-card-qr-code { width: 112px; height: 112px; }
  .digital-card-qr-label { justify-content: center; }
  .digital-card-qr-link { justify-content: center; }
}

/* Tarjetas copiables */
.contact-card-copyable { cursor: pointer; position: relative; }
.contact-card-copyable::after {
  content: '';
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: 0;
  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='%234A7AB8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
  transition: opacity 0.3s;
}
.contact-card-copyable:hover::after { opacity: 0.6; }
.copy-tooltip {
  position: absolute; top: -8px; right: 12px;
  background: var(--navy-800); color: #fff;
  font-size: 11px; font-weight: 600; padding: 5px 10px;
  border-radius: 6px; white-space: nowrap;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; z-index: 10;
}
.copy-tooltip::after {
  content: ''; position: absolute; bottom: -4px; right: 16px;
  width: 8px; height: 8px; background: var(--navy-800);
  transform: rotate(45deg);
}
.copy-tooltip.show {
  opacity: 1; transform: translateY(0);
}

/* Indicador de disponibilidad */
.availability-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 8px 16px;
  border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--navy-50); border: 1px solid var(--navy-100);
  transition: all 0.4s;
}
.availability-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  position: relative;
}
.availability-dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; opacity: 0;
}

/* Estado: disponible */
.availability-badge.available { background: rgba(44,182,125,0.08); border-color: rgba(44,182,125,0.2); }
.availability-badge.available .availability-dot { background: #2CB67D; }
.availability-badge.available .availability-dot::after {
  background: rgba(44,182,125,0.3);
  animation: pulseDot 2s ease-in-out infinite;
}
.availability-badge.available .availability-text { color: #1a8f5e; }

/* Estado: fuera de horario */
.availability-badge.after-hours { background: rgba(196,150,66,0.08); border-color: rgba(196,150,66,0.2); }
.availability-badge.after-hours .availability-dot { background: var(--warm-500); }
.availability-badge.after-hours .availability-text { color: #96700a; }

/* Estado: festivo */
.availability-badge.holiday { background: rgba(196,150,66,0.06); border-color: rgba(196,150,66,0.18); }
.availability-badge.holiday .availability-dot { background: #D4A24C; }
.availability-badge.holiday .availability-text { color: #96700a; }

/* Estado: fin de semana */
.availability-badge.weekend { background: var(--navy-50); border-color: var(--navy-100); }
.availability-badge.weekend .availability-dot { background: var(--ink-faint); }
.availability-badge.weekend .availability-text { color: var(--ink-soft); }

@keyframes pulseDot {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.8); }
}

/* Confetti de éxito */
.confetti-particle {
  position: fixed; pointer-events: none; z-index: 9999;
  border-radius: 2px;
  animation: confettiFall 1.4s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.3); }
}

/* Columna derecha: formulario */
.contact-form-header h2 { font-size: 22px; color: var(--ink); }
.contact-form-header p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }
.contact-form { margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .form-group { margin-bottom: 16px; }

/* Focus glow reforzado */
#page-contacto .form-group input:focus,
#page-contacto .form-group select:focus,
#page-contacto .form-group textarea:focus {
  border-color: var(--navy-400);
  box-shadow: 0 0 0 3px rgba(74,122,184,0.12), 0 4px 16px rgba(74,122,184,0.06);
}

/* Placeholder mejorado */
#page-contacto .form-group input::placeholder,
#page-contacto .form-group textarea::placeholder {
  color: var(--ink-faint); opacity: 0.7;
}

/* Select: estilo igual a inputs */
#page-contacto .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238D929E' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}

/* Contador de caracteres */
.char-counter {
  display: block; text-align: right; font-size: 11px;
  color: var(--ink-faint); margin-top: 4px; transition: color 0.3s;
}
.char-counter.near-limit { color: var(--warm-500); }
.char-counter.at-limit { color: #e74c3c; font-weight: 500; }

/* Botón de envío */
.contact-submit {
  width: 100%; justify-content: center; padding: 13px 24px;
  font-size: 14px; margin-top: 8px; position: relative; overflow: hidden;
}
.contact-submit .btn-icon { transition: transform 0.3s; }
.contact-submit:hover .btn-icon { transform: translate(3px, -3px); }
.contact-submit.sending {
  pointer-events: none; opacity: 0.8;
}
.contact-submit.sent {
  background: #2CB67D; pointer-events: none;
}
.contact-submit.error {
  background: #e74c3c; pointer-events: none;
}

/* Redes sociales */
.contact-social { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.social-card {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.social-card svg { width: 20px; height: 20px; }
.social-card:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Contenido expandible de perspectiva */
.persp-expand {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.4s;
  opacity: 0;
}
.persp-expand.open {
  max-height: 3000px; opacity: 1;
}
.persp-expand-inner {
  font-size: 14px; color: var(--ink-soft); line-height: 1.8;
  padding: 14px 20px; margin-top: 12px;
  background: var(--navy-50); border-radius: 10px;
  border-left: 3px solid var(--navy-200);
}
.persp-expand-inner p + p { margin-top: 10px; }

/* ── Propuesta de valor grid ── */
.propval-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px;
}

/* ── Competencias ── */
.comp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px;
}
.comp-card {
  text-align: center; padding: 32px 24px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative; z-index: 1;
}
.comp-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.1); transform: translateY(-3px); }
.comp-icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: rgba(255,255,255,0.06); display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.comp-icon svg { width: 20px; height: 20px; stroke: var(--navy-300); stroke-width: 1.5; fill: none; }
.comp-card h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.comp-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ── Utilia Spotlight ── */
.utilia-section { position: relative; overflow: hidden; }
.utilia-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 48px;
}
.utilia-content { flex: 1; }
.utilia-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(58,95,138,0.1); color: var(--navy-600, #3A5F8A);
  padding: 5px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.utilia-content h2 { margin-top: 16px; font-size: clamp(24px, 3vw, 34px); }
.utilia-content p { margin-top: 12px; font-size: 15px; color: var(--ink-soft); line-height: 1.75; }
.utilia-features {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.utilia-feat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-muted); font-weight: 500;
  transition: all 0.3s; padding: 4px 8px; border-radius: 6px;
}
.utilia-feat svg { width: 16px; height: 16px; stroke: #2CB67D; stroke-width: 2; fill: none; }
.utilia-feat:hover { background: rgba(44,182,125,0.06); transform: translateX(2px); }
.utilia-visual {
  flex-shrink: 0; width: 300px; height: 360px; border-radius: 20px;
  background: linear-gradient(145deg, #f8faff, #edf2fc, #f0f5ff);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(26,115,232,0.08), 0 0 0 1px rgba(26,115,232,0.06);
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
  padding: 0;
}
.utilia-visual:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 70px rgba(26,115,232,0.14), 0 0 0 1px rgba(26,115,232,0.1);
}
.utilia-visual::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(26,115,232,0.05) 0%, transparent 50%);
  animation: drift 20s ease-in-out infinite; pointer-events: none;
}
.utilia-visual::after {
  content: ''; position: absolute; bottom: -20%; left: -30%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(26,115,232,0.03) 0%, transparent 40%);
  animation: drift 15s ease-in-out infinite reverse; pointer-events: none;
}
/* Logo Utilia — contenedor visual grande (seccion spotlight) */
.utilia-logo-text {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.utilia-visual:hover .utilia-logo-text { transform: scale(1.05); }
.utilia-logo-text img {
  width: 85%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
}

/* Utilia photo — efecto premium refinado */
@keyframes utiliaAmbient {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes utiliaShimmer {
  0%   { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}
.utilia-photo {
  position: relative; z-index: 1; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; overflow: hidden;
}
/* Ambient glow — resplandor sutil detrás de la foto */
.utilia-photo::before {
  content: ''; position: absolute; inset: -1px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(74,122,184,0.08), rgba(22,160,134,0.06), rgba(74,122,184,0.08));
  z-index: -1;
  transition: all 0.7s cubic-bezier(0.22,1,0.36,1);
  filter: blur(0);
}
.utilia-visual:hover .utilia-photo::before {
  inset: -6px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(74,122,184,0.18), rgba(22,160,134,0.12), rgba(74,122,184,0.18));
  filter: blur(8px);
}
/* Light sweep — destello premium que recorre la imagen */
.utilia-photo::after {
  content: ''; position: absolute;
  top: -20%; left: -50%; width: 40%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), rgba(255,255,255,0.15), rgba(255,255,255,0.08), transparent);
  z-index: 3; pointer-events: none;
  transform: translateX(-100%) rotate(25deg);
  opacity: 0;
  transition: opacity 0.3s;
}
.utilia-visual:hover .utilia-photo::after {
  opacity: 1;
  animation: utiliaShimmer 1.2s 0.15s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
.utilia-photo img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 14px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.7s cubic-bezier(0.22,1,0.36,1),
              filter 0.7s cubic-bezier(0.22,1,0.36,1);
  position: relative; z-index: 1;
}
.utilia-visual:hover .utilia-photo img {
  transform: scale(1.02);
  filter: brightness(1.03) contrast(1.01) saturate(1.05);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.08),
    0 16px 40px rgba(74,122,184,0.12),
    0 24px 56px rgba(0,0,0,0.1),
    inset 0 0 0 1px rgba(255,255,255,0.15);
}

/* Legacy keyframes kept for compatibility */
@keyframes utilia-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.03; }
  50% { transform: translate(6px, -8px); opacity: 0.07; }
}

/* Enlaces en logos Utilia: sin subrayado ni borde */
a:has(> .utilia-logo-img),
a:has(> img[alt="Utilia"]),
a.utilia-logo-heading {
  text-decoration: none;
  border: none;
  border-bottom: none;
}

/* Logo Utilia imagen inline — reutilizable en todo el sitio */
.utilia-logo-img {
  display: inline-block;
  height: 1.15em;
  width: auto;
  vertical-align: text-bottom;
  object-fit: contain;
  position: relative;
  top: -0.18em;
}
/* En fondos oscuros: aclarar el logo azul para mayor contraste */
.hero .utilia-logo-img,
.hero-desc a .utilia-logo-img,
.dark-section .utilia-logo-img,
.cta-section .utilia-logo-img,
.page-header .utilia-logo-img,
.footer .utilia-logo-img {
  filter: brightness(1.5) saturate(0.7);
}
/* Dentro de botones navy con texto blanco: logo blanco */
.btn-navy .utilia-logo-img {
  filter: brightness(0) invert(1);
  height: 1em;
}
/* En card-badge */
.card-badge .utilia-logo-img {
  height: 1em;
}
/* En el timeline (org links) */
.org .utilia-logo-img {
  height: 1.2em;
}

/* Logo Utilia heading (grande, seccion spotlight) */
.utilia-logo-heading {
  display: inline-flex;
  align-items: center;
  line-height: 1.15;
  text-decoration: none;
  border: none;
}
.utilia-logo-heading img {
  height: clamp(36px, 4.5vw, 56px);
  width: auto;
  object-fit: contain;
}
.utilia-logo-heading .ai-suffix {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0;
  margin-left: 2px;
}

/* ── CTA (llamada a la accion) — degradado premium con resplandores ── */
.cta-section {
  padding: 80px 32px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0B1222 0%, #0F1A2E 25%, #162C4A 50%, #1B3A5E 75%, #1E4570 100%);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74,122,184,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(44,182,125,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(74,122,184,0.08) 0%, transparent 55%);
}
.cta-section::after {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,122,184,0.10) 0%, transparent 60%);
  filter: blur(60px); pointer-events: none;
  animation: drift 20s ease-in-out infinite;
}
.cta-section h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; }
.cta-section p { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,0.55); max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-buttons { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
