/* ConBoca - Confirmación de asistencia
   Estilo: Neubrutalism Refinado */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --ink: #2d2d2d;
    --ink-light: #4a4a4a;
    --white: #ffffff;
    --cream: #fdfbf7;
    --sand: #f5f0e8;
    --stone: #e8e2d9;
    --sage: #c8d4c4;
    --sage-dark: #a8b8a4;
    --blush: #e8d4d4;
    --blush-dark: #d4b8b8;
    --sky: #d4e4ec;
    --sky-dark: #b8ccd8;
    --honey: #e8dcc4;
    --honey-dark: #d4c4a8;
    --coral: #dcc4bc;
    --border: 2px solid var(--ink);
    --border-light: 1px solid var(--stone);
    --shadow: 4px 4px 0 var(--ink);
    --shadow-sm: 2px 2px 0 var(--ink);
    --shadow-hover: 6px 6px 0 var(--ink);
    --radius: 2px;
    --font: 'DM Sans', system-ui, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    font-size: 15px;
}

/* NAV */
nav {
    background: var(--white);
    border-bottom: var(--border);
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo { 
    font-size: 1.35rem; 
    font-weight: 700; 
    letter-spacing: -0.02em;
}
.nav-logo span { 
    background: var(--ink);
    color: var(--white);
    padding: 0.15rem 0.5rem;
    margin-left: 0.15rem;
}
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-credits { 
    background: var(--sage); 
    color: var(--ink); 
    padding: 0.4rem 1rem; 
    font-size: 0.8rem; 
    font-weight: 600;
    border: var(--border);
}
.nav-user { font-size: 0.85rem; color: var(--ink-light); }
.btn-logout { 
    background: var(--white); 
    border: var(--border);
    cursor: pointer; 
    font-size: 0.8rem; 
    font-weight: 600; 
    padding: 0.4rem 1rem;
    font-family: var(--font);
    transition: all 0.15s;
}
.btn-logout:hover {
    background: var(--sand);
}

.container { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; }

/* LOGIN */
.login-wrap { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    padding: 2rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
}
.login-box { width: 100%; max-width: 380px; text-align: center; }
.login-icon { 
    width: 88px; 
    height: 88px; 
    background: var(--white); 
    border: var(--border);
    box-shadow: var(--shadow);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.5rem; 
    margin: 0 auto 2rem;
}
.login-title { 
    font-size: 2rem; 
    font-weight: 700; 
    letter-spacing: -0.03em; 
    margin-bottom: 0.5rem;
}
.login-sub { color: var(--ink-light); font-size: 1rem; margin-bottom: 2rem; }
.login-card { 
    background: var(--white); 
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 2rem;
}
.login-note { margin-top: 1.5rem; font-size: 0.85rem; color: var(--ink-light); }
.login-note a { color: var(--ink); font-weight: 600; }

/* FORM */
.form-input {
    width: 100%; 
    padding: 0.9rem 1rem; 
    border: var(--border); 
    border-radius: var(--radius);
    font-size: 0.95rem; 
    margin-bottom: 0.75rem; 
    outline: none; 
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    transition: all 0.2s;
}
.form-input::placeholder { color: #999; }
.form-input:focus { 
    background: var(--sand);
    box-shadow: var(--shadow-sm);
}
.form-label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    text-align: left;
    color: var(--ink-light);
}
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-helper { font-size: 0.8rem; color: var(--ink-light); margin-top: 0.4rem; text-align: left; }
textarea.form-input { resize: vertical; min-height: 110px; }

.form-check { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    margin-bottom: 0.5rem; 
    padding: 0.75rem 1rem; 
    background: var(--white);
    border: var(--border);
    cursor: pointer; 
    transition: all 0.15s;
}
.form-check:hover { 
    background: var(--sand);
}
.form-check input[type="checkbox"] { 
    width: 18px; 
    height: 18px; 
    accent-color: var(--ink); 
    cursor: pointer;
}
.form-check label { font-size: 0.9rem; cursor: pointer; font-weight: 500; }

/* BUTTONS */
.btn {
    width: 100%; 
    padding: 0.9rem 1.25rem; 
    background: var(--ink); 
    color: var(--white); 
    border: var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem; 
    font-weight: 600; 
    cursor: pointer;
    font-family: var(--font);
    letter-spacing: 0.01em;
    box-shadow: var(--shadow);
    transition: all 0.15s;
}
.btn:hover { 
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}
.btn:active { 
    transform: translate(2px, 2px);
    box-shadow: none;
}
.btn:disabled, .btn[disabled] { 
    opacity: 0.4 !important; 
    cursor: not-allowed !important; 
    transform: none !important; 
    pointer-events: none;
    background: #ccc !important;
    color: #666 !important;
}

.btn-success { background: var(--sage-dark); color: var(--ink); }
.btn-danger { background: var(--blush-dark); color: var(--ink); }
.btn-sm { width: auto; padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-outline { 
    background: var(--white); 
    color: var(--ink);
}
.btn-secondary { background: var(--stone); color: var(--ink); }

.error-msg { 
    background: var(--blush); 
    color: var(--ink); 
    padding: 0.9rem 1rem; 
    border: var(--border);
    margin-bottom: 1rem; 
    font-size: 0.9rem; 
    font-weight: 500; 
    display: none;
}

/* CARDS */
.card { 
    background: var(--white); 
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 1.5rem; 
    margin-bottom: 1rem;
    transition: all 0.15s;
}
.card:hover { 
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}
.card-clickable { cursor: pointer; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.card-title { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.card-section-title { 
    font-size: 0.7rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--ink-light);
}
.card-meta { font-size: 0.85rem; color: var(--ink-light); }
.card-chevron { color: var(--ink-light); font-size: 1.25rem; }

/* BADGES */
.badge { 
    padding: 0.25rem 0.7rem; 
    font-size: 0.7rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
}
.badge-active { background: var(--sage); }
.badge-completed { background: var(--sky); }
.badge-cancelled { background: var(--blush); }
.badge-affirmative { background: var(--sage); }
.badge-negative { background: var(--blush); }
.badge-unknown { background: var(--honey); }
.badge-pending { background: var(--stone); }

/* STATS */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat-card { 
    background: var(--white); 
    border: var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem; 
    text-align: center;
}
.stat-number { 
    font-size: 2.25rem; 
    font-weight: 700; 
    letter-spacing: -0.03em;
    line-height: 1;
}
.stat-label { 
    font-size: 0.7rem; 
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-light);
    margin-top: 0.4rem;
}
.stat-card.green { background: #b8e6b8; }  /* Verde claro */
.stat-card.red { background: #f0b8b8; }    /* Rojo claro */
.stat-card.yellow { background: #f5e6a3; } /* Amarillo claro */
.stat-card.orange { background: var(--honey); }
.stat-card.blue { background: var(--sky); }

/* TABS */
.tabs {
    display: flex;
    background: var(--stone);
    border: var(--border);
    padding: 4px;
    margin-bottom: 1.5rem;
    gap: 4px;
}
.tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-light);
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: var(--font);
    letter-spacing: 0.02em;
    transition: all 0.15s;
}
.tab.active {
    background: var(--white);
    color: var(--ink);
    border: var(--border);
    margin: -4px;
    padding: calc(0.75rem + 4px) calc(0.5rem + 4px);
}
.tab:hover:not(.active) { color: var(--ink); }
.tab-icon { display: block; font-size: 1.1rem; margin-bottom: 3px; }

.tab-content { display: none; animation: fadeIn 0.25s ease; }
.tab-content.active { display: block; }

/* DASHBOARD */
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.dash-title { 
    font-size: 1.75rem; 
    font-weight: 700; 
    letter-spacing: -0.02em;
}
.dash-subtitle { font-size: 0.95rem; color: var(--ink-light); margin-top: 0.25rem; }

/* DETAIL HEADER */
.detail-header {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.detail-back {
    background: var(--white);
    border: var(--border);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
}
.detail-back:hover { 
    background: var(--sand);
}
.detail-title-area { flex: 1; }
.detail-event-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.detail-event-meta { font-size: 0.85rem; color: var(--ink-light); margin-top: 0.15rem; }

/* INVITEE LIST */
.invitee-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--stone);
    background: var(--white);
    transition: background 0.15s;
}
.invitee-item:hover { background: var(--sand); }
.invitee-item:last-child { border-bottom: none; }
.invitee-info { display: flex; align-items: center; gap: 0.9rem; }
.invitee-avatar { 
    width: 42px; 
    height: 42px; 
    background: var(--stone);
    border: var(--border);
    color: var(--ink);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    font-size: 0.9rem;
}
.invitee-name { font-weight: 600; font-size: 0.95rem; }
.invitee-phone { font-size: 0.8rem; color: var(--ink-light); }
.remove-btn { 
    background: var(--white);
    border: var(--border);
    color: var(--ink);
    cursor: pointer; 
    font-size: 1rem; 
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.15s;
}
.remove-btn:hover { 
    background: var(--blush);
}

/* RECORDER */
.recorder { 
    background: var(--white);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 2.5rem; 
    text-align: center;
}
.recorder.recording { 
    background: var(--blush);
}
.rec-btn { 
    width: 72px; 
    height: 72px; 
    border: var(--border);
    border-radius: 50%;
    background: var(--blush-dark); 
    color: var(--ink); 
    font-size: 1.75rem; 
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.15s;
}
.rec-btn:hover { 
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}
.rec-status { 
    margin-top: 1rem; 
    font-size: 0.9rem; 
    color: var(--ink-light);
    font-weight: 500;
}

/* TABLE */
.table-wrap { 
    border: var(--border);
    box-shadow: var(--shadow);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.table-wrap::-webkit-scrollbar { display: none; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 0.9rem 1rem; text-align: left; font-size: 0.85rem; }
th { 
    font-weight: 600; 
    text-transform: uppercase;
    font-size: 0.7rem; 
    letter-spacing: 0.06em;
    background: var(--sand);
    color: var(--ink-light);
    border-bottom: var(--border);
}
td { border-bottom: 1px solid var(--stone); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--sand); }

.audio-play-btn { 
    background: var(--white);
    border: var(--border);
    color: var(--ink);
    padding: 0.4rem 0.9rem;
    cursor: pointer; 
    font-size: 0.75rem; 
    font-weight: 600;
    font-family: var(--font);
    transition: all 0.15s;
}
.audio-play-btn:hover { 
    background: var(--sage);
}

/* EMPTY */
.empty-state { text-align: center; padding: 3.5rem 2rem; }
.empty-icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.5; }
.empty-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4rem; }
.empty-desc { font-size: 0.9rem; color: var(--ink-light); margin-bottom: 1.5rem; }

