/* --- RESET Y VARIABLES GLOBALES --- */
:root {
    --primary-color: #d1a3a3;
    --secondary-color: #f4f4f4;
    --dark-color: #333;
    --light-color: #fff;
    --font-family: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

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

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #777;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* --- HEADER Y NAVEGACIÓN --- */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #b98a8a;
    border-bottom: none;
}

/* --- SECCIÓN HERO --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://via.placeholder.com/1500x800.png?text=Salón+de+Belleza') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

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

.service-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-list {
    margin-top: 40px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
}

.service-item:last-child {
    border-bottom: none;
}

.service-info h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
}

.service-category {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

.service-details {
    text-align: right;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- SISTEMA DE AGENDAMIENTO --- */
.booking-step {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.booking-step h2 {
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#booking-form select, 
#booking-form input[type="date"], 
#booking-form input[type="text"], 
#booking-form input[type="email"] {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

#time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.time-slot {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background: var(--primary-color);
    color: white;
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.booking-success {
    background: #e9f7ef;
    border-left: 5px solid #28a745;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

.booking-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

/* --- TESTIMONIO --- */
.testimonial {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial h4 {
    color: var(--primary-color);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 20px 0;
}

/* --- PÁGINAS ADICIONALES --- */
.page-main-title {
    font-size: 2.8rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 1rem;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.bg-light {
    background-color: var(--secondary-color);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        background-color: var(--light-color);
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-details {
        text-align: center;
    }
}