/* Med-IA EgoTrip Link in Bio — "Monitor Vital"
   Identidad propia: esmeralda / teal sobre negro azulado,
   línea de electrocardiograma animada, avatar con anillos de pulso,
   feed de notificaciones en vivo y grid tipo bento. */

:root {
    /* Med-IA Palette (med-ia.com.mx) */
    --primary: #10b981;
    --primary-light: #34d399;
    --secondary: #14b8a6;
    --secondary-light: #2dd4bf;
    --accent: #0f766e;
    --dark: #020617;
    --deep-green: #022c22;
    --gradient-main: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --gradient-cta: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);

    --text-main: #f0fdf9;
    --text-muted: #8ba8a1;
    --card-bg: rgba(16, 185, 129, 0.05);
    --card-border: rgba(45, 212, 191, 0.15);
    --amber: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* ===== Background: vital glow ===== */
.bg-vital {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 80% 50% at 50% 110%, var(--deep-green) 0%, transparent 70%),
        radial-gradient(ellipse 70% 40% at 50% -10%, #0f172a 0%, transparent 75%),
        var(--dark);
    overflow: hidden;
}

.vital-glow {
    position: absolute;
    bottom: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.13) 0%, transparent 60%);
    filter: blur(80px);
    animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}

/* ===== Main Container ===== */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 50px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ===== Header: avatar with pulse rings ===== */
.profile-avatar {
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(45, 212, 191, 0.12) 0%, rgba(2, 6, 23, 0.9) 70%);
    padding: 22px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.7);
}

.profile-avatar::before,
.profile-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(52, 211, 153, 0.5);
    animation: pulseRing 3.2s ease-out infinite;
    pointer-events: none;
}

.profile-avatar::after {
    animation-delay: 1.6s;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.45); opacity: 0; }
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(2, 6, 23, 0.6));
}

.profile-bio {
    text-align: center;
    margin-bottom: 8px;
}

.profile-bio p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto;
    font-weight: 400;
}

.text-vital {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.28);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: heartbeatDot 1.2s ease-in-out infinite;
}

@keyframes heartbeatDot {
    0%, 100% { transform: scale(1); }
    12% { transform: scale(1.5); }
    24% { transform: scale(1); }
    36% { transform: scale(1.35); }
    48% { transform: scale(1); }
}

/* ===== ECG divider ===== */
.ecg-divider {
    width: 100%;
    max-width: 420px;
    height: 54px;
    margin-bottom: 18px;
    opacity: 0.9;
}

.ecg-divider svg {
    width: 100%;
    height: 100%;
}

.ecg-path {
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 640;
    stroke-dashoffset: 640;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.8));
    animation: ecgTrace 3.6s linear infinite;
}

@keyframes ecgTrace {
    0% { stroke-dashoffset: 640; opacity: 1; }
    62% { stroke-dashoffset: 0; opacity: 1; }
    78% { opacity: 0.25; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ===== Socials ===== */
.profile-socials {
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
}

.social-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.65rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-icon:hover {
    transform: translateY(-4px);
    background: var(--gradient-main);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
    color: #022c22;
}

.social-icon-primary {
    background: var(--gradient-main);
    border-color: transparent;
    color: #022c22;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.45);
}

/* ===== Link Cards ===== */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 54px;
}

.link-card {
    width: 100%;
    padding: 19px 26px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.link-card i {
    font-size: 1.25rem;
    margin-right: 12px;
    color: var(--primary-light);
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(52, 211, 153, 0.5);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.6), 0 0 18px rgba(16, 185, 129, 0.15);
}

/* ===== Showcase: live monitor feed ===== */
.monitor-section {
    width: 100%;
    margin-bottom: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monitor-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.25;
    margin-bottom: 28px;
}

.monitor-title span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.monitor-feed {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.monitor-feed::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 27px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(45, 212, 191, 0.3), transparent);
    z-index: 0;
}

.notif-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.85) 100%);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.55);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(24px);
    animation: slideNotif 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideNotif {
    to { opacity: 1; transform: translateX(0); }
}

.n-1 { animation-delay: 0.4s; }
.n-2 { animation-delay: 1.1s; }
.n-3 { animation-delay: 1.8s; }
.n-4 { animation-delay: 2.5s; }

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.icon-green {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: var(--primary-light);
}

.icon-teal {
    background: rgba(20, 184, 166, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: var(--secondary-light);
}

.icon-amber {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--amber);
}

.notif-body {
    flex: 1;
    line-height: 1.35;
    min-width: 0;
}

.notif-body strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
}

.notif-body span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 2px;
}

/* ===== Bento grid ===== */
.bento-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 50px;
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 24px 20px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.bento-item::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -25%;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bento-item:hover {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(16, 185, 129, 0.09);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.5);
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: #022c22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.bento-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.bento-item p {
    font-size: 0.87rem;
    color: var(--text-muted);
}

.bento-shield {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.09) 0%, rgba(2, 44, 34, 0.4) 100%);
}

/* ===== Final CTA ===== */
.cta-vital {
    width: 100%;
    border-radius: 26px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background:
        radial-gradient(circle at 50% -30%, rgba(16, 185, 129, 0.2) 0%, transparent 60%),
        rgba(2, 6, 23, 0.85);
    padding: 36px 22px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 0 38px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.cta-copy {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.final-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-cta);
    color: #022c22;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35);
}

.final-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 34px rgba(45, 212, 191, 0.5);
    background: linear-gradient(135deg, #2dd4bf 0%, #34d399 100%);
}

/* ===== EgoTrip Standard Footer ===== */
.footer-egotrip-btn {
    background: var(--gradient-main);
    color: #022c22;
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin: 10px 0 20px;
    display: inline-block;
}

.footer-egotrip-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
}

.footer-standard-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-standard-links a {
    color: rgba(240, 253, 249, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-standard-links a:hover {
    color: var(--primary-light);
}

.footer-standard-links .separator {
    color: rgba(240, 253, 249, 0.2);
}

/* ===== Desktop EgoTrip Standard Container ===== */
@media (min-width: 768px) {
    body {
        padding: 60px 20px;
        min-height: 100vh;
    }

    .desktop-card-container {
        max-width: 550px;
        margin: 0 auto;
        border-radius: 30px;
        box-shadow:
            0 20px 60px -10px rgba(2, 6, 23, 0.9),
            inset 0 0 24px rgba(16, 185, 129, 0.08);
        background-color: rgba(2, 6, 23, 0.92);
        border: 1px solid var(--card-border);
        overflow: hidden;
        position: relative;
        z-index: 2;
    }

    .container {
        padding: 60px 40px 80px;
    }
}
