/* ============================================================================
   CHECKOUT.HTML - CHECKOUT PAGE STYLES
   ============================================================================ */

.checkout-main {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    background: var(--charcoal-dark);
}

.checkout-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Code Entry */
.code-entry-container {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--charcoal);
    border: 1px solid rgba(196, 163, 90, 0.15);
    max-width: 500px;
    margin: 2rem auto;
}

.code-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.code-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.code-description {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.code-form {
    margin-bottom: 1.5rem;
}

.code-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.code-digit {
    width: 60px;
    height: 70px;
    font-size: 2rem;
    text-align: center;
    background: var(--charcoal-dark);
    border: 2px solid rgba(196, 163, 90, 0.3);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 600;
    transition: all 0.3s ease;
}

.code-digit:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--charcoal);
    box-shadow: 0 0 20px rgba(196, 163, 90, 0.3);
}

.code-single-input {
    width: 180px;
    height: 70px;
    font-size: 2.5rem;
    text-align: center;
    background: var(--charcoal-dark);
    border: 2px solid rgba(196, 163, 90, 0.3);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.5em;
    transition: all 0.3s ease;
}

.code-single-input::placeholder {
    color: rgba(196, 163, 90, 0.3);
    letter-spacing: 0.5em;
}

.code-single-input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--charcoal);
    box-shadow: 0 0 20px rgba(196, 163, 90, 0.3);
}

.code-help {
    font-size: 0.85rem;
    opacity: 0.7;
}

.code-help a {
    color: var(--gold);
    text-decoration: underline;
}

/* Appointment Info */
.appointment-info {
    background: var(--charcoal);
    border: 1px solid rgba(196, 163, 90, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(196, 163, 90, 0.2);
}

.info-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--cream);
}

.appointment-code {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 0.3em;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.8;
}

.info-value {
    font-size: 1rem;
    color: var(--cream);
}

