/* Importar fuentes */
@font-face {
    font-family: 'Basis Grotesque Arabic Pro';
    src: url('../fonts/BasisGrotesqueArabicPro-Regular.woff2') format('woff2'),
         url('../fonts/BasisGrotesqueArabicPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Basis Grotesque Arabic Pro';
    src: url('../fonts/BasisGrotesqueArabicPro-Bold.woff2') format('woff2'),
         url('../fonts/BasisGrotesqueArabicPro-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Basis Grotesque Arabic Pro';
    src: url('../fonts/BasisGrotesqueArabicPro-Medium.woff2') format('woff2'),
         url('../fonts/BasisGrotesqueArabicPro-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Basis Grotesque Arabic Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: url('../images/fondo_registro.png') center/cover no-repeat fixed;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container principal */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Logo */
.logo {
    width: 290px;
    max-width: 80%;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease-out;
}

/* Contenido principal */
.content {
    text-align: center;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

/* Títulos */
h1 {
    font-size: 28px;
    font-weight: bold;
    color: #7b7b7b;
    margin-bottom: 16px;
    line-height: 1.3;
}

h2 {
    font-size: 24px;
    font-weight: 500;
    color: #004C6D;
    margin-bottom: 24px;
    line-height: 1.4;
}

p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Formularios */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #004C6D;
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-family: 'Basis Grotesque Arabic Pro', sans-serif;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    background-color: white;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #004C6D;
}

input::placeholder {
    color: #999;
}

/* Botones */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px 60px;
    font-size: 25px;
    font-weight: bold;
    font-family: 'Basis Grotesque Arabic Pro', sans-serif;
    color: white;
    background-color: #004C6D;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin-top: 16px;
    -webkit-appearance: none;
}

.mesa-card .btn {
    width: auto;
}

.btn:hover {
    background-color: #003a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 76, 109, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}

/* Card de mesa */
.mesa-card {
    background: #efefef;
    border-radius: 16px;
    padding: 50px 40px;
    margin: 24px auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    animation: scaleIn 0.5s ease-out;
    display: inline-block;
    width: auto;
    max-width: 100%;
    border-width: 4px;
    border-style: solid;
    border-color: #fff;
    
}

.mesa-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin: 16px 0;
    border-radius: 10px;
    border-style: solid;
    border-width: 2px;
    border-color: #5c93ab;
    padding-top: 0px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.mesa-number {
    font-size: 72px;
    line-height: 72px;
    font-weight: 200;
    color: #7b7b7b;
    animation: pulse 0.6s ease-out;
    flex-shrink: 0;
}

.mesa-nombre {
    font-size: 20px;
    line-height: 20px;
    font-weight: bold;
    color: #7b7b7b;
    text-align: center;
    line-height: 1.3;
    max-width: 300px;
}

.mesa-icon {
    width: 120px;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
}

.mesa-text {
    font-size: 25px;
    line-height: 28px;
    font-weight: 500;
    color: #7b7b7b;
    margin-bottom: 8px;
    margin-top: 30px;
}

/* Mensajes de error */
.error-message {
    background-color: #fee;
    border: 2px solid #fcc;
    color: #c33;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: shake 0.5s ease-out;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .logo {
        width: 220px;
        margin-bottom: 5px;
    }

    .mesa-number {
        font-size: 60px;
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