/* SEND AREA */
.send-area { text-align: center; padding: 1.5rem 0; }
.send-area .btn { 
    width: auto; 
    padding: 0.9rem 2rem;
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem;
    background: var(--sage-dark);
    color: var(--ink);
}

/* REMINDER TAGS */
.reminder-tags { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.reminder-tag { 
    font-size: 0.7rem; 
    padding: 0.3rem 0.6rem;
    font-weight: 600;
    border: 1px solid var(--ink);
}
.reminder-tag.on { background: var(--sage); }
.reminder-tag.off { background: var(--white); color: var(--ink-light); border-color: var(--stone); }

/* VIEWS */
.view { display: none; }
.view.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* LANDING */
.landing { min-height: 100vh; background: var(--cream); }
.landing-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.25rem 2rem; 
    max-width: 960px; 
    margin: 0 auto;
}
.landing-container { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.landing-hero { 
    padding: 5rem 0 4rem; 
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
    border-bottom: var(--border);
}
.hero-badge { 
    display: inline-block; 
    background: var(--sage);
    color: var(--ink);
    font-size: 0.75rem; 
    font-weight: 600;
    padding: 0.4rem 1rem;
    border: var(--border);
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}
.hero-title { 
    font-size: 3rem; 
    font-weight: 700; 
    letter-spacing: -0.04em; 
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.hero-sub { 
    font-size: 1.15rem; 
    color: var(--ink-light);
    max-width: 500px; 
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.hero-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.hero-actions .btn { width: auto; padding: 0.9rem 2rem; }
.hero-actions .btn-outline { background: var(--white); }

.landing-section { padding: 4rem 0; background: var(--white); border-top: var(--border); }
.section-title { 
    font-size: 1.75rem; 
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center; 
    margin-bottom: 2.5rem;
}

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.step-card { 
    background: var(--cream);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 2rem 1.25rem 1.5rem; 
    text-align: center;
    position: relative;
}
.step-number { 
    position: absolute; 
    top: -12px; 
    left: 50%; 
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--white);
    width: 26px; 
    height: 26px;
    font-size: 0.8rem; 
    font-weight: 700;
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.step-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.step-card h3 { 
    font-size: 1rem; 
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.step-card p { font-size: 0.85rem; color: var(--ink-light); line-height: 1.5; }

.usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; }

/* Price card */
.price-card {
    background: var(--sage);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 380px;
}
.price-amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.price-period {
    font-size: 0.95rem;
    color: var(--ink-light);
    margin-top: 0.4rem;
}

/* Footer */
footer {
    background: var(--ink);
    color: var(--stone);
    padding: 1.75rem 2rem;
    text-align: center;
    font-size: 0.85rem;
}
footer a {
    color: var(--white);
    text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    nav { padding: 0 1rem; height: 54px; }
    .nav-logo { font-size: 1.15rem; }
    .container { padding: 1.5rem 1rem; }
    .dash-title { font-size: 1.5rem; }
    .hero-title { font-size: 2.25rem; }
    .hero-sub { font-size: 1rem; }
    .stat-number { font-size: 1.9rem; }
    .form-row { grid-template-columns: 1fr; }
    .tabs { flex-direction: column; }
    .tab.active { margin: -4px; padding: calc(0.75rem + 4px) calc(0.5rem + 4px); }
}

/* Result Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    border-radius: var(--radius);
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0 var(--black);
    animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