/* Membership Section */
.membership-section {
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subtitle-icon {
    font-size: 1.5rem;
}

.membership-card {
    background: var(--charcoal);
    border: 1px solid rgba(196, 163, 90, 0.2);
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.membership-card.active {
    border-color: var(--gold);
    background: rgba(196, 163, 90, 0.05);
}

.membership-info {
    flex: 1;
}

.membership-info h4 {
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.membership-info p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.membership-action {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(196, 163, 90, 0.4);
    background: var(--charcoal-dark);
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked+.checkmark {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-container input:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--charcoal-dark);
    font-size: 1rem;
    font-weight: bold;
}

.checkbox-label {
    font-size: 0.9rem;
}

/* Products Section */
.products-section {
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-checkout-card {
    background: var(--charcoal);
    border: 1px solid rgba(196, 163, 90, 0.15);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.product-checkout-card:hover {
    border-color: rgba(196, 163, 90, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-checkout-card.out-of-stock {
    opacity: 0.5;
    pointer-events: none;
}

.product-checkout-card.low-stock {
    border-color: rgba(255, 152, 0, 0.3);
}

.product-checkout-image {
    width: 60px;
    height: 60px;
    background: rgba(196, 163, 90, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.product-checkout-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-checkout-info {
    flex: 1;
}

.product-checkout-info h4 {
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.product-checkout-info p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
}

.product-stock {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.product-stock.low-stock {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.product-stock.out-of-stock {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: var(--charcoal-dark);
    border: 1px solid rgba(196, 163, 90, 0.3);
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.qty-btn:hover:not(:disabled) {
    border-color: var(--gold);
    background: rgba(196, 163, 90, 0.1);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-display {
    width: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

/* No Products Message */
.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gold);
    opacity: 0.7;
}

.no-products-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.no-products-message p {
    font-size: 1rem;
}

/* Payment Summary */
.payment-summary {
    background: var(--charcoal);
    border: 2px solid rgba(196, 163, 90, 0.3);
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.summary-items {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(196, 163, 90, 0.1);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.discount {
    color: #4CAF50;
}

.summary-divider {
    height: 1px;
    background: rgba(196, 163, 90, 0.3);
    margin: 1rem 0;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.summary-row.total span:last-child {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold);
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 2rem;
}

.payment-methods h4 {
    font-size: 1rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--charcoal-dark);
    border: 2px solid rgba(196, 163, 90, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: rgba(196, 163, 90, 0.5);
}

.payment-option input {
    display: none;
}

.payment-option input:checked+.payment-icon {
    transform: scale(1.2);
}

.payment-option:has(input:checked) {
    border-color: var(--gold);
    background: rgba(196, 163, 90, 0.1);
}

.payment-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.payment-label {
    font-size: 0.85rem;
    text-align: center;
}

/* Success */
.success-message {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--cream);
}

.brand-name {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.3em;
    font-weight: 600;
}

.loyalty-cta {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(196, 163, 90, 0.2);
}

.loyalty-cta p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.success-message-box {
    background: rgba(196, 163, 90, 0.1);
    border: 1px solid rgba(196, 163, 90, 0.3);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.success-message-box p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Reviews */
.review-module {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid rgba(196, 163, 90, 0.3);
    background: linear-gradient(145deg,
            rgba(196, 163, 90, 0.08) 0%,
            rgba(26, 26, 26, 0.85) 100%);
}

.review-title {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.review-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1.25rem;
    text-align: left;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-stars {
    display: flex;
    gap: 0.5rem;
}

.review-star-btn {
    border: 0;
    background: transparent;
    color: rgba(196, 163, 90, 0.35);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0;
}

.review-star-btn:hover {
    transform: translateY(-1px);
}

.review-star-btn.active {
    color: var(--gold);
}

.review-label {
    text-align: left;
    color: var(--cream);
    font-size: 0.9rem;
}

.review-textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid rgba(196, 163, 90, 0.3);
    background: var(--charcoal-dark);
    color: var(--cream);
    padding: 0.9rem 1rem;
    resize: vertical;
    font-family: var(--font-body);
}

.review-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(196, 163, 90, 0.2);
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.review-counter {
    font-size: 0.8rem;
    opacity: 0.75;
}

.review-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    text-align: left;
}

.review-status-success {
    color: #b9fbc0;
    border-color: rgba(185, 251, 192, 0.3);
    background: rgba(31, 71, 41, 0.35);
}

.review-status-error {
    color: #ffd2d2;
    border-color: rgba(255, 115, 115, 0.4);
    background: rgba(95, 24, 24, 0.35);
}

/* Responsive */
/* ========== RESPONSIVE DESIGN ========== */

/* Tablets grandes (hasta 1024px) */
@media (max-width: 1024px) {
    .checkout-main {
        padding: 8rem 2rem 4rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-options {
        grid-template-columns: 1fr;
    }
}

/* Tablets y móviles (hasta 768px) */
@media (max-width: 768px) {
    .checkout-main {
        padding: 6rem 1.5rem 3rem;
    }

    .checkout-header h1 {
        font-size: 2rem;
    }

    .checkout-header p {
        font-size: 0.9rem;
    }

    .checkout-steps {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .checkout-step {
        min-width: 80px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-line {
        width: 30px;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .checkout-content {
        padding: 2rem 1.5rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .code-inputs {
        gap: 0.5rem;
    }

    .code-digit {
        width: 50px;
        height: 60px;
        font-size: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-section {
        padding: 1.5rem;
    }

    .info-section h3 {
        font-size: 1.1rem;
    }

    .info-item {
        padding: 0.875rem 0;
    }

    .info-label {
        font-size: 0.8rem;
    }

    .info-value {
        font-size: 0.95rem;
    }

    .membership-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .membership-info {
        flex: none;
        width: 100%;
    }

    .membership-tier {
        font-size: 1.25rem;
    }

    .membership-status {
        font-size: 0.75rem;
    }

    .membership-dates {
        font-size: 0.8rem;
    }

    .membership-action {
        width: 100%;
        align-items: stretch;
    }

    .membership-action .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-checkout-card {
        padding: 1.25rem;
    }

    .product-image-checkout {
        width: 100px;
        height: 100px;
    }

    .product-details h3 {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .product-price-checkout {
        font-size: 1.25rem;
    }

    .quantity-controls {
        gap: 0.75rem;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .quantity-value {
        font-size: 1rem;
        min-width: 40px;
    }

    .payment-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .payment-option {
        padding: 1.25rem;
    }

    .payment-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .payment-name {
        font-size: 1rem;
    }

    .payment-description {
        font-size: 0.8rem;
    }

    .payment-summary {
        position: static;
        margin-top: 2rem;
    }

    .summary-title {
        font-size: 1.1rem;
    }

    .summary-item-label {
        font-size: 0.8rem;
    }

    .summary-item-value {
        font-size: 0.9rem;
    }

    .summary-total-label {
        font-size: 0.9rem;
    }

    .summary-total-value {
        font-size: 1.5rem;
    }

    .step-actions {
        gap: 1rem;
    }

    .step-actions .btn-primary,
    .step-actions .btn-secondary {
        padding: 1rem 2rem;
        font-size: 0.85rem;
    }

    .review-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .review-star-btn {
        font-size: 1.8rem;
    }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .checkout-main {
        padding: 5rem 1rem 2rem;
    }

    .checkout-header {
        margin-bottom: 2rem;
    }

    .checkout-header h1 {
        font-size: 1.75rem;
    }

    .checkout-header p {
        font-size: 0.85rem;
    }

    .checkout-steps {
        gap: 0.25rem;
        padding: 0 0.5rem;
    }

    .checkout-step {
        min-width: 60px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-line {
        width: 20px;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .checkout-content {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .step-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .code-inputs {
        gap: 0.4rem;
    }

    .code-digit {
        width: 45px;
        height: 55px;
        font-size: 1.3rem;
    }

    .info-grid {
        gap: 1.25rem;
    }

    .info-section {
        padding: 1.25rem;
    }

    .info-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .info-item {
        padding: 0.75rem 0;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .membership-card {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .membership-tier {
        font-size: 1.1rem;
    }

    .review-module {
        padding: 1.2rem;
    }

    .review-title {
        font-size: 1.15rem;
    }

    .review-star-btn {
        font-size: 1.55rem;
    }

    .membership-status {
        padding: 0.35rem 0.8rem;
        font-size: 0.7rem;
    }

    .membership-dates {
        font-size: 0.75rem;
    }

    .products-grid {
        gap: 1.25rem;
    }

    .product-checkout-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 1rem;
    }

    .product-image-checkout {
        width: 100%;
        height: 180px;
        border-radius: 8px;
    }

    .product-details {
        width: 100%;
    }

    .product-details h3 {
        font-size: 0.95rem;
    }

    .product-description {
        font-size: 0.8rem;
    }

    .product-meta-checkout {
        font-size: 0.75rem;
    }

    .product-footer-checkout {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .product-price-checkout {
        font-size: 1.2rem;
    }

    .quantity-controls {
        width: 100%;
        justify-content: center;
    }

    .quantity-btn {
        width: 35px;
        height: 35px;
    }

    .quantity-value {
        min-width: 50px;
    }

    .payment-options {
        gap: 0.875rem;
    }

    .payment-option {
        padding: 1rem;
    }

    .payment-option-content {
        gap: 1rem;
    }

    .payment-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .payment-details {
        flex: 1;
    }

    .payment-name {
        font-size: 0.95rem;
    }

    .payment-description {
        font-size: 0.75rem;
    }

    .payment-summary {
        padding: 1.25rem;
    }

    .summary-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .summary-item {
        padding: 0.75rem 0;
    }

    .summary-item-label {
        font-size: 0.75rem;
    }

    .summary-item-value {
        font-size: 0.85rem;
    }

    .summary-total {
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .summary-total-label {
        font-size: 0.85rem;
    }

    .summary-total-value {
        font-size: 1.3rem;
    }

    .step-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .step-actions .btn-primary,
    .step-actions .btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.8rem;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .success-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .success-message {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .success-details {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .detail-item {
        padding: 0.75rem 0;
    }

    .detail-label {
        font-size: 0.75rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .success-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .success-actions .btn-primary,
    .success-actions .btn-outline {
        width: 100%;
    }
}

/* Móviles muy pequeños (hasta 360px) */
@media (max-width: 360px) {
    .checkout-header h1 {
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .code-digit {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }

    .membership-tier {
        font-size: 1rem;
    }

    .success-title {
        font-size: 1.5rem;
    }
}

/* Landscape mode para móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .checkout-main {
        padding: 4rem 1.5rem 2rem;
    }

    .checkout-steps {
        margin-bottom: 1.5rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }
}
