/* --- CSS Variables & Resets --- */
:root {
    --primary-color: #2b2b2b;
    --secondary-color: #F4EFEB; /* Based on the logo's background */
    --accent-color: #c9a982;
    --text-dark: #333333;
    --text-light: #fdfdfd;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #fdfbf9;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.divider {
    height: 2px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto 15px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-speed) ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    border-radius: 50%;
    transition: transform var(--transition-speed);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: color var(--transition-speed);
}

.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.navbar.scrolled .hamburger {
    color: var(--primary-color);
}

/* --- Floating WhatsApp --- */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-decoration: none;
}
.float-wa:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--primary-color);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)); /* Oscurece un poco para que el texto se lea */
    z-index: 1; /* Se ajusta para que quede por encima del fondo */
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    position: relative; /* Necesario para que el z-index funcione y el texto quede arriba */
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(201, 169, 130, 0.3);
}

.btn-primary:hover {
    background-color: #b5956a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 169, 130, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-out;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Services Menu --- */
.services-section {
    padding: 100px 0;
    background-color: #fff;
}

.menu-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

.menu-tabs {
    display: flex;
    overflow-x: auto;
    background: var(--primary-color);
    padding: 15px 20px;
    gap: 10px;
    scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar {
    display: none;
}
.menu-tab {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-speed);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
}
.menu-tab.active, .menu-tab:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.menu-content {
    padding: 40px;
}

.menu-category {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.menu-category.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.category-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}
.category-header .line {
    flex-grow: 1;
    height: 1px;
    background: #eee;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transform: translateY(-2px);
}

.service-card.best-seller::before {
    content: '★ Destacado';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 30px;
    transform: rotate(45deg);
    font-weight: bold;
    letter-spacing: 1px;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    padding-right: 20px;
}

.service-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.service-duration {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-cash {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}
.price-cash span {
    font-size: 0.7rem;
    font-weight: 400;
    color: #888;
    text-transform: uppercase;
}
.price-list {
    font-size: 0.85rem;
    color: #888;
}
.price-list span {
    font-size: 0.7rem;
}

/* --- Appointment Form --- */
.appointment-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
    position: relative;
}

.appointment-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.appointment-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.appointment-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.input-group input {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn i {
    font-size: 1.2rem;
}

.app-turnos-msg {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

/* --- Location --- */
.location-section {
    padding: 80px 0 0 0;
    background: #fff;
}

.map-container iframe {
    display: block;
    filter: grayscale(20%) contrast(1.1);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
    border-radius: 50%;
}

.footer-logo p {
    color: #ccc;
}

.footer-links h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.footer-links p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .service-grid { grid-template-columns: 1fr; }
    .menu-content { padding: 20px; }
    .appointment-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        color: var(--primary-color);
        display: block;
        padding: 10px 20px;
        text-align: center;
    }
    .hamburger {
        display: block;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 100px 0;
    background-color: #fdfbf9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Admin Button --- */
.admin-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #666;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        height: 250px;
    }
}
