:root {
    --pink: #ff7eb3;
    --purple: #8e44ad;
    --gradient: linear-gradient(135deg, #ff7eb3 0%, #8e44ad 100%);
    --dark: #2d3436;
    --white: #ffffff;
    --soft-bg: #fdfafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--soft-bg);
    scroll-behavior: smooth;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--gradient);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(142, 68, 173, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li { margin-left: 25px; }
.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 400;
    transition: 0.3s;
}
.nav-links a:hover { color: var(--pink); }

.hero {
    height: 80vh;
    background: linear-gradient(135deg, rgba(255, 126, 179, 0.7) 0%, rgba(142, 68, 173, 0.7) 100%), url("img porta.avif");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.btn-primary {
    margin-top: 2rem;
    padding: 12px 30px;
    background: var(--white);
    color: var(--purple);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Estado de carga para el botón */
.btn-primary.loading {
    color: transparent !important;
    position: relative;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(142, 68, 173, 0.2);
    border-radius: 50%;
    border-top-color: var(--purple);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.services { padding: 100px 10%; text-align: center; }
.services h2 { margin-bottom: 60px; font-size: 2.5rem; letter-spacing: 1px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.service-card:hover { transform: translateY(-10px); }
.service-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Galería */
.gallery {
    padding: 100px 10%;
    text-align: center;
    background-color: var(--white);
}

.gallery h2 { margin-bottom: 60px; font-size: 2.5rem; letter-spacing: 1px; }

.filter-buttons {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--pink);
    background: transparent;
    color: var(--pink);
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}

.gallery-item.hide {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #eee;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.3); transform: translateY(-5px); }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; cursor: pointer; }
.gallery-item:hover img { transform: scale(1.1); }

/* Sección de Contacto */
.contact-section {
    padding: 100px 10%;
    text-align: center;
    background-color: var(--soft-bg);
}

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select,
.form-group input[type="date"],
.form-group input[type="time"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group-row {
    display: flex;
    gap: 15px;
}

.form-group-row .form-group {
    flex: 1;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--pink);
    outline: none;
}

/* Sección FAQ */
.faq-section {
    padding: 100px 10%;
    background-color: var(--white);
    text-align: center;
}

.faq-container {
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s;
}

.faq-question:hover { color: var(--pink); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #666;
}

.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--purple); }
.faq-icon { transition: 0.3s; font-size: 1.5rem; }

/* Animaciones de Entrada (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Estilos para el Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.lightbox-description {
    color: var(--white);
    margin-top: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 3px solid var(--white);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    color: var(--white);
    padding: 40px 10%;
    text-align: center;
}
.socials { margin: 1.5rem 0; cursor: pointer; }
.copy { font-size: 0.8rem; opacity: 0.6; }

/* Responsive */
@media (max-width: 768px) {
    .hero-h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Simplificación para móvil */
    .navbar { padding: 1rem 5%; }
    .services, .gallery, .contact-section, .faq-section, footer { padding: 60px 5%; }
    .contact-form { padding: 30px; }
}