/* ==========================================================================
   1. CONFIGURACIÓN GLOBAL Y FUENTES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Raleway:wght@300;400;500;600&display=swap');

html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Raleway', Arial, sans-serif;
    background: #000000;
    color: #fff;
    margin: 0;
    padding-top: 80px; /* Evita que el header tape el contenido */
}
/* ==========================================================================
   2. HEADER Y NAVEGACIÓN
   ========================================================================== */
.main-header {
    background: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    position: fixed;
    left: 0; top: 0; width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

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

#main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

#main-nav a {
    text-decoration: none;
    color: #f3e6ef;
    font-weight: 600;
    transition: color 0.3s;
}

#main-nav a:hover {
    color: #e09ca6;
}

/* Botones especiales en el nav */
.btn-ingresar {
    background: #e09ca6;
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Menú Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #e09ca6;
    border-radius: 2px;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero img {
    position: absolute;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    background: rgba(224, 156, 166, 0.18);
    border-radius: 1rem;
}

/* ==========================================================================
   4. SERVICIOS Y GALERÍA
   ========================================================================== */
.servicios {
    background: #232323;
    color: #f3e6ef;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.servicios h2 {
    color: #e09ca6;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.servicios h3 {
    margin: 0.5rem 0 0.7rem 0;
    color: #e09ca6;
    font-size: 1.2rem;
    font-weight: 700;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-card {
    background: #181818;
    color: #f3e6ef;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(224,156,166,0.10);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.servicio-card:hover {
    transform: translateY(-10px);
    border-color: #e09ca6;
}

.servicio-card img {
    width: 100%;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    max-width: 300px;
    height: auto;
    aspect-ratio: 350 / 400;
    object-fit: cover;
    display: block;
}

/* Galería de trabajos */
.trabajos-gallery-container {
    padding: 3rem 1rem;
    text-align: center;
    background: #232323;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.trabajos-gallery-container h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #e09ca6;
    font-weight: 700;
}

.trabajos-grid {
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  max-width: 9000px;
  margin: 0 auto;
}

.trabajo-item {
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(224,156,166,0.18);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.trabajo-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(224,156,166,0.18);
}

.trabajo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   5. FORMULARIO DE RESERVA (ESTILO ROSA)
   ========================================================================== */
.agenda {
    background: #000;
    padding: 5rem 1rem;
    display: flex;
    justify-content: center;
}

.form-agenda {
    background: #1d1d1d;
    padding: 2.5rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(224, 156, 166, 0.3);
}

.form-agenda label {
    display: block;
    margin-top: 1rem;
    color: #e09ca6;
    font-weight: bold;
}

.form-agenda input {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 0.5rem;
    border: 1px solid #444;
    background: #fff; /* Fondo blanco para facilitar lectura */
    color: #000;
    box-sizing: border-box;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-enviar {
    flex: 2;
    background: #e09ca6;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.btn-cerrar {
    flex: 1;
    background: transparent;
    color: #999;
    border: 1px solid #444;
    border-radius: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   6. CONTACTO Y MODALES
   ========================================================================== */
.contacto {
    text-align: center;
    padding: 4rem 1rem;
    background: #111;
}

.icono-red {
    width: 30px;
    vertical-align: middle;
    margin-right: 10px;
}

/* Estilos para Modales */
.modal-login {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content-login {
    position: relative;
    background: #232323;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(224,156,166,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s;
    min-width: 280px;
}

.modal-content-login input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e09ca6;
    background: #000;
    color: #fff;
}

.modal-content-login button {
  background: #e09ca6;
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 15px;
}

.modal-content-login h2 {
  color: #e09ca6;
  margin-bottom: 1.5rem;
}

.close-login {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 2rem;
    color: #e09ca6;
    cursor: pointer;
}

/* ==========================================================================
   7. FOOTER Y UTILIDADES
   ========================================================================== */
footer {
    padding: 2rem;
    text-align: center;
    background: #000;
    border-top: 1px solid #1d1d1d;
    color: #777;
}

.oculto { display: none !important; }

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (min-width: 1025px) {

    .servicio-card:nth-child(5) {
        grid-column: 2;
    }
    .servicio-card:nth-child(6) {
        grid-column: 3;
    }
}

@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Quitamos el centrado especial en tablets */
    .servicio-card:nth-child(5),
    .servicio-card:nth-child(6) {
        grid-column: auto;
    }
}

@media (max-width: 900px) {
    .main-header {
        padding: 0.7rem 1rem;
    }
    .hero {
        height: 220px;
    }
    .hero-text {
        padding: 1rem 1.5rem;
    }
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    .agenda, .contacto {
        max-width: 95vw;
        padding: 1.2rem 0.5rem;
    }
}

@media (max-width: 750px) {
    /* 1. Header fijo y ordenado */
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px; 
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.5rem;
        background: #000;
        z-index: 1100; /* Aseguramos que esté sobre el nav */
    }

    /* Ajuste del logo para que no sea muy grande */
    .logo-img {
        height: 45px !important; 
        width: auto;
    }

    /* ACTIVAR EL BOTÓN DE HAMBURGUESA */
    .menu-toggle {
        display: flex !important; /* Esto hará que aparezcan las 3 líneas */
        z-index: 1200;
    }

    /* 2. El Menú de navegación (se despliega bajo el header) */
    nav#main-nav {
        position: fixed; 
        top: 70px; 
        right: 0;
        background: rgba(0, 0, 0, 0.98); 
        width: 220px;
        height: auto;
        border-radius: 0 0 0 1rem;
        transform: translateX(110%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 5px 15px rgba(0,0,0,0.8);
    }

    nav#main-nav.open {
        transform: translateX(0); /* Entra desde la derecha */
    }

    nav#main-nav ul {
        flex-direction: column;
        padding: 15px 0;
        gap: 0;
        align-items: stretch; /* Ocupa todo el ancho del menú */
    }

    nav#main-nav a {
        padding: 18px 25px;
        display: block;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(224, 156, 166, 0.2);
        text-align: left;
    }

    /* 3. Evitar que el header tape el inicio de la página */
    body {
        padding-top: 70px !important; 
    }
}

/* ==========================================================================
   9. ALERTAS DINÁMICAS (MENSAJES DE ÉXITO Y ERROR)
   ========================================================================== */

/* Contenedor base de la alerta */
.alert-message {
    position: fixed;
    top: 100px; /* Debajo del header */
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    z-index: 3000; /* Por encima de modales y nav */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    min-width: 250px;
    text-align: center;
    animation: slideIn 0.5s ease-out forwards;
}

/* Color para Éxito (Verde) */
.alert-success {
    background-color: #28a745;
    border-left: 6px solid #1e7e34;
}

/* Color para Error (Rojo) */
.alert-error {
    background-color: #dc3545;
    border-left: 6px solid #a71d2a;
}

/* Animación de entrada (aparece desde la derecha) */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Clase para desvanecer antes de eliminar */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
    .alert-message {
        right: 10px;
        left: 10px;
        top: 90px;
        min-width: auto;
    }
}