/* ================================================================
   HS_Checkin — Estilos Responsive
   ================================================================ */

/* CONTENEDOR PRINCIPAL */
.hs-checkin-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: #ffffff !important;
    padding: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hs-checkin-container {
    background: white !important;
    border-radius: 0;
    border: none !important;
    width: 100% !important;
    max-width: 80% !important;
    padding: 40px !important;
    animation: slideUp 0.3s ease-out;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .hs-checkin-wrapper {
        padding: 8px !important;
    }

    .hs-checkin-container {
        max-width: 100%;
        padding: 16px !important;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .hs-checkin-container {
        padding: 12px !important;
    }
}

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

/* HEADER */
.hs-checkin-header {
    margin-bottom: 24px;
    text-align: center;
}

.hs-checkin-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .hs-checkin-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hs-checkin-header h1 {
        font-size: 20px;
    }
}

.hs-checkin-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .hs-checkin-header p {
        font-size: 13px;
    }
}

/* RESUMEN DE RESERVA */
.hs-checkin-summary {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

@media (max-width: 480px) {
    .hs-checkin-summary {
        padding: 12px;
        margin-bottom: 16px;
    }
}

.hs-checkin-summary h2 {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

/* GRID 2 COLUMNAS */
.hs-checkin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .hs-checkin-grid-2 {
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .hs-checkin-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.hs-checkin-info-item label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

@media (max-width: 480px) {
    .hs-checkin-info-item label {
        font-size: 10px;
    }
}

.hs-checkin-info-item span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

@media (max-width: 480px) {
    .hs-checkin-info-item span {
        font-size: 13px;
    }
}

/* FORMULARIO */
.hs-checkin-form {
    margin-top: 16px;
}

.hs-checkin-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
}

@media (max-width: 480px) {
    .hs-checkin-fieldset {
        margin: 0 0 16px 0;
    }
}

.hs-checkin-fieldset:last-of-type {
    margin-bottom: 0;
}

.hs-checkin-legend {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

@media (max-width: 480px) {
    .hs-checkin-legend {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

.hs-checkin-helper {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* FORM GROUP */
.hs-checkin-form-group {
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .hs-checkin-form-group {
        margin-bottom: 10px;
    }
}

.hs-checkin-form-group:last-child {
    margin-bottom: 0;
}

.hs-checkin-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0.2px;
}

@media (max-width: 480px) {
    .hs-checkin-form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }
}

.hs-checkin-form-group label .required {
    color: #ef4444;
}

.hs-checkin-input,
.hs-checkin-select,
.hs-checkin-textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hs-checkin-input,
    .hs-checkin-select,
    .hs-checkin-textarea {
        padding: 11px;
        font-size: 16px;
    }
}

.hs-checkin-input:focus,
.hs-checkin-select:focus,
.hs-checkin-textarea:focus {
    outline: none;
    border-color: #374151;
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}

.hs-checkin-input:disabled,
.hs-checkin-select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.hs-checkin-textarea {
    resize: vertical;
    min-height: 80px;
}

/* CHECKBOX */
.hs-checkin-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

@media (max-width: 480px) {
    .hs-checkin-checkbox {
        margin-top: 12px;
        padding: 10px;
        gap: 8px;
    }
}

.hs-checkin-checkbox input[type="checkbox"] {
    margin-top: 4px;
    min-width: 18px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #374151;
}

@media (max-width: 480px) {
    .hs-checkin-checkbox input[type="checkbox"] {
        min-width: 16px;
        width: 16px;
        height: 16px;
    }
}

.hs-checkin-checkbox label {
    margin-bottom: 0;
    font-size: 13px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .hs-checkin-checkbox label {
        font-size: 12px;
    }
}

/* BOTONES */
.hs-checkin-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 640px) {
    .hs-checkin-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hs-checkin-actions {
        gap: 8px;
        margin-top: 16px;
        padding-top: 12px;
    }
}

.hs-checkin-btn {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    user-select: none;
}

@media (max-width: 640px) {
    .hs-checkin-btn {
        width: 100%;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .hs-checkin-btn {
        font-size: 12px;
        padding: 11px 14px;
    }
}

.hs-checkin-btn:hover {
    transform: translateY(-1px);
}

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

.hs-checkin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hs-checkin-btn-primary {
    background: #374151;
    color: white;
}

.hs-checkin-btn-primary:hover:not(:disabled) {
    background: #1f2937;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.2);
}

.hs-checkin-btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}

.hs-checkin-btn-secondary:hover:not(:disabled) {
    background: #d1d5db;
}

/* MENSAJES */
.hs-checkin-message {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

@media (max-width: 480px) {
    .hs-checkin-message {
        padding: 12px;
    }
}

.hs-checkin-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.hs-checkin-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.hs-checkin-message h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .hs-checkin-message h3 {
        font-size: 14px;
    }
}

.hs-checkin-success h3 {
    color: #10b981;
}

.hs-checkin-error h3 {
    color: #ef4444;
}

.hs-checkin-message p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .hs-checkin-message p {
        font-size: 12px;
    }
}

/* GUEST BLOCK */
.hs-checkin-guest-block {
    background: #fafbfc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

@media (max-width: 480px) {
    .hs-checkin-guest-block {
        padding: 12px;
        margin-bottom: 10px;
    }
}

.hs-checkin-guest-block h3 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

@media (max-width: 480px) {
    .hs-checkin-guest-block h3 {
        font-size: 12px;
        margin: 0 0 10px 0;
    }
}

/* CONFIRMATION BOX */
.hs-checkin-confirmation-box {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .hs-checkin-confirmation-box {
        padding: 12px;
        margin-bottom: 12px;
    }
}

.hs-checkin-confirmation-box h2 {
    margin-top: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

@media (max-width: 480px) {
    .hs-checkin-confirmation-box h2 {
        font-size: 13px;
        padding-bottom: 8px;
    }
}

/* CONFIRMATION ITEMS */
.hs-checkin-confirmation-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

@media (max-width: 640px) {
    .hs-checkin-confirmation-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .hs-checkin-confirmation-item {
        padding: 6px 0;
    }
}

.hs-checkin-confirmation-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hs-checkin-confirmation-item label {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 480px) {
    .hs-checkin-confirmation-item label {
        font-size: 11px;
    }
}

.hs-checkin-confirmation-item span {
    font-size: 13px;
    color: #374151;
    word-break: break-word;
}

@media (max-width: 480px) {
    .hs-checkin-confirmation-item span {
        font-size: 12px;
    }
}

/* LOADING STATE */
.hs-checkin-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #374151;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* UTILITIES */
.hs-checkin-mt-4 {
    margin-top: 16px !important;
}

@media (max-width: 480px) {
    .hs-checkin-mt-4 {
        margin-top: 12px !important;
    }
}

.hs-checkin-mt-6 {
    margin-top: 24px !important;
}

@media (max-width: 480px) {
    .hs-checkin-mt-6 {
        margin-top: 16px !important;
    }
}

.hs-checkin-text-center {
    text-align: center !important;
}

.hs-checkin-hidden {
    display: none !important;
}

/* OPTIMIZATIONS FOR VERY SMALL SCREENS */
@media (max-width: 320px) {
    .hs-checkin-container {
        padding: 8px !important;
    }

    .hs-checkin-header h1 {
        font-size: 18px;
    }

    .hs-checkin-btn {
        padding: 10px 12px;
        font-size: 11px;
    }

    .hs-checkin-input,
    .hs-checkin-select,
    .hs-checkin-textarea {
        font-size: 16px;
        padding: 10px;
    }

    .hs-checkin-confirmation-item {
        grid-template-columns: 1fr;
    }
}

.hs-checkin-guest-block h3 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

@media (max-width: 480px) {
    .hs-checkin-guest-block h3 {
        font-size: 12px;
        margin: 0 0 10px 0;
    }
}

/* CONFIRMATION BOX */
.hs-checkin-confirmation-box {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .hs-checkin-confirmation-box {
        padding: 12px;
        margin-bottom: 12px;
    }
}

.hs-checkin-confirmation-box h2 {
    margin-top: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

@media (max-width: 480px) {
    .hs-checkin-confirmation-box h2 {
        font-size: 13px;
        padding-bottom: 8px;
    }
}

.hs-confirmation-item {
    padding: 8px 0;
}

.hs-confirmation-item label {
    font-weight: 600;
    color: #6b7280;
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.hs-confirmation-item span {
    display: block;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

/* Highlight first span in certain items */
.hs-confirmation-item:nth-child(1) span,
.hs-confirmation-item:nth-child(6) span {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

/* Confirmation Info */
.hs-confirmation-info {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.hs-confirmation-info p {
    margin: 8px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.hs-confirmation-info p:first-child {
    margin-top: 0;
}

.hs-confirmation-info p:last-child {
    margin-bottom: 0;
}

.hs-confirmation-info strong {
    color: #1f2937;
    font-weight: 600;
}

/* Guest Summary */
.hs-guest-summary {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.hs-guest-summary h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.hs-guest-summary p {
    margin: 4px 0;
    color: #4b5563;
    font-size: 14px;
}

.hs-guest-summary p:first-child {
    margin-top: 0;
}

.hs-guest-summary p:last-child {
    margin-bottom: 0;
}

.hs-guest-summary strong {
    color: #1f2937;
    font-weight: 600;
}

/* Footer Message */
.hs-checkin-footer-message {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.hs-checkin-footer-message p {
    color: #666;
    font-size: 14px;
    margin: 0;
}
   

.hs-confirmation-item span {
    color: #1f2937;
    font-size: 14px;
    display: block;
}

.hs-confirmation-info p {
    margin: 8px 0;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.5;
}

.hs-guest-summary {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.hs-guest-summary h3 {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.hs-guest-summary p {
    margin: 6px 0;
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

/* UTILITIES */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.text-muted {
    color: #6b7280;
    font-size: 12px;
}
