/* Dent-IA EgoTrip Link in Bio — "Consola Clínica"
   Identidad propia: azul cielo / cian sobre navy profundo,
   fondo blueprint, avatar squircle, ticket de cita confirmada. */

:root {
    /* Dent-IA Palette (dent-ia.com.mx) */
    --primary: #0ea5e9;
    --primary-light: #38bdf8;
    --secondary: #3b82f6;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --dark: #050810;
    --navy: #0f3460;
    --gradient-main: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    --gradient-cta: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);

    --text-main: #f4f8fc;
    --text-muted: #94a9c4;
    --panel-bg: rgba(14, 165, 233, 0.04);
    --panel-border: rgba(56, 189, 248, 0.16);
}

* {
    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: clinical blueprint ===== */
.bg-clinic {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(15, 52, 96, 0.85) 0%, transparent 70%),
        var(--dark);
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 30%, transparent 90%);
    mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 30%, transparent 90%);
}

.bg-beam {
    position: absolute;
    top: -30%;
    left: 50%;
    width: 55vw;
    height: 80vh;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, transparent 65%);
    filter: blur(70px);
    animation: beamDrift 14s ease-in-out infinite alternate;
}

@keyframes beamDrift {
    0% { transform: translateX(-65%) scale(1); opacity: 0.7; }
    100% { transform: translateX(-35%) scale(1.15); opacity: 1; }
}

/* ===== 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: squircle avatar with scan ring ===== */
.profile-avatar {
    width: 132px;
    height: 132px;
    border-radius: 34px;
    background: linear-gradient(160deg, rgba(56, 189, 248, 0.1) 0%, rgba(5, 8, 16, 0.9) 100%);
    padding: 20px;
    border: 1px solid var(--panel-border);
    box-shadow:
        0 14px 34px rgba(2, 8, 23, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.avatar-scan {
    position: absolute;
    inset: -6px;
    border-radius: 39px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-top-color: transparent;
    border-right-color: transparent;
    animation: scanSpin 6s linear infinite;
    pointer-events: none;
}

@keyframes scanSpin {
    to { transform: rotate(360deg); }
}

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

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

.text-accent {
    color: var(--primary-light);
    font-weight: 700;
}

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22d3ee;
    border-radius: 2px;
    animation: blinkDot 1.6s steps(2, start) infinite;
}

@keyframes blinkDot {
    50% { opacity: 0.25; }
}

/* ===== Socials: square chips ===== */
.profile-socials {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.social-chip {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(2, 8, 23, 0.4);
}

.social-chip:hover {
    transform: translateY(-4px);
    background: var(--gradient-main);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.4);
}

.social-chip-primary {
    background: var(--gradient-main);
    border-color: transparent;
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.45);
}

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

.link-card {
    width: 100%;
    padding: 19px 24px;
    border-radius: 16px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: 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:first-child {
    font-size: 1.3rem;
    margin-right: 16px;
    color: var(--primary-light);
}

.link-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(14, 165, 233, 0.09);
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.5);
}

.link-card:hover .link-arrow {
    transform: translateX(5px);
    color: var(--accent-light);
}

/* ===== Showcase: chat -> ticket ===== */
.showcase-section {
    width: 100%;
    margin-bottom: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.showcase-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 26px;
    text-align: center;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.showcase-title span {
    color: var(--accent-light);
    margin-right: 6px;
}

.chat-panel {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    border: 1px solid var(--panel-border);
    background: rgba(7, 14, 28, 0.85);
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(2, 8, 23, 0.6);
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: rgba(14, 165, 233, 0.08);
    border-bottom: 1px solid var(--panel-border);
}

.chat-head-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.chat-head-info { line-height: 1.25; }
.chat-head-info strong { font-size: 13.5px; display: block; }
.chat-head-info span { font-size: 11px; color: var(--accent-light); }

.chat-body {
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(8px);
    animation: riseInMsg 0.45s ease forwards;
}

.chat-msg strong { color: var(--accent-light); }

.msg-in {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.18);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-out {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

@keyframes riseInMsg {
    to { opacity: 1; transform: translateY(0); }
}

.m-1 { animation-delay: 0.4s; }
.m-2 { animation-delay: 1.6s; }
.m-3 { animation-delay: 3s; }

/* Appointment ticket */
.ticket-card {
    width: 100%;
    max-width: 420px;
    margin-top: 16px;
    border-radius: 18px;
    border: 1px dashed rgba(34, 211, 238, 0.45);
    background: linear-gradient(160deg, rgba(6, 182, 212, 0.1) 0%, rgba(7, 14, 28, 0.9) 60%);
    padding: 18px;
    position: relative;
    opacity: 0;
    animation: riseInMsg 0.5s ease 4s forwards;
    box-shadow: 0 14px 34px rgba(2, 8, 23, 0.5);
}

.ticket-stamp {
    position: absolute;
    top: -12px;
    right: 16px;
    background: var(--gradient-cta);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.45);
    opacity: 0;
    transform: scale(1.7) rotate(-8deg);
    animation: stampIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 4.6s forwards;
}

@keyframes stampIn {
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.ticket-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.ticket-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-light);
    flex-shrink: 0;
}

.ticket-info strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
}

.ticket-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ticket-foot {
    border-top: 1px dashed rgba(56, 189, 248, 0.25);
    padding-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ticket-foot i {
    color: var(--primary-light);
    margin-right: 6px;
}

/* ===== Stats strip ===== */
.stats-strip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: var(--panel-bg);
    margin-bottom: 54px;
    overflow: hidden;
}

.stat-item {
    padding: 20px 10px;
    text-align: center;
}

.stat-item + .stat-item {
    border-left: 1px solid var(--panel-border);
}

.stat-item strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}

.stat-item span {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

/* ===== Feature rows ===== */
.feature-rows {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    transition: all 0.25s ease;
}

.feature-row:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.08);
    transform: translateX(6px);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

.feature-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 3px;
}

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

/* ===== Authority line ===== */
.authority-line {
    width: 100%;
    border-left: 3px solid var(--accent);
    padding: 6px 0 6px 20px;
    margin-bottom: 44px;
}

.authority-line p {
    font-size: 1.08rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.55;
}

.authority-line strong {
    color: var(--text-main);
}

/* ===== Final CTA panel ===== */
.cta-panel {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background:
        radial-gradient(circle at 50% 120%, rgba(6, 182, 212, 0.18) 0%, transparent 60%),
        rgba(7, 14, 28, 0.85);
    padding: 34px 22px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 0 34px rgba(14, 165, 233, 0.12);
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-copy {
    font-size: 1rem;
    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: #fff;
    padding: 15px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 10px 26px rgba(6, 182, 212, 0.35);
}

.final-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
}

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

.footer-egotrip-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 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(244, 248, 252, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-standard-links .separator {
    color: rgba(244, 248, 252, 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: 28px;
        box-shadow:
            0 20px 60px -10px rgba(2, 8, 23, 0.9),
            inset 0 0 24px rgba(14, 165, 233, 0.08);
        background-color: rgba(5, 8, 16, 0.92);
        border: 1px solid var(--panel-border);
        overflow: hidden;
        position: relative;
        z-index: 2;
    }

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