:root {
    --primary-color: #e0081b;
    --primary-dark: #b00014;
    --primary-light: #ff4f5e;
    --hover-color: #5f0000;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #e9ecef;
    --accent: #ffc107;
    --success: #28a745;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ff00001a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    padding-top: 100px;
    overflow-y: auto;
}

.reservation-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.card-content {
    padding: 70px 30px 30px;
}

.header-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    padding: 2rem;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
}

.logo-container {
    position: relative;
    margin-top: 50px;
    text-align: center;
    z-index: 2;
}

.logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
    box-shadow: var(--shadow);
    object-fit: contain;
    animation: rotateLogo 10s ease;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    animation: pulseInput 2s infinite !important;
}

.form-control, .form-select {
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.form-control:focus, .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 6, 138, 0.685);
    transform: translateY(-2px);
}

.form-control:invalid {
    border-color: #06519a;
    border-width: 0.5px;
    box-shadow: 0px 0px 1px 1px #05417e;
    animation: shake 0.5s ease-in-out;
}

.form-control:valid {
    border-color: #06519a;
    border-width: 0.5px;
    box-shadow: 0px 0px 1px 1px #05417e;
    animation: scaleIn 0.2s ease-out;
}

.form-control:hover {
    animation: none;
}

h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.warning {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    transition: all 0.3s ease;
}

.warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.flatpickr {
    border-color: #06519a !important;
    box-shadow: 0px 0px 1px 1px #05417e !important;
}

.flatpickr-input {
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    height: 38px !important;
    padding: 0.375rem 0.75rem !important;
    width: 100% !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    border-color: #06519a !important;
    border-width: 0.5px !important;
    box-shadow: 0px 0px 1px 1px #05417e !important;
}

.flatpickr-input:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    outline: 0 !important;
}

.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(57, 57, 57, 0.3) !important;
    background-color: transparent !important;
    cursor: not-allowed !important;
    text-decoration: line-through !important;
}

.flatpickr-calendar {
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
}

.voucher-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
.voucher-digit {
    width: 40px;
    height: 40px;
    border: 2px solid #06519a !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
}
.voucher-separator {
    font-size: 20px;
    font-weight: bold;
    margin: 0 10px;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(224, 8, 27, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    width: 200px;
    display: block;
    margin: 20px auto;
    border-radius: 25px;
    padding: 12px 20px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(224, 8, 27, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    text-align: left;
    padding: 10px;
}

.form-group {
    margin-bottom: 20px;
    text-align: center;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.form-group label.main-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--md-sys-color-primary);
    margin-bottom: 10px;
}

select.form-control {
    text-align: center;
    text-align-last: center;
    -moz-text-align-last: center;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

select.form-control option {
    text-align: center;
}

input[type="date"].form-control {
    text-align: center;
    min-height: 44px;
}

input[type="text"].form-control,
input[type="email"].form-control,
input[type="tel"].form-control {
    text-align: center;
    height: 40px;
}

#additionalForm {
    max-width: 350px;
    margin: 0 auto;
}

.nav-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    color: #e0081b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: rgba(103, 80, 164, 0.1);
    border-radius: 4px;
    transform: translateX(-5px);
}

.back-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn-back:hover .back-icon {
    transform: translateX(-3px);
}

