/* ============================================
   FORMULARIO INSCRIPCIÓN CONGRESO HOTELEROS DE CHILE
   Estilos inspirados en Hoteleros de Chile
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #666666;
    background-color: #dde8ed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Container --- */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1100px;
}

/* === LOGIN PAGE === */
.login-body {
    background: linear-gradient(135deg, #142c4a 0%, #1f4468 50%, #2a5478 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 36px 32px 24px;
    background: linear-gradient(135deg, #142c4a 0%, #1a3a5c 100%);
    border-bottom: 4px solid #d23641;
}

.login-logo {
    max-height: 52px;
    width: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.login-header h1 {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.login-form {
    padding: 28px 32px 36px;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #444444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-icon {
    position: relative;
}

.input-icon .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    padding: 13px 14px 13px 46px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    color: #333333;
    background-color: #f8f9fb;
    border: 2px solid #e0e3e7;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.input-icon input:focus {
    border-color: #142c4a;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 44, 74, 0.1);
}

.input-icon input.error {
    border-color: #d23641;
}

.login-error {
    font-size: 13px;
    color: #d23641;
    margin-bottom: 16px;
    min-height: 20px;
    font-weight: 500;
}

.login-btn {
    width: 100%;
    padding: 14px;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #d23641 0%, #b82e38 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.5px;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 54, 65, 0.35);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 6px 12px;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #ffffff;
}

/* --- Header --- */
.site-header {
    background-color: #142c4a;
    padding: 24px 0;
    border-bottom: 4px solid #d23641;
}

/* --- Banner header (reemplaza site-header en formularios) --- */
.banner-header {
    width: 100%;
    line-height: 0;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.logo-area {
    text-align: center;
}

.site-logo {
    max-height: 52px;
    width: auto;
    margin-bottom: 8px;
}

.site-title {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #142c4a 0%, #1a3a5c 100%);
    padding: 56px 0;
    text-align: center;
}

.hero-content .hero-fecha {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.4;
}

.hero-content .hero-lugar {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    line-height: 1.4;
}

.hero-content h2 {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-content p {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Form Section --- */
.form-section {
    padding: 48px 0 64px;
}

.registration-form {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 40px 48px;
}

/* --- Form Blocks --- */
.form-block {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #e8eaed;
}

.form-block:last-of-type {
    border-bottom: none;
    margin-bottom: 28px;
    padding-bottom: 0;
}

.block-title {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #142c4a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.block-desc {
    font-size: 14px;
    color: #888888;
    margin-bottom: 20px;
}

/* --- Form Rows & Groups --- */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    min-width: 0;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.form-group label {
    display: block;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 6px;
}

.required {
    color: #d23641;
}

/* --- Inputs & Selects --- */
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    color: #333333;
    background-color: #ffffff;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.form-group input::placeholder {
    color: #a0a5ad;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #142c4a;
    box-shadow: 0 0 0 3px rgba(20, 44, 74, 0.12);
}

.form-group input.error,
.form-group select.error {
    border-color: #d23641;
}

.form-group input.error:focus,
.form-group select.error:focus {
    box-shadow: 0 0 0 3px rgba(210, 54, 65, 0.15);
}

/* --- Error Messages --- */
.error-msg {
    display: block;
    font-size: 13px;
    color: #d23641;
    margin-top: 4px;
    min-height: 18px;
    font-weight: 500;
}

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background: transparent;
}

.tab-btn {
    flex: 1;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #1a3a5c;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    letter-spacing: 0.3px;
}

.tab-btn:first-child {
    border-radius: 8px 0 0 0;
}

.tab-btn:last-child {
    border-radius: 0 8px 0 0;
}

.tab-btn:hover {
    background-color: #1f4468;
}

.tab-btn.active {
    background-color: #ffffff;
    color: #142c4a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* --- Buttons --- */
.form-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 8px;
}

.btn-submit {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    background-color: #d23641;
    border: none;
    border-radius: 0;
    padding: 14px 36px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    background-color: #b82e38;
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-reset {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #888888;
    background: none;
    border: 1.5px solid #d0d5dd;
    border-radius: 0;
    padding: 12px 28px;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.btn-reset:hover {
    color: #d23641;
    border-color: #d23641;
}

/* --- Success Message --- */
.success-wrapper {
    display: none;
}

.success-wrapper.show {
    display: block;
}

.success-message {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 60px 48px;
    text-align: center;
}

.success-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 16px;
}

.success-message h3 {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #142c4a;
    margin-bottom: 12px;
}

.success-message p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 8px;
}

.success-message .btn-volver {
    display: inline-block;
    margin-top: 24px;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #142c4a;
    border: none;
    padding: 12px 32px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.success-message .btn-volver:hover {
    background-color: #1f3e64;
}

/* --- Cards (Landing Page) --- */
.cards-container {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-link {
    text-decoration: none;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.card-title {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #142c4a;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 15px;
    color: #888888;
    margin-bottom: 24px;
    line-height: 1.6;
    flex: 1;
}

.card-btn {
    display: inline-block;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #d23641;
    padding: 10px 28px;
    transition: background-color 0.3s ease;
}

.card:hover .card-btn {
    background-color: #b82e38;
}

.admin-access {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e0e3e7;
}

.admin-link {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #888888;
    text-decoration: none;
    padding: 8px 20px;
    border: 1.5px solid #d0d5dd;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.admin-link:hover {
    color: #142c4a;
    border-color: #142c4a;
}

/* === ADMIN TOPBAR === */
.admin-topbar {
    background-color: #142c4a;
    padding: 12px 0;
    border-bottom: 3px solid #d23641;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 28px;
    line-height: 1;
}

.brand-title {
    display: block;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.brand-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-user {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.topbar-link {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.topbar-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.topbar-logout {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #d23641;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topbar-logout:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

/* === DASHBOARD === */
.dashboard-section {
    padding: 28px 0 48px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5478 100%);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-text h2 {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.welcome-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.welcome-stats {
    display: flex;
    gap: 16px;
}

.welcome-stat {
    text-align: center;
    padding: 0 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-stat:first-child {
    border-left: none;
}

.ws-number {
    display: block;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.ws-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 20px 20px 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card-total::before { background: linear-gradient(90deg, #142c4a, #2a5478); }
.stat-card-participante::before,
.stat-card-hoteleros::before { background: linear-gradient(90deg, #2a78c5, #4a9ae0); }
.stat-card-empresas::before { background: linear-gradient(90deg, #d23641, #e85a65); }
.stat-card-hoy::before { background: linear-gradient(90deg, #2d9f4a, #4cbf6a); }

.stat-card-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card-body {
    margin-bottom: 8px;
}

.stat-card-value {
    display: block;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #142c4a;
    line-height: 1.2;
}

.stat-card-label {
    display: block;
    font-size: 12px;
    color: #888888;
    margin-top: 2px;
    font-weight: 500;
}

.stat-card-trend {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.stat-card-trend.up {
    background: #e8f5e9;
    color: #2d9f4a;
}

.stat-card-trend.neutral {
    background: #e8f0fe;
    color: #2a78c5;
}

.stat-card-bar {
    height: 4px;
    background: #e8eaed;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
    background: linear-gradient(90deg, #142c4a, #2a5478);
}

/* Filters Bar */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.filters-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    white-space: nowrap;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 8px 12px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    color: #333333;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    outline: none;
    background: #fafafa;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    border-color: #142c4a;
    box-shadow: 0 0 0 3px rgba(20, 44, 74, 0.08);
    background: #ffffff;
}

.filter-group input[type="text"] {
    min-width: 200px;
}

.btn-filter {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #142c4a;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-filter:hover {
    background: #1f3e64;
    transform: translateY(-1px);
}

.filters-right {
    display: flex;
    gap: 8px;
}

.btn-export {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #142c4a;
    background: transparent;
    border: 1.5px solid #142c4a;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-export:hover {
    background: #142c4a;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-refresh {
    font-size: 18px;
    line-height: 1;
    background: transparent;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-refresh:hover {
    border-color: #142c4a;
    transform: rotate(180deg);
}

/* Table */
.table-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e8eaed;
}

.table-header h3 {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #142c4a;
}

.table-count {
    font-size: 12px;
    color: #888888;
    font-weight: 500;
}

.table-scroll {
    overflow-x: auto;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 1000px;
}

table.admin-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

table.admin-table th {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background-color: #142c4a;
    padding: 11px 14px;
    text-align: left;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #1f3e64;
}

table.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    color: #444444;
    vertical-align: middle;
}

table.admin-table tbody tr {
    transition: background-color 0.15s ease;
}

table.admin-table tbody tr:hover td {
    background-color: #f5f7fa;
}

table.admin-table tbody tr:nth-child(even) td {
    background-color: #fafbfc;
}

table.admin-table tbody tr:nth-child(even):hover td {
    background-color: #f0f3f7;
}

table.admin-table .col-num {
    width: 40px;
    text-align: center;
    color: #999999;
    font-weight: 500;
}

table.admin-table .col-type {
    width: 90px;
}

table.admin-table .col-date {
    white-space: nowrap;
    width: 130px;
}

table.admin-table .col-region {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-link {
    color: #2a78c5;
    text-decoration: none;
    font-weight: 500;
}

.table-link:hover {
    text-decoration: underline;
    color: #1a5a9e;
}

.date-badge {
    display: inline-block;
    font-size: 11px;
    color: #666666;
    background: #f0f2f5;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 500;
}

/* --- Paginación --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 0 8px;
}

.page-btn {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #142c4a;
    background: #f0f2f5;
    border: 1px solid #e0e3e8;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 36px;
    text-align: center;
}

.page-btn:hover:not(:disabled) {
    background: #dde8ed;
    border-color: #142c4a;
}

.page-btn.active {
    background: #142c4a;
    color: #ffffff;
    border-color: #142c4a;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.page-dots {
    font-size: 14px;
    color: #888;
    padding: 0 4px;
}

code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    color: #555555;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.badge-participante,
.badge-hoteleros {
    background: #e8f0fe;
    color: #1a5a9e;
    border: 1px solid #c5d9f5;
}

.badge-empresas {
    background: #fde8e8;
    color: #b82e38;
    border: 1px solid #f5c5c5;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    color: #999999;
    font-size: 15px;
}

.table-empty td {
    border: none !important;
    padding: 0 !important;
}

/* Admin Footer */
.admin-footer {
    background: #142c4a;
    padding: 20px 0;
    text-align: center;
}

.admin-footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* === MODAL DETALLE INSCRIPCIÓN === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 2px solid #142c4a;
}

.modal-icon {
    font-size: 22px;
    margin-right: 10px;
}

.modal-title {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #142c4a;
}

.modal-close {
    font-size: 18px;
    color: #888888;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333333;
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

.modal-row:last-child {
    border-bottom: none;
}

.modal-label {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
    flex-shrink: 0;
    padding-top: 2px;
}

.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #e8eaed;
    background: #f8f9fb;
    border-radius: 0 0 12px 12px;
}

.reenviar-msg {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
    min-height: 18px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-reenviar {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #142c4a;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.btn-reenviar:hover:not(:disabled) {
    background: #1f3e64;
}

.btn-reenviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-modal-close {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    background: transparent;
    border: 1.5px solid #d0d5dd;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-modal-close:hover {
    border-color: #142c4a;
    color: #142c4a;
}

.btn-guardar {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #2d9f4a;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.btn-guardar:hover {
    background: #27893f;
}

/* Config fields */
.config-field {
    margin-bottom: 10px;
}
.config-field label {
    display: block;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.config-field input {
    width: 100%;
    padding: 9px 12px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    color: #333;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.config-field input:focus {
    border-color: #142c4a;
    box-shadow: 0 0 0 3px rgba(20,44,74,0.08);
}
.config-inline {
    display: flex;
    gap: 12px;
}

.btn-eliminar {
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #d23641;
    background: transparent;
    border: 1.5px solid #d23641;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-eliminar:hover {
    background: #d23641;
    color: #ffffff;
}

.modal-input {
    flex: 1;
    padding: 6px 10px;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    color: #333333;
    background: #f8f9fb;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.modal-input:focus {
    border-color: #142c4a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(20,44,74,0.08);
}

/* --- Footer --- */
.site-footer {
    background-color: #142c4a;
    padding: 28px 0;
    text-align: center;
}

.footer-content p {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-title {
        font-size: 22px;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .registration-form {
        padding: 28px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 14px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
        text-align: center;
    }

    .tab-btn {
        font-size: 13px;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .site-header {
        padding: 16px 0;
    }

    .site-logo {
        max-height: 38px;
    }

    .site-title {
        font-size: 18px;
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 12px 12px;
    }
    
    .tab-btn:first-child {
        border-radius: 6px 0 0 0;
    }
    
    .tab-btn:last-child {
        border-radius: 0 6px 0 0;
    }

    .hero-section {
        padding: 36px 0;
    }

    .hero-content .hero-fecha {
        font-size: 17px;
    }

    .hero-content .hero-lugar {
        font-size: 14px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .form-section {
        padding: 24px 0 40px;
    }

    .registration-form {
        padding: 20px 16px;
        border-radius: 6px;
    }

    .block-title {
        font-size: 18px;
    }

    .total-monto {
        font-size: 20px;
    }
}
