/* 1. Importación de Tipografía y Reseteo Básico */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;700&display=swap');
@font-face {
    font-family: 'icomoon';
    src:  url('fonts/icomoon.eot?zfoi1f');
    src:  url('fonts/icomoon.eot?zfoi1f#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?zfoi1f') format('truetype'),
    url('fonts/icomoon.woff?zfoi1f') format('woff'),
    url('fonts/icomoon.svg?zfoi1f#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-tiktok:before {
    content: "\e900";
}
.icon-instagram:before {
    content: "\ea92";
}
.icon-whatsapp:before {
    content: "\ea93";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 2. Directrices Generales y Paleta de Colores */
:root {
    --rosa-ragazza: #F8B5C4;
    --negro: #000000;
    --blanco: #FFFFFF;
    --fondo-premium: #F9F9F9;
    --verde-exito: #28a745;
    --gris-texto: #555;
}

body {
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    background-color: var(--fondo-premium);
    color: var(--negro);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 3. Estructura y Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    text-align: center;
}

/* 4. Tipografía y Títulos */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

p {
    max-width: 650px;
    margin: 0 auto 2rem auto;
}

/* 5. Barra de Navegación y Logo */
.main-header {
    background-color: var(--blanco);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

/* 6. Menú Hamburguesa */
.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}
.hamburger-menu .line {
    width: 30px;
    height: 3px;
    background-color: var(--negro);
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* Animación del botón hamburguesa a X */
.hamburger-menu.is-active .line1 {
    transform: rotate(-45deg) translate(-7px, 7px);
    background-color: var(--blanco);
}
.hamburger-menu.is-active .line2 {
    opacity: 0;    
}
.hamburger-menu.is-active .line3 {
    transform: rotate(45deg) translate(-7px, -7px);
    background-color: var(--blanco);
}

.nav-links a {
    color: var(--negro);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--rosa-ragazza);
}

/* 6. Sección Hero */
.hero {
    background-color: var(--negro);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    color: var(--blanco);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--blanco);
    margin-bottom: 2.5rem;
}

/* 7. Botones (CTAs) */
.cta-button {
    display: inline-block;
    background-color: var(--rosa-ragazza);
    color: var(--negro);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.cta-button.dark {
    background-color: var(--negro);
    color: var(--blanco);
}

/* 8. Secciones Específicas */
#about, #vip, #reservas {
    background-color: var(--rosa-ragazza);
}

#club, #catering {
    background-color: var(--negro);
    color: var(--blanco);
}

#club h2, #catering h2 {
    color: var(--rosa-ragazza);
}

#catering{
    position: relative;
    overflow: hidden;
}

.ribbon-construccion{
    position: absolute; /* Posicionamiento absoluto respecto a '.tu-seccion' */
    top: 40px;          /* Distancia desde arriba */
    left: -60px;        /* Distancia desde la izquierda (negativa para rotar desde fuera) */
    transform: rotate(-45deg); /* La magia de la rotación */
    background-color: #ffdd00; /* Amarillo construcción */
    color: #000;               /* Texto negro para buen contraste */
    padding: 10px 50px;         /* Espaciado interno */
    width: 300px;               /* Ancho del listón */
    text-align: center;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra para darle profundidad */
    z-index: 10; /* Asegura que esté por encima de otros elementos */
}

/* 9. MEJORAS UI/UX EN FORMULARIO */
#reservas h2 {
    color: var(--negro);
}
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Reducido para agrupar campos */
    max-width: 500px;
    margin: 2rem auto 0 auto;
}

/* Contenedor para cada campo del formulario */
.form-field {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-field input,select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--negro);
    border-radius: 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    background-color: var(--fondo-premium);
    transition: border-color 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: var(--negro);
}

/* Estilo para la etiqueta flotante */
.form-field label {
    position: absolute;
    /* CORRECCIÓN: Se cambia de 50% a un valor fijo para alinear con el input */
    top: 1.5rem;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--gris-texto);
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    padding: 0 0.25rem;
}

/* Animación de la etiqueta flotante */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--negro);
    transform: translateY(-50%);
    background-color: var(--rosa-ragazza);
    font-weight: bold;
}

/* Texto de ayuda */
.helper-text {
    font-size: 0.85rem;
    color: #333;
    margin-top: 0.25rem;
    padding-left: 0.5rem;
}

.booking-form .cta-button {
    margin-top: 1rem;
}

#confirmation-message {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--verde-exito);
    color: var(--blanco);
    font-weight: 700;
    display: none; /* Oculto por defecto */
}

/* 10. Footer */
.main-footer {
    background-color: var(--negro);
    color: var(--blanco);
    padding: 4rem 0;
    text-align: center;
}

.footer-content .logo img {
    height: 50px;
}

.social-links {
    margin: 2rem 0;
}
.social-links a {
    color: var(--blanco);
    text-decoration: none;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--rosa-ragazza);
}
.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 11. Responsive Design */
@media (max-width: 768px) {
    body.nav-active {
        overflow: hidden;
    }
    .ribbon-construccion {
        /* Hacemos el listón y la fuente más pequeños */
        font-size: 12px;
        width: 200px;
        padding: 8px 40px;

        /* Ajustamos su posición para que se vea bien en la esquina */
        top: 25px;
        left: -60px;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Empieza fuera de la pantalla */
        height: 100vh;
        width: 70%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }
    .nav-links.is-active {
        right: 0; /* Se desliza a la vista */
    }
    .nav-links a {
        color: var(--blanco);
        font-size: 1.5rem;
        margin-left: 0;
    }
    .hamburger-menu {
        display: block;
    }
    body {
        font-size: 16px;
    }
    .container {
        padding: 0 1rem;
    }
    section {
        padding: 4rem 0;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero .subtitle {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 2.2rem;
    }
}