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

:root {
    --primary: #86f22d;
    --primary-dark: #6fd020;
    --dark: #1d3557;
    --medium: #457b9d;
    --light: #a8dadc;
    --bg: #f1faee;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #f59e0b;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

/* Navbar */
.navbar {
    background: var(--dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 30px !important;
    width: auto !important;
    max-width: 130px !important;
    max-height: 30px !important;
    object-fit: contain;
    display: block;
}

.navbar-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: var(--white);
}

.navbar-welcome {
    color: var(--light);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--gray-light);
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--gray-light);
}

.btn-primary {
    background: var(--primary);
    color: #1a2e05;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #1a2e05;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
    font-weight: 600;
}

.btn-white:hover {
    background: var(--bg);
    border-color: var(--bg);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--white);
}

.inline {
    display: inline;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--medium) 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.hero-bg {
    position: relative;
    background: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1600&q=80') center center / cover no-repeat;
    padding: 7rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 53, 87, 0.75);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--light);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--dark);
    font-weight: 700;
}

/* Two cols - Problema / Solucion */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.col-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.col-text p {
    color: var(--gray);
    margin-bottom: 0.8rem;
    font-size: 1.02rem;
}

.label-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    background: #fee2e2;
    color: #991b1b;
}

.label-tag.label-success {
    background: #d1fae5;
    color: #065f46;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--dark);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Pricing */
.pricing-center {
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.12);
}

.pricing-label {
    display: inline-block;
    background: var(--primary);
    color: #1a2e05;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.pricing-desc {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.95rem;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* CTA */
.section-cta {
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
    position: relative;
}

.section-cta-bg {
    background: url('https://images.unsplash.com/photo-1550966871-3ed3cdb51f3a?w=1600&q=80') center center / cover no-repeat;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.section-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

/* Search bar */
.search-bar {
    margin-bottom: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--medium);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.15);
}

/* Restaurant grid */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card-image {
    height: 140px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-bottom: 1px solid var(--gray-light);
}

.card-image img {
    max-width: 70%;
    max-height: 100px;
    object-fit: contain;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Restaurant public page */
.public-restaurant {
    margin-top: 1.5rem;
}

.public-restaurant-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.public-restaurant-logo {
    width: 120px;
    height: 120px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    flex-shrink: 0;
}

.public-restaurant-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.public-restaurant-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.public-restaurant-details {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.public-restaurant-details a {
    color: var(--primary);
    text-decoration: none;
}

.public-restaurant-details a:hover {
    text-decoration: underline;
}

.public-restaurant-desc {
    background: var(--white);
    padding: 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.public-restaurant-booking {
    margin-top: 1rem;
}

.public-restaurant-booking h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.step {
    padding: 1.5rem;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #1a2e05;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.step p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--medium);
    box-shadow: 0 0 0 3px rgba(69, 123, 157, 0.15);
}

.form-group select {
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

.form-footer {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400 !important;
    cursor: pointer;
}

/* Guest layout */
.guest-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600&q=80') center center / cover no-repeat;
    padding: 1rem;
    position: relative;
}

.guest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

.guest-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.guest-brand {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.guest-logo {
    height: 28px !important;
    width: auto !important;
    max-width: 120px !important;
    max-height: 28px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.guest-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table th, .table td {
    padding: 0.8rem 1rem;
    text-align: left;
}

.table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:nth-child(even) {
    background: var(--bg);
}

.table tr:hover {
    background: var(--gray-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-completed {
    background: #dbeafe;
    color: #1e40af;
}

.badge-seated {
    background: #16a34a;
    color: #fff;
}

.badge-no_show {
    background: var(--gray-light);
    color: var(--gray);
}

/* Detail grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-item strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

/* Alerts */
.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.95rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--gray); }

/* Footer */
.footer {
    background: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Admin */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-actions {
    margin-top: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-card h1 {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Contact */
.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 550px;
    margin: -1.5rem auto 2rem;
}

.contact-form-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero { padding: 3.5rem 0; }
    .navbar-content { flex-direction: column; gap: 0.8rem; }
    .two-cols { grid-template-columns: 1fr; gap: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .restaurant-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .pricing-card { padding: 2rem; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
