:root {
    --primary: #C5A55A;
    --primary-dark: #b89950;
    --primary-light: #d4b96e;
    --dark: #1a1a1a;
    --dark-light: #2d2d2d;
    --white: #FFFFFF;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--dark);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    height: 50px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 120px 20px 80px;
    position: relative;
}

.hero.hero-with-image {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 60px 40px;
    border-radius: var(--radius);
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.hero h1 span {
    color: var(--white);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1da851;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
}

.section-title .accent {
    color: var(--primary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card .image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-light);
}

.service-card .content {
    padding: 25px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.service-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

.service-card .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.service-card .duration {
    color: var(--gray);
    font-size: 0.9rem;
}

/* About Section */
.about {
    background: var(--gray-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text h2 span {
    color: var(--primary);
}

.about-text p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Why Us */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-us-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.why-us-item .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.why-us-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.why-us-item p {
    color: var(--gray);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta h2 span {
    color: var(--primary);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer p, .footer a {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

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

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.flash {
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: var(--success);
    color: var(--white);
}

.flash-error {
    background: var(--danger);
    color: var(--white);
}

.flash-warning {
    background: var(--warning);
    color: var(--dark);
}

.flash-info {
    background: var(--info);
    color: var(--white);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    padding: 150px 20px 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    padding: 30px;
    background: var(--gray-light);
    border-radius: var(--radius);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray);
}

/* Hours Table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.hours-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.hours-table td:first-child {
    font-weight: 600;
}

/* Map */
.map-container {
    margin-top: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Reserva Form */
.reserva-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.horario-btn {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.horario-btn:hover {
    border-color: var(--primary);
}

.horario-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.horario-btn:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* Admin Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.admin-sidebar .logo img {
    height: 40px;
}

.admin-sidebar .logo h3 {
    font-size: 1rem;
    margin-top: 10px;
    color: var(--primary);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}

.admin-nav a .icon {
    font-size: 1.2rem;
}

.admin-content {
    flex: 1;
    margin-left: 260px;
    background: var(--gray-light);
    min-height: 100vh;
}

.admin-header {
    background: var(--white);
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.5rem;
}

.admin-body {
    padding: 30px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dash-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.dash-card h3 {
    color: var(--gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.dash-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.dash-card .icon {
    font-size: 2rem;
    color: var(--primary);
}

/* Tables */
.data-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: var(--gray-light);
    font-weight: 600;
    color: var(--dark);
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-pendiente {
    background: var(--warning);
    color: var(--dark);
}

.badge-confirmada {
    background: var(--info);
    color: var(--white);
}

.badge-completada {
    background: var(--success);
    color: var(--white);
}

.badge-cancelada {
    background: var(--danger);
    color: var(--white);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.login-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form .logo {
    margin-bottom: 30px;
}

.login-form h2 {
    margin-bottom: 30px;
    color: var(--dark);
}

.login-form .error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.login-form .btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-content {
        margin-left: 0;
    }
}
