:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2c2c2c;
    --accent-color: #c8a97e;
    --accent-hover: #b8956a;
    --bg-color: #f5f0eb;
    --bg-dark: #ebe4dc;
    --text-color: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --border-color: #ddd;
    --success-color: #4caf50;
    --error-color: #e74c3c;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Lobster', cursive;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }

.logo {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

#main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#main-nav .nav-link {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    padding: 0.5rem 0.8rem;
    position: relative;
    transition: color 0.3s;
}

#main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

#main-nav .nav-link:hover,
#main-nav .nav-link.active {
    color: var(--accent-color);
}

#main-nav .nav-link.active::after,
#main-nav .nav-link:hover::after {
    width: 80%;
}

.separator {
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-btn {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.instagram-link {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.instagram-link:hover { color: var(--accent-color); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.98);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-nav ul li { margin: 1.5rem 0; }

.mobile-nav .mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 3px;
    transition: color 0.3s;
}

.mobile-nav .mobile-nav-link:hover { color: var(--accent-color); }

/* HERO */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--white);
    letter-spacing: 5px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0,0,0,0.4);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-arrow:hover { background: rgba(0,0,0,0.7); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* SECTIONS */
.section {
    padding: 6rem 2rem;
}

.section-inside {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
}

/* BOOKING SECTION */
.section-reservas {
    background: var(--bg-color);
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.calendar-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.cal-nav {
    background: none;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--text-color);
}

.cal-nav:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-light);
    padding: 0.5rem 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: default;
    transition: all 0.2s;
    border: none;
    background: none;
    font-family: var(--font-body);
}

.cal-day.empty { cursor: default; }

.cal-day.past {
    color: #ccc;
}

.cal-day.has-slots {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
}

.cal-day.has-slots:hover {
    background: var(--accent-color);
    color: var(--white);
}

.cal-day.selected {
    background: var(--accent-color);
    color: var(--white);
}

.cal-day.today {
    border: 2px solid var(--accent-color);
}

.cal-day.no-slots {
    color: #ccc;
}

/* SLOTS PANEL */
.slots-panel {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-height: 300px;
}

.slots-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 260px;
    color: var(--text-light);
    text-align: center;
}

.slots-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.slots-placeholder p {
    font-size: 0.95rem;
}

.slots-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.slots-period {
    margin-bottom: 1.5rem;
}

.slots-period-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-color);
}

.slots-barber-group {
    margin-bottom: 1rem;
}

.slots-barber-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.slots-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.slot-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.slot-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.slot-btn.booked {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.slot-btn.selected {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* BOOKING FORM */
.booking-form-wrapper {
    max-width: 500px;
    margin: 2rem auto 0;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.booking-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.booking-summary {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.booking-summary strong {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-confirm {
    flex: 1;
    padding: 0.7rem 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-confirm:hover { background: var(--accent-hover); }

.btn-cancel {
    flex: 1;
    padding: 0.7rem 1.5rem;
    background: none;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

/* BOOKING SUCCESS */
.booking-success {
    max-width: 500px;
    margin: 2rem auto 0;
    background: var(--white);
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.booking-success i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.booking-success h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.booking-success p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ABOUT SECTION */
.section-peluqueria {
    background: var(--white);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-item:nth-child(even) {
    direction: rtl;
}

.about-item:nth-child(even) > * {
    direction: ltr;
}

.about-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.about-item h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.about-item p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* REVIEWS */
.section-reviews {
    background: var(--bg-color);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-author {
    font-weight: 600;
    font-size: 1rem;
}

.review-stars {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

/* CONTACT */
.section-contacto {
    padding: 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.map-container {
    background: #e0e0e0;
    min-height: 400px;
}

.contact-content {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-content .section-title::after {
    margin: 0.5rem 0 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    width: 20px;
    text-align: center;
}

.contact-info-item div {
    flex: 1;
}

.contact-info-item .label {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.6;
}

.contact-info-item a:hover { color: var(--accent-color); }

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0.2rem 0;
}

/* FOOTER */
footer {
    background: var(--primary-color);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-top {
    color: var(--white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.btn-top:hover { color: var(--accent-color); }

.footer-credit {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.admin-link {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.admin-link:hover { color: var(--accent-color); }

/* TOAST */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--success-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toast.show { transform: translateX(0); }

.toast.error { background: var(--error-color); }

/* FADE IN */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    #main-nav { display: none; }
    .mobile-menu-btn { display: flex; }

    .booking-container {
        grid-template-columns: 1fr;
    }

    .about-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-item:nth-child(even) {
        direction: ltr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-content {
        padding: 3rem 2rem;
    }

    .contact-content .section-title {
        text-align: center;
    }

    .contact-content .section-title::after {
        margin: 0.5rem auto 0;
    }
}

@media (max-width: 768px) {
    .section { padding: 4rem 1.5rem; }

    .hero-content h2 { font-size: 3.5rem; }
    .hero-content p { font-size: 1rem; }

    .section-title { font-size: 2.2rem; }

    .calendar-wrapper { padding: 1rem; }
    .slots-panel { padding: 1rem; }

    .about-item img { height: 220px; }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content { padding: 0 1rem; }
    .hero-content h2 { font-size: 2.5rem; letter-spacing: 2px; }
    .hero-content p { font-size: 0.9rem; }
    .section-title { font-size: 1.8rem; }

    .slot-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}