/* Reservation summary styles */
.reservation-summary {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 15px;
    border: 1px solid #dee2e6;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.5s ease-out;
    transition: all 0.3s ease;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.reservation-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reservation-summary h3 {
    margin-top: 0;
    color: #e0081b;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Para el contenido dentro del summary */
.reservation-summary p {
    margin: 8px 0;
    line-height: 1.6;
}

/* Comment section styles */
.comment-section {
    margin-top: 20px;
}

.btn-comment {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(224, 8, 27, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-comment:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(224, 8, 27, 0.4);}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.modal-dialog {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    margin: 30px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: scaleIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    padding: 24px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 1.25rem;
    color: #2d3748;
    margin: 0;
}

.modal-body {
    padding: 15px 0;
}

.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    resize: vertical;
}

.modal-footer {
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-close:hover {
    color: #333;
}

/* Checkbox styles */
.checkbox-group {
    text-align: left;
    padding: 10px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-container:hover {
    color: var(--md-sys-color-primary);
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Button group styles */
.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Date input styles */
input[type="date"] {
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    background-color: white;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
    cursor: pointer;
    height: 100%;
    width: 100%;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
}

input[type="date"]::-webkit-datetime-edit {
    text-align: center;
    position: relative;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    position: relative;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: #333;
}

input[type="date"]:invalid {
    color: #757575;
}

input[type="date"]::-moz-calendar-picker-indicator {
    background: transparent;
    cursor: pointer;
    height: 20px;
    width: 20px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Counter button styles */
.counter-btn {
    transition: all 0.2s ease;
}

.counter-btn:hover {
    background-color: #c0c0c0 !important;
    transform: scale(1.1);
}

.counter-btn:active {
    transform: scale(0.95);
}

/* Link styles */
a {
    transition: all 0.2s ease;
    position: relative;
}

a:hover {
    color: var(--md-sys-color-primary);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--md-sys-color-primary);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseInput {
    0%, 100% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.02);
    }
    60% {
        transform: scale(1.02);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes rotateLogo {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Media Queries */
@media screen and (max-width: 980px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .reservation-card {
        width: 100%;
        max-width: none;
    }

    .reservation-card h1 {
        margin-top: 40px;
    }

    h1 {
        font-size: 20px;
    }

    .form-group label {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .form-control, .form-select {
        font-size: 16px;
        padding: 15px;
        height: auto;
        margin-bottom: 20px;
        max-width: none;
    }

    input[type="text"].form-control,
    input[type="email"].form-control,
    input[type="tel"].form-control,
    input[type="date"].form-control {
        height: 50px;
        font-size: 18px;
    }

    textarea.form-control {
        font-size: 18px;
        min-height: 120px;
        padding: 15px;
    }

    .btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
    }

    .btn-primary {
        padding: 18px 24px;
        font-size: 20px;
        width: 100%;
        max-width: none;
        margin: 25px auto;
    }

    .modal-dialog {
        width: 95%;
        margin: 20px auto;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 24px;
    }

    .btn-close {
        font-size: 24px;
        padding: 8px 12px;
    }

    .btn-secondary,
    .modal .btn-primary {
        padding: 15px 25px;
        font-size: 18px;
        width: 100%;
        margin: 5px 0;
    }

    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .reservation-summary {
        padding: 22px;
        margin: 25px auto;
        max-width: 80%;
    }
    
    .reservation-summary h3 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    
    .button-group {
        flex-direction: column;
    }
}

@media screen and (max-width: 360px) {
    .reservation-card {
        padding-top: 20px;
    }

    .reservation-card h1 {
        margin-top: 30px;
    }

    h1 {
        font-size: 20px;
    }

    .form-control, .form-select {
        font-size: 16px;
        padding: 10px;
    }

    .btn-primary {
        padding: 15px 20px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    input[type="date"] {
        min-height: 44px;
    }
}

@media screen and (max-height: 768px) and (max-width: 1366px) {
    body {
        padding-top: 40px;
        align-items: flex-start;
    }
    
    .reservation-card {
        margin-top: 20px;
        transform: scale(0.95);
    }
}

@media screen and (max-height: 768px) and (max-width: 1024px) {
    body {
        padding-top: 30px;
    }
    
    .reservation-card {
        margin-top: 10px;
        transform: scale(0.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media screen and (max-width: 600px) {
            .card-content {
                padding: 60px 20px 20px;
            }
            
            .reservation-card {
                border-radius: 8px;
            }
            
            h1 {
                font-size: 1.3rem;
            }
        }

@media screen and (min-height: 700px) and (max-width: 450px) {
    body {
        padding: 5px;
        padding-top: 60px;
    }
    
    .reservation-card {
        width: 95%;
        margin: 10px auto;
        padding-bottom: 20px;
    }
    
    #additionalForm {
        width: 90%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-control, .form-select {
        width: 100%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .reservation-summary {
        margin: 20px auto;
        padding: 18px;
        width: 90%;
        max-width: 300px;
    }
    
    .btn-comment, .btn-primary {
        padding: 14px 20px;
        max-width: 230px;
        margin: 15px auto;
    }
    
    .modal-dialog {
        width: 90%;
        margin: 10px auto;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    textarea.form-control {
        min-height: 80px;
        padding: 10px;
    }
    
    h1 {
        margin-top: 15px;
        margin-bottom: 15px;
        font-size: 1.3rem;
    }
    
    .checkbox-container {
        padding: 5px 0;
    }
    
    input[type="text"].form-control,
    input[type="email"].form-control,
    input[type="tel"].form-control,
    input[type="date"].form-control {
        height: 45px;
    }
    
    .nav-button {
        top: 10px;
        left: 10px;
    }

    .header-banner {
        background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
        height: 100px;
        justify-content: center;
    }
}

@media screen and (min-height: 800px) and (max-width: 400px) and (min-aspect-ratio: 9/16) {
    body {
        padding-top: 40px;
        padding-bottom: 30px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-control, .form-select, 
    input[type="text"].form-control,
    input[type="email"].form-control,
    input[type="tel"].form-control {
        font-size: 15px;
    }
    
    .reservation-summary {
        margin: 18px auto;
    }
    
    .form-group label {
        margin-bottom: 6px;
        font-size: 15px;
    }
}

@media screen and (min-height: 900px) and (max-width: 450px) {
    .form-group {
        margin-bottom: 20px;
    }
    
    input[type="text"].form-control,
    input[type="email"].form-control,
    input[type="tel"].form-control,
    input[type="date"].form-control {
        height: 48px;
        font-size: 16px;
    }
    
    .modal-dialog {
        margin: 15% auto;
    }
}

@media screen and (min-height: 700px) and (max-width: 400px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }
    
    .card-content {
        padding: 50px 15px 15px;
    }
    
    .button-group {
        margin-top: 25px;
        margin-bottom: 20px;
    }
    
    .modal {
        align-items: flex-start;
        padding-top: 20%;
    }
}