@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Literata:opsz,wght@7..72,400;7..72,600&display=swap");

/* UI 2026 · estilo Psicosentit. Capa que se carga después de style.css */
:root {
  --font-1: "Literata", Georgia, serif;
  --font-2: "Figtree", system-ui, sans-serif;
  --deep: #2b3a67;
  --cyan-soft: #8fe9f4;
  --shadow-soft: 0 14px 40px rgba(74, 91, 140, 0.14);
  --shadow-lift: 0 22px 50px rgba(74, 91, 140, 0.22);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-2); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .font-1 { font-family: var(--font-1) !important; letter-spacing: -0.01em; }
h1, h2 { font-weight: 400 !important; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem) !important; }
h3, h4 { font-weight: 600 !important; }
.form-label { font-family: var(--font-2) !important; }
:focus-visible { outline: 3px solid #4b72d8; outline-offset: 3px; border-radius: 6px; }
::selection { background: #27c8dc; color: var(--deep); }

/* Barra de progreso de scroll */
.ui-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2000; pointer-events: none; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #3f43e8, #27c8dc); }

/* Cabecera translúcida que se compacta */
/* El desenfoque va en un pseudo-elemento: un backdrop-filter en la propia cabecera encierra el menú móvil (offcanvas) dentro de su altura y no se ve nada.
   El z-index queda por encima del fondo (1040) y del panel (1045) de Bootstrap para que el menú se pueda pulsar. */
header.bg-white { background: transparent !important; position: sticky; top: 0; z-index: 1046; border-bottom: 1px solid transparent; transition: box-shadow 0.3s ease, border-color 0.3s ease; }
header.bg-white::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 28px rgba(74, 91, 140, 0.12); }
.logo-box img { transition: max-height 0.3s ease; }
header.is-scrolled .logo-box img { max-height: 58px; }
.nav-link { font-weight: 600; position: relative; }
@media (min-width: 992px) {
  .nav-link::after { content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.15rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #4b72d8, #27c8dc); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
  .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
}
.dropdown-menu { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); padding: 0.5rem; }
.dropdown-item { border-radius: 12px; }

/* Portada: degradado de marca con círculos que flotan */
.hero-section { background: radial-gradient(900px 520px at 88% 12%, rgba(39, 200, 220, 0.5), transparent 62%), linear-gradient(135deg, #2b3a67 0%, #4a5b8c 48%, #4b72d8 100%) !important; position: relative; overflow: hidden; padding-bottom: 96px; }
.hero-section > * { position: relative; z-index: 1; }
.hero-section::before, .hero-section::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; translate: 0 calc(var(--sy, 0) * 0.12px); }
.hero-section::before { width: 520px; height: 520px; right: -130px; top: -90px; background: rgba(39, 200, 220, 0.26); animation: ui-float 15s ease-in-out infinite; }
.hero-section::after { width: 420px; height: 420px; right: 150px; bottom: -170px; background: rgba(255, 255, 255, 0.09); animation: ui-float 19s ease-in-out infinite reverse; }
@keyframes ui-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-34px, 26px) scale(1.06); } }
.hero-section h6, .bg-gradient-secondary .text-primary-color, .quotes-section .text-primary-color, .footer .text-primary-color { color: var(--cyan-soft) !important; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; font-weight: 600; }
.quotes-section h2 .text-primary-color { text-transform: none; letter-spacing: 0; font-size: inherit; font-weight: inherit; }
.hero-section hr { height: 4px; width: 72px !important; border: 0 !important; border-radius: 4px; opacity: 1 !important; background: linear-gradient(90deg, #fff, #27c8dc); }
.hero-section .btn-primary-solid { background: #fff; color: var(--deep); box-shadow: 0 10px 26px rgba(10, 16, 48, 0.28); }
.hero-section .btn-primary-solid:hover { background: #27c8dc; color: var(--deep); }
.banner-section { background: linear-gradient(135deg, #2b3a67 0%, #34457a 55%, #3d4f7c 100%); }

/* Botones */
.btn-primary-solid, .btn-secondary-solid, .btn-secondary-solid-2, .btn-quotes { border-radius: 999px; font-weight: 600; position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(75, 114, 216, 0.28); transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease; }
.btn-primary-solid:hover, .btn-secondary-solid:hover, .btn-secondary-solid-2:hover, .btn-quotes:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.btn-primary-solid::after, .btn-secondary-solid::after, .btn-quotes::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s ease; }
.btn-primary-solid:hover::after, .btn-secondary-solid:hover::after, .btn-quotes:hover::after { transform: translateX(120%); }

/* Tarjetas y formas */
.rounded-5 { border-radius: 28px !important; }
.card, .news-card, .feedback-card { border-radius: 28px; }
.bg-secondary-color-2.rounded-5 { background: #fff !important; color: var(--text-color) !important; border: 1px solid var(--line); border-top: 6px solid var(--primary-color); box-shadow: var(--shadow-soft); }
.bg-secondary-color-2.rounded-5 .text-white { color: var(--text-color) !important; }
.bg-secondary-color-2.rounded-circle { background: linear-gradient(135deg, #4b72d8, #27c8dc) !important; box-shadow: 0 8px 18px rgba(75, 114, 216, 0.3); }
.transition-hover { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.transition-hover:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift) !important; }
.img-container, .ratio-wrapper-429, .ratio-wrapper-419 { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-soft); }
.img-container img, .ratio-wrapper-429 img, .ratio-wrapper-419 img { transition: transform 0.9s ease; }
.img-container:hover img, .ratio-wrapper-429:hover img, .ratio-wrapper-419:hover img { transform: scale(1.05); }

/* Bloques destacados */
.bg-gradient-secondary { background: linear-gradient(135deg, #2b3a67 0%, #34457a 55%, #3d4f7c 100%) !important; border-radius: 0; margin-inline: 0; position: relative; overflow: hidden; }
.bg-gradient-secondary::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -90px; top: -120px; background: rgba(39, 200, 220, 0.22); pointer-events: none; }
.bg-gradient-secondary > * { position: relative; }
.quotes-section { border-radius: 0; margin-inline: 0; }
.accordion .accordion-item { border: 0; background: transparent; margin-bottom: 0.75rem; }
.accordion .accordion-button { border-radius: 22px !important; transition: background-color 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 6px 16px rgba(75, 114, 216, 0.18); }
.accordion .accordion-body { background: #fff; border-radius: 0 0 22px 22px; }

/* Formularios */
.form-control, .form-select { border: 1.5px solid var(--line); background: #fff; padding: 0.8rem 1.1rem; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.form-control:focus, .form-select:focus { border-color: #4b72d8; box-shadow: 0 0 0 4px rgba(75, 114, 216, 0.18); }

/* Pie de página */
footer.footer { border-radius: 0; margin-top: 0; }
.whatsapp-popup .popup-icon { animation: ui-pulse 2.8s ease-out infinite; }
@keyframes ui-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Más contraste en títulos claros sobre fondos oscuros */
.quotes-background::before { background: linear-gradient(135deg, rgba(43, 58, 103, 0.96), rgba(52, 69, 122, 0.93)) !important; opacity: 1 !important; }
.footer-background::before { background: linear-gradient(to bottom, rgba(43, 58, 103, 0.8), rgba(43, 58, 103, 0.88)) !important; }
.footer .text-secondary-color-2, .footer h4 { color: var(--cyan-soft) !important; }
.links-secondary:hover { color: var(--cyan-soft) !important; }

/* Iconos de redes sociales centrados en su círculo */
.social-box a { display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0 !important; line-height: 1; border-radius: 50% !important; }
.social-box a i { display: block; line-height: 1; font-size: 1.1rem; margin: 0; }

/* Etiquetas de la tarjeta de contacto (fondo claro): más contraste */
.quotes-section .card .text-primary-color { color: #2b3a67 !important; font-weight: 700; }

/* Sección "Sobre mí": la foto ocupa todo el marco y el logotipo no se recorta */
.img-container { overflow: visible !important; box-shadow: none !important; border-radius: 0 !important; padding-inline: 0 !important; }
.ratio-wrapper-429, .ratio-wrapper-419 { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-soft); }
.img-circle { border-radius: 50%; background: #fff; display: grid; place-items: center; }
.img-circle img { width: 80%; height: auto; max-width: none; }
.img-container:hover .img-circle img { transform: none; }

/* Foto de la portada: borde con luz suave y sombra para integrarla con el fondo */
.hero-section img[src*="Fabian-hero"] { filter: drop-shadow(0 0 1.5px rgba(143, 233, 244, 0.55)) drop-shadow(0 26px 44px rgba(10, 16, 48, 0.4)); }

/* Logotipo circular de "Sobre mí": algo más pequeño */
.img-circle { width: 210px !important; height: 210px !important; }
@media (max-width: 767.98px) { .img-circle { width: 170px !important; height: 170px !important; } }
