@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800;900&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --navy: #0f1a24;
    --navy-soft: #1a2d40;
    --gold: #d4af37;
    --gold-dark: #b9921f;
    --paper: #f8f8f6;
    --white: #fff;
    --text: #212121;
    --muted: #6f7479;
    --green: #16a34a;
    --red: #dc2626;
    --shadow: 0 10px 34px rgba(15, 26, 36, .1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; background: var(--paper); color: var(--text); font-family: 'Open Sans', sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }

.navbar {
    position: sticky; top: 0; z-index: 100;
    height: 66px; padding: 0 32px;
    background: var(--navy); box-shadow: 0 2px 20px rgba(0, 0, 0, .35);
    display: flex; align-items: center; gap: 24px;
}
.nav-brand {
    color: var(--gold); text-decoration: none; white-space: nowrap;
    font-family: Montserrat, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: 2px;
}
.brand-mark {
    width: 30px; height: 30px; margin-right: 5px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold), #f0d070); color: var(--navy);
}
.nav-links { display: flex; justify-content: center; gap: 4px; flex: 1; }
.nav-links a {
    padding: 8px 12px; border-radius: 8px; color: rgba(255, 255, 255, .65);
    font-size: 12px; font-weight: 700; letter-spacing: .35px; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { background: rgba(212, 175, 55, .15); color: var(--gold); }
.nav-avatar {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex; align-items: center; justify-content: center;
    color: var(--navy); font-weight: 800; text-decoration: none;
}
.nav-toggle { display: none; }

.hero {
    position: relative; min-height: 480px; overflow: hidden;
    background: url('https://images.unsplash.com/photo-1439130490301-25e322d88054?auto=format&fit=crop&w=1920&q=85') center/cover;
    display: flex; align-items: center; justify-content: center;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(15, 26, 36, .25), rgba(15, 26, 36, .82)); }
.hero-content { position: relative; z-index: 1; padding: 40px 20px; text-align: center; color: white; }
.hero-badge, .eyebrow {
    display: inline-block; color: var(--gold); font-size: 11px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
}
.hero-badge { margin-bottom: 16px; padding: 7px 16px; border: 1px solid rgba(212, 175, 55, .55); border-radius: 30px; background: rgba(212, 175, 55, .16); }
.hero h1 { margin-bottom: 12px; font-family: Montserrat, sans-serif; font-size: clamp(42px, 7vw, 76px); font-weight: 900; line-height: 1.02; }
.hero p { color: rgba(255, 255, 255, .78); }

.search-bar {
    position: relative; z-index: 10; max-width: 940px; margin: -38px auto 0;
    display: grid; grid-template-columns: 1fr 1fr 1fr auto;
    overflow: hidden; border-radius: 16px; background: white; box-shadow: 0 16px 48px rgba(15, 26, 36, .18);
}
.search-field { padding: 20px; border-right: 1px solid #eee; }
.search-field label, .field label {
    display: block; margin-bottom: 6px; color: var(--gold-dark);
    font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.search-field input, .search-field select { width: 100%; border: 0; outline: 0; background: transparent; }
.search-button, .button {
    border: 0; border-radius: 11px; cursor: pointer; text-decoration: none; text-align: center;
    font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
}
.search-button { padding: 0 28px; border-radius: 0; background: var(--navy); color: var(--gold); }
.button { display: inline-block; padding: 14px 24px; background: var(--navy); color: var(--gold); }
.button:hover, .search-button:hover { background: var(--navy-soft); }
.button-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); box-shadow: 0 6px 20px rgba(212, 175, 55, .3); }
.button-danger { border: 1px solid rgba(220, 38, 38, .4); background: transparent; color: var(--red); box-shadow: none; }
.button-block { width: 100%; }

.main, .form-layout, .profile-grid, .admin-main { max-width: 1100px; margin: 54px auto; padding: 0 24px; }
.section-heading { margin: 7px 0 28px; color: var(--navy); font-family: Montserrat, sans-serif; font-size: 28px; font-weight: 800; }
.page-header {
    padding: 48px max(32px, calc((100vw - 1100px) / 2));
    border-bottom: 3px solid var(--gold); background: linear-gradient(135deg, var(--navy) 55%, var(--navy-soft)); color: white;
}
.page-header .eyebrow { margin-bottom: 10px; }
.page-header h1 { margin-bottom: 5px; font-family: Montserrat, sans-serif; font-size: clamp(30px, 5vw, 40px); font-weight: 900; }
.page-header p { color: rgba(255, 255, 255, .55); font-size: 13px; }

