/* ===================================
   GLOBAL STYLES & RESET
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #C5A572;
    --gold-dark: #A68B5B;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray: #E0E0E0;
    --gray-dark: #666666;
    --black: #333333;
    --ink: #1f1f1f;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-full {
    width: 100%;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 16px;
    color: var(--black);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--gray-dark);
    margin-bottom: 50px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    transition: color 0.3s ease;
}

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

.nav-cta {
    background-color: var(--gold);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 4px;
}

.nav-cta:hover {
    background-color: var(--gold-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    background-image: url('../images/PeluqueriaInicio.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 32px;
    justify-items: stretch;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--gray);
    grid-column: span 2;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-hover);
    border-color: var(--gold);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--gold);
}

.service-card p {
    font-size: 16px;
    color: var(--gray-dark);
    line-height: 1.6;
}

.service-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery {
    padding: 100px 0;
    background-color: var(--gray-light);
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--gold);
    background-color: transparent;
    color: var(--gold);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--gold);
    color: var(--white);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background-color: var(--gray);
    cursor: pointer;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    font-size: 18px;
    font-weight: 500;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-dark);
    font-size: 18px;
    padding: 40px 0;
}

/* Gallery Pagination */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 20px;
    border: 2px solid var(--gold);
    background-color: transparent;
    color: var(--gold);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-numbers button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gold);
    background-color: transparent;
    color: var(--gold);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-numbers button:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-numbers button.active {
    background-color: var(--gold);
    color: var(--white);
}

/* ===================================
   BOOKING SECTION
   =================================== */
.booking {
    padding: 100px 0;
    background-color: var(--white);
}

.booking-container {
    max-width: 600px;
    margin: 0 auto;
}

.booking-form {
    background-color: var(--gray-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray);
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

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

.form-group input:disabled,
.form-group select:disabled {
    background-color: var(--gray);
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--gray-dark);
}

.service-detail {
    border: 2px solid rgba(197, 165, 114, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    background: #fff;
    --service-accent: var(--gold);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-detail[data-color] {
    border-color: var(--service-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.service-detail__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.service-detail__header h4 {
    margin-bottom: 4px;
}

.service-detail__header p {
    color: var(--gray-dark);
    font-size: 14px;
}

.service-detail__timing {
    min-width: 150px;
    text-align: right;
    font-size: 14px;
    color: var(--gray-dark);
}

.service-detail__timing span {
    display: block;
}

.service-detail__phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.service-phase {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 12px;
    background: rgba(197, 165, 114, 0.08);
}

.service-phase span {
    display: block;
    font-size: 13px;
    color: var(--gray-dark);
}

.service-phase strong {
    display: block;
    margin-top: 6px;
    color: var(--black);
}

.service-phase-gap {
    background: rgba(0, 0, 0, 0.05);
}

.service-detail__placeholder {
    margin: 0;
    color: var(--gray-dark);
}

.booking-message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 4px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.booking-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.booking-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================
   NOTICE DIALOG
   =================================== */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
    padding: 20px;
}

.dialog-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.dialog-panel {
    background: var(--white);
    border-radius: 18px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dialog-panel p {
    font-size: 18px;
    color: var(--black);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--gold);
}

.contact-item {
    margin-bottom: 24px;
}

.contact-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--black);
}

.contact-item p {
    font-size: 16px;
    color: var(--gray-dark);
    margin: 4px 0;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-icon {
    padding: 12px 20px;
    background-color: var(--gold);
    color: var(--white);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
}

.contact-map iframe {
    border-radius: 8px;
    width: 100%;
}

.contact-item .contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.contact-item.contact-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item a {
    color: var(--ink);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--gold-dark);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--white);
    font-size: 14px;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--gray-dark);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .service-card {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        padding: 20px;
        box-shadow: 0 4px 16px var(--shadow);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-column: auto !important;
    }
    
    .booking-form {
        padding: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ===================================
   SMOOTH SCROLLING
   =================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ===================================
   LOADING ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.gallery-item {
    animation: fadeIn 0.6s ease forwards;
}
