/* Capa visual para páginas internas de Medcural (aditiva sobre los estilos de cada página) */
:root {
  --g-brand: linear-gradient(135deg, #0A2472 0%, #0D47A1 55%, #1565C0 100%);
  --g-fresh: linear-gradient(135deg, #4CAF50 0%, #29ABE2 100%);
  --g-deep: linear-gradient(160deg, #0A1628 0%, #0A2472 55%, #0D47A1 100%);
  --s-suave: 0 12px 40px rgba(10, 36, 114, .10);
  --s-fuerte: 0 24px 60px rgba(10, 36, 114, .20);
}
html { scroll-behavior: smooth; }
body { background-image: radial-gradient(900px 500px at 100% 0%, rgba(41,171,226,.06), transparent 60%), radial-gradient(800px 500px at 0% 40%, rgba(76,175,80,.05), transparent 60%); background-attachment: fixed; }

/* Barra superior */
.nav, .navbar { background: linear-gradient(90deg, #0A1628, #0A2472) !important; border-bottom: 1px solid rgba(41,171,226,.25); box-shadow: 0 6px 24px rgba(10,22,40,.35) !important; }
.nav-cta { background: var(--g-fresh) !important; box-shadow: 0 8px 20px rgba(41,171,226,.35); transition: transform .2s, box-shadow .2s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(41,171,226,.5); }

/* Cabecera (hero) con degradado, orbes y cruz decorativa */
.hero { background: radial-gradient(700px 380px at 85% 10%, rgba(41,171,226,.35), transparent 60%), radial-gradient(600px 380px at 8% 95%, rgba(76,175,80,.25), transparent 60%), var(--g-deep) !important; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; border: 2px solid rgba(255,255,255,.10); box-shadow: 0 0 0 46px rgba(255,255,255,.03), 0 0 0 100px rgba(255,255,255,.02); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 span, .hero .t span { background: var(--g-fresh); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.hero-tag { backdrop-filter: blur(6px); background: linear-gradient(135deg, rgba(76,175,80,.28), rgba(41,171,226,.22)) !important; border-color: rgba(255,255,255,.28) !important; color: #E8F5E9 !important; }

/* Etiquetas y títulos de sección */
.section-tag { background: var(--g-fresh); color: #fff !important; padding: 6px 16px; border-radius: 50px; box-shadow: 0 8px 18px rgba(41,171,226,.28); }
.section-title { position: relative; }
.section-title::after { content: ''; display: block; width: 64px; height: 5px; border-radius: 4px; background: var(--g-fresh); margin-top: 14px; }
.section-alt, .section.section-alt { background: radial-gradient(rgba(13,71,161,.07) 1.5px, transparent 1.5px) 0 0 / 26px 26px, linear-gradient(180deg, #F0F6FC, #E8F1FA) !important; }

/* Tarjetas */
.valor-card, .team-card, .pais-card, .card, .article-card, .faq-item, .sidebar-card { box-shadow: var(--s-suave); border-color: rgba(13,71,161,.08) !important; position: relative; }
.valor-card::before, .team-card::before, .article-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--g-fresh); border-radius: 16px 16px 0 0; }
.article-card { overflow: hidden; }
.valor-card:hover, .team-card:hover, .article-card:hover { box-shadow: var(--s-fuerte) !important; }
.valor-icon, .card-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--g-fresh); box-shadow: 0 10px 24px rgba(41,171,226,.32), inset 0 1px 0 rgba(255,255,255,.35); font-size: 30px !important; }
.team-av { border: 4px solid transparent !important; background-image: linear-gradient(#fff, #fff), var(--g-fresh); background-origin: border-box; background-clip: padding-box, border-box; }
.mision-box { background: radial-gradient(420px 260px at 100% 0%, rgba(41,171,226,.4), transparent 60%), var(--g-brand) !important; box-shadow: var(--s-fuerte); position: relative; overflow: hidden; }
.timeline::before { width: 4px !important; border-radius: 4px; }
.tl-dot { background: var(--g-fresh) !important; box-shadow: 0 0 0 3px rgba(41,171,226,.35) !important; }

/* Botones */
.btn-cta, .btn-contact, .b-verde, .btn-submit, .btn.btn-primary, .btn-primary { background: var(--g-fresh) !important; border: none !important; color: #fff !important; box-shadow: 0 12px 28px rgba(41,171,226,.35); transition: transform .2s, box-shadow .2s; }
.btn-cta:hover, .btn-contact:hover, .b-verde:hover, .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(41,171,226,.5); }
.cat-btn { transition: all .2s; }
.cat-btn.active, .cat-btn:hover { background: var(--g-brand) !important; color: #fff !important; border-color: transparent !important; }

/* Llamado a la acción y newsletter */
.cta, .newsletter { background: radial-gradient(520px 300px at 90% 0%, rgba(41,171,226,.38), transparent 60%), radial-gradient(480px 300px at 5% 100%, rgba(76,175,80,.28), transparent 60%), var(--g-deep) !important; position: relative; overflow: hidden; }
.cta::before { content: '+'; position: absolute; left: 6%; top: 10%; font-size: 150px; font-weight: 800; color: rgba(255,255,255,.05); line-height: 1; pointer-events: none; }
.cta > *, .newsletter > * { position: relative; z-index: 1; }

/* Formularios */
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .fg input:focus, .fg select:focus, .fg textarea:focus { border-color: #29ABE2 !important; box-shadow: 0 0 0 4px rgba(41,171,226,.18) !important; outline: none; }
.sidebar-item-icon, .benefit-icon, .step-info-title + * { }
.sidebar-item-icon, .benefit-icon { border-radius: 12px; }

/* Pie */
.footer-min, .page-footer { background: linear-gradient(180deg, #0A1628, #060D1A) !important; border-top: 3px solid transparent; border-image: linear-gradient(90deg, #4CAF50, #29ABE2) 1; }

@media (max-width: 600px) { .hero::after { width: 220px; height: 220px; right: -80px; top: -80px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
[style*="text-align:center"] > .section-title::after, [style*="text-align: center"] > .section-title::after { margin-left: auto; margin-right: auto; }
.ic { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-tile {
  display: grid; place-items: center; flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 17px; color: #fff;
  background: var(--grad-fresh); position: relative;
  box-shadow: 0 10px 24px rgba(41, 171, 226, .35), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.ic-tile .ic { width: 26px; height: 26px; }
.ic-tile.azul  { background: linear-gradient(135deg, #0D47A1, #29ABE2); box-shadow: 0 10px 24px rgba(13, 71, 161, .35), inset 0 1px 0 rgba(255, 255, 255, .3); }
.ic-tile.verde { background: linear-gradient(135deg, #2E9E4F, #86D993); box-shadow: 0 10px 24px rgba(46, 158, 79, .32), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ic-tile.vino  { background: linear-gradient(135deg, #6D3AE0, #29ABE2); box-shadow: 0 10px 24px rgba(109, 58, 224, .30), inset 0 1px 0 rgba(255, 255, 255, .3); }
.ic-tile.glass { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .28); box-shadow: none; }
.ic-tile.sm { width: 40px; height: 40px; border-radius: 13px; }
.ic-tile.sm .ic { width: 20px; height: 20px; }

/* Beneficios: imagen IA + medicina */
.hero.con-imagen::before { content: ''; position: absolute; right: 2%; top: 50%; transform: translateY(-50%); width: min(520px, 55vw); aspect-ratio: 1; background: url('/fondo-ia-medicina.webp') center / cover no-repeat; opacity: .32; -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 70%); mask-image: radial-gradient(circle at center, #000 30%, transparent 70%); pointer-events: none; z-index: 0; }
.card .ic-tile { margin-bottom: 10px; }
.card > .ic { font-size: inherit; margin-bottom: 0; }
.cta.con-imagen::after { content: ''; position: absolute; right: -4%; bottom: -30%; width: min(460px, 60vw); aspect-ratio: 1; background: url('/fondo-ia-medicina.webp') center / cover no-repeat; opacity: .22; -webkit-mask-image: radial-gradient(circle at center, #000 28%, transparent 70%); mask-image: radial-gradient(circle at center, #000 28%, transparent 70%); pointer-events: none; }
.card > div.ic { width: auto; height: auto; stroke: none; }