.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.room-card, .card, .trip-card, .metric-card {
    overflow: hidden; border-radius: 18px; background: white; box-shadow: var(--shadow);
}
.room-card { transition: transform .2s, box-shadow .2s; }
.room-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(15, 26, 36, .16); }
.room-card img { width: 100%; height: 205px; display: block; object-fit: cover; }
.room-body { padding: 21px; }
.room-name { margin: 5px 0 8px; color: var(--navy); font-family: Montserrat, sans-serif; font-size: 18px; font-weight: 800; }
.room-description { min-height: 42px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.room-footer { margin-top: 18px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.price { color: var(--navy); font-family: Montserrat, sans-serif; font-size: 21px; font-weight: 900; }
.price small { color: #999; font-family: 'Open Sans', sans-serif; font-size: 10px; font-weight: 400; }
.status { display: inline-block; padding: 5px 10px; border-radius: 30px; background: rgba(34, 197, 94, .1); color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status-cancelada { background: rgba(220, 38, 38, .1); color: var(--red); }
.room-card .button { margin: 0 21px 21px; display: block; }

.transport-banner {
    position: relative; overflow: hidden; padding: 38px 40px; border-radius: 22px;
    background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.transport-banner::after { content: 'MB'; position: absolute; right: 210px; color: rgba(255, 255, 255, .04); font-family: Montserrat; font-size: 90px; font-weight: 900; }
.transport-banner h3 { margin: 6px 0; font-family: Montserrat, sans-serif; font-size: 26px; }
.transport-banner p { color: rgba(255, 255, 255, .58); font-size: 13px; }
.transport-stats { margin-top: 18px; display: flex; gap: 26px; }
.transport-stat strong { display: block; color: var(--gold); font-family: Montserrat; font-size: 22px; }
.transport-stat span { color: rgba(255, 255, 255, .45); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }

.form-layout { max-width: 980px; display: grid; grid-template-columns: 1fr 350px; gap: 30px; align-items: start; }
.card { padding: 34px; }
.card-title { margin-bottom: 26px; padding-bottom: 15px; border-bottom: 2px solid var(--paper); color: var(--navy); font-family: Montserrat; font-size: 17px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 19px; }
.field input, .field select {
    width: 100%; padding: 12px 14px; border: 1.5px solid #e1e1e1; border-radius: 10px; background: white; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .12); }
.field .hint { margin-top: 4px; color: #999; font-size: 10px; }
.room-options, .van-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.room-option { position: relative; }
.room-option input { position: absolute; opacity: 0; pointer-events: none; }
.room-option label, .van-card {
    display: block; padding: 15px 10px; border: 2px solid #e5e5e5; border-radius: 13px; text-align: center; cursor: pointer;
}
.room-option input:checked + label { border-color: var(--gold); background: rgba(212, 175, 55, .07); }
.option-title, .van-name { color: var(--navy); font-family: Montserrat; font-size: 12px; font-weight: 800; }
.option-meta, .van-meta { margin-top: 4px; color: #999; font-size: 10px; }
.rule-box { margin: 5px 0 23px; padding: 15px; border: 1px solid rgba(212, 175, 55, .35); border-radius: 12px; background: rgba(212, 175, 55, .08); font-size: 11px; line-height: 1.65; }
.summary { position: sticky; top: 90px; padding: 28px; border-radius: 20px; background: var(--navy); color: white; box-shadow: 0 8px 30px rgba(15, 26, 36, .24); }
.summary h3 { margin-bottom: 18px; color: var(--gold); font-family: Montserrat; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.summary-row { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 18px; font-size: 12px; }
.summary-row span:first-child { color: rgba(255, 255, 255, .52); }
.summary-row strong { text-align: right; }
.summary-total strong { color: var(--gold); font-family: Montserrat; font-size: 19px; }
.van-bar { height: 6px; margin-top: 9px; overflow: hidden; border-radius: 6px; background: #eee; }
.van-fill { height: 100%; border-radius: 6px; background: var(--green); }
.van-card.full { border-color: var(--red); background: rgba(220, 38, 38, .04); }
.van-card.selected { border-color: var(--gold); background: rgba(212, 175, 55, .07); }

.alert { max-width: 1100px; margin: 20px auto; padding: 13px 16px; border-radius: 11px; font-size: 12px; }
.alert-success { border: 1px solid rgba(22, 163, 74, .35); background: rgba(22, 163, 74, .1); color: #166534; }
.alert-error { border: 1px solid rgba(220, 38, 38, .3); background: rgba(220, 38, 38, .09); color: #991b1b; }

.tabs { margin-bottom: 28px; display: flex; gap: 8px; }
.tab { padding: 10px 18px; border: 2px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; color: var(--navy); font-family: Montserrat; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.tab.active { border-color: var(--navy); background: var(--navy); color: var(--gold); }
.trip-card { margin-bottom: 16px; padding: 23px 26px; display: flex; align-items: center; gap: 18px; }
.trip-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: Montserrat; font-weight: 900; }
.trip-info { flex: 1; }
.trip-id { color: var(--gold-dark); font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.trip-title { margin: 4px 0; color: var(--navy); font-family: Montserrat; font-size: 16px; font-weight: 800; }
.trip-meta { color: #888; font-size: 11px; }
.trip-side { text-align: right; }
.trip-side .price { margin-top: 7px; font-size: 16px; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty h3 { margin-bottom: 8px; color: var(--navy); font-family: Montserrat; }

.profile-header { padding: 48px max(32px, calc((100vw - 900px) / 2)); border-bottom: 3px solid var(--gold); background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: white; display: flex; align-items: center; gap: 25px; }
.avatar-large { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--navy); display: flex; align-items: center; justify-content: center; font-family: Montserrat; font-size: 32px; font-weight: 900; }
.profile-header h1 { font-family: Montserrat; font-size: 28px; }
.profile-header p { color: rgba(255, 255, 255, .55); font-size: 12px; }
.member-badge { display: inline-block; margin-top: 9px; padding: 5px 12px; border: 1px solid rgba(212, 175, 55, .4); border-radius: 30px; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.profile-grid { max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.stats-grid, .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-box { padding: 18px 8px; border-radius: 12px; background: var(--paper); text-align: center; }
.stat-box strong { display: block; color: var(--navy); font-family: Montserrat; font-size: 25px; font-weight: 900; }
.stat-box span { color: #888; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }

.admin-main { max-width: 1250px; }
.metrics { margin-bottom: 30px; }
.metric-card { padding: 22px; }
.metric-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.metric-card strong { display: block; margin-top: 5px; color: var(--navy); font-family: Montserrat; font-size: 30px; }
.table-card { margin-bottom: 28px; padding: 25px; border-radius: 18px; background: white; box-shadow: var(--shadow); overflow-x: auto; }
.table-card h2 { margin-bottom: 18px; color: var(--navy); font-family: Montserrat; font-size: 17px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 10px; background: var(--navy); color: var(--gold); text-align: left; text-transform: uppercase; letter-spacing: .7px; }
td { padding: 11px 10px; border-bottom: 1px solid #eee; white-space: nowrap; }

.login-page { min-height: 100vh; padding: 28px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.login-bg { position: fixed; inset: 0; background: linear-gradient(rgba(15, 26, 36, .72), rgba(15, 26, 36, .86)), url('https://images.unsplash.com/photo-1510414842594-a61c69b5ae57?auto=format&fit=crop&w=1920&q=85') center/cover; }
.login-card { position: relative; z-index: 1; width: min(420px, 100%); padding: 42px 38px; border: 1px solid rgba(212, 175, 55, .35); border-radius: 20px; background: rgba(15, 26, 36, .86); backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.login-logo { text-align: center; }
.login-logo .brand-mark { width: 62px; height: 62px; margin: 0 0 12px; font-size: 26px; }
.login-logo h1 { color: var(--gold); font-family: Montserrat; font-size: 21px; letter-spacing: 3px; text-transform: uppercase; }
.login-logo p { margin: 4px 0 26px; color: rgba(255, 255, 255, .4); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; }
.login-card .field input, .login-card .field select { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: white; }
.login-card .field select option { background: var(--navy); color: white; }
.login-card .alert { margin: 0 0 16px; }
.auth-switch { margin-top: 20px; color: rgba(255, 255, 255, .55); font-size: 11px; text-align: center; }
.auth-switch a { color: var(--gold); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.register-page { overflow-y: auto; }
.register-card { width: min(720px, 100%); margin: 28px auto; }
.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.terms-check { margin: 2px 0 20px; display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .6); cursor: pointer; font-size: 11px; line-height: 1.5; }
.terms-check input { margin-top: 2px; accent-color: var(--gold); }
.setup-notice { margin-bottom: 18px; padding: 11px 13px; border: 1px solid rgba(212, 175, 55, .35); border-radius: 10px; background: rgba(212, 175, 55, .1); color: #f2d878; font-size: 11px; line-height: 1.55; }
.profile-stack { display: grid; gap: 20px; }
.cancel-form { margin-top: 8px; }
.button-link-danger { border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: 10px; font-weight: 700; text-decoration: underline; }
.inline-form { display: flex; align-items: center; gap: 7px; }
.inline-form select { min-width: 125px; padding: 7px 8px; border: 1px solid #ddd; border-radius: 7px; background: white; font-size: 11px; }
.button-small { padding: 8px 10px; border: 0; border-radius: 7px; background: var(--navy); color: var(--gold); cursor: pointer; font-size: 9px; font-weight: 800; text-transform: uppercase; }

@media (max-width: 860px) {
    .navbar { padding: 0 18px; }
    .nav-toggle { margin-left: auto; display: block; border: 1px solid rgba(212, 175, 55, .35); border-radius: 8px; background: transparent; color: var(--gold); padding: 7px 10px; }
    .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 12px; background: var(--navy); flex-direction: column; }
    .nav-links.open { display: flex; }
    .search-bar { margin: 0; border-radius: 0; grid-template-columns: 1fr 1fr; }
    .search-button { min-height: 54px; }
    .rooms-grid { grid-template-columns: 1fr; }
    .form-layout, .profile-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
    .metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .hero { min-height: 390px; }
    .search-bar, .form-row { grid-template-columns: 1fr; }
    .room-options, .van-grid, .stats-grid { grid-template-columns: 1fr; }
    .transport-banner, .trip-card { align-items: stretch; flex-direction: column; }
    .trip-side { text-align: left; }
    .card { padding: 24px 20px; }
    .metrics { grid-template-columns: 1fr; }
    .register-grid { grid-template-columns: 1fr; }
}
