/* ============================================
   SISTEMA DE NOTIFICACIONES CRESA
   Diseño elegante en blanco y negro
   ============================================ */

/* Notificaciones flotantes (JavaScript) */
.notificacion {
    position: fixed;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    min-width: 280px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notificacion.show {
    opacity: 1;
    transform: translateY(0);
}

/* Franja negra superior */
.notificacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #000000;
}

/* Contenedor del logo */
.notificacion-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notificacion-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0);
}

/* Contenido del mensaje */
.notificacion-mensaje {
    flex: 1;
    color: #000000;
    font-size: 0.95rem;
}

/* Tipos de notificación - todos en blanco y negro */
.notificacion-success,
.notificacion-error,
.notificacion-warning,
.notificacion-info {
    background-color: #ffffff;
    border: 1px solid #000000;
    color: #000000;
    padding: 18px 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .notificacion {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-10px);
        max-width: 90%;
        min-width: auto;
    }
    
    .notificacion.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   MENSAJES EN PÁGINAS (PHP)
   ============================================ */

/* Mensajes de checkout */
.mensaje-checkout {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-top: 3px solid #000000;
    color: #000000;
    padding: 20px 24px;
    border-radius: 0;
    margin-bottom: 2rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mensaje-checkout::before {
    content: '';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: #000000;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

.mensaje-success {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-top: 3px solid #000000;
    color: #000000;
}

.mensaje-error {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-top: 3px solid #000000;
    color: #000000;
}

.mensaje-error::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

/* ============================================
   PÁGINA DE CONFIRMACIÓN DE COMPRA
   Diseño minimalista y elegante en blanco y negro
   ============================================ */

.checkout-success-wrapper {
    min-height: calc(100vh - 200px);
    padding: 4rem 0 6rem;
    background: #ffffff;
}

.checkout-success-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.checkout-success-card {
    background: #ffffff;
    padding: 0;
    box-shadow: none;
}

/* Header de éxito - Sin bordes, más limpio */
.success-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-top: 2rem;
    padding-bottom: 0;
}

.success-logo-wrapper {
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    background: #000000;
    padding: 2rem;
    border-radius: 0;
}

.success-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
}

.success-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.5px;
}

.success-header p {
    font-size: 1.125rem;
    color: #000000;
    line-height: 1.6;
    margin: 0;
    opacity: 0.7;
}

/* Confirmación - Diseño más limpio */
.success-confirmation {
    text-align: center;
    margin-bottom: 3rem;
}

.success-confirmation h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.confirmation-text {
    font-size: 1.0625rem;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

/* Caja de número de pedido - Sin bordes, más elegante */
.codigo-seguimiento-box {
    background: #f8f8f8;
    border-left: 4px solid #000000;
    padding: 2rem;
    margin: 2.5rem 0;
}

.codigo-label {
    font-size: 0.8125rem;
    color: #000000;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.codigo-display-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.codigo-display-large code {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    background: transparent;
    padding: 0;
    border: none;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    letter-spacing: 1px;
}

.btn-copy {
    background: #000000;
    border: none;
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-copy:hover {
    background: #333333;
    transform: translateY(-1px);
}

.btn-copy:active {
    transform: translateY(0);
}

.codigo-hint {
    margin: 0;
    font-size: 0.9375rem;
}

.link-seguimiento {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
    border-bottom: 1px solid #000000;
}

.link-seguimiento:hover {
    opacity: 0.6;
    border-bottom-color: transparent;
}

.detail-label {
    font-size: 0.9375rem;
    color: #000000;
    margin-top: 3rem;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Divisor sutil */
.success-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 3rem 0;
    border: none;
}

/* Sección de items - Sin bordes de tabla */
.items-section {
    margin-bottom: 3rem;
}

.items-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 2rem;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.items-table-wrapper {
    overflow-x: auto;
    border: none;
}

.items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.items-table thead {
    background: transparent;
}

.items-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #000000;
    opacity: 0.8;
}

.items-table td {
    padding: 1.5rem 0.75rem;
    border-bottom: 1px solid #e5e5e5;
    color: #000000;
    font-size: 0.9375rem;
}

.items-table tbody tr:last-child td {
    border-bottom: none;
}

.producto-info-cell {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.producto-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0;
    border: none;
    background: #f5f5f5;
}

.producto-nombre {
    font-weight: 500;
    color: #000000;
}

/* Resumen - Sin bordes, más limpio */
.success-summary {
    background: #f8f8f8;
    border-left: 4px solid #000000;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    color: #000000;
    border-bottom: 1px solid #e5e5e5;
}

.summary-line:last-of-type {
    border-bottom: none;
}

.summary-discount {
    color: #4caf50;
}

.summary-discount-value {
    color: #4caf50;
    font-weight: 600;
}

.summary-total {
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 2px solid #000000;
    font-weight: 700;
    font-size: 1.125rem;
    color: #000000;
}

.summary-value {
    font-weight: 500;
    color: #000000;
}

.summary-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

/* Fecha - Más sutil */
.purchase-date {
    text-align: center;
    font-size: 0.875rem;
    color: #000000;
    margin-bottom: 2.5rem;
    padding-top: 0;
    border: none;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Acciones - Botones más elegantes */
.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn-primary,
.success-actions .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: 2px solid #000000;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-actions .btn-primary {
    background: #000000;
    color: #ffffff;
}

.success-actions .btn-primary:hover {
    background: #333333;
    border-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.success-actions .btn-secondary {
    background: #ffffff;
    color: #000000;
}

.success-actions .btn-secondary:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   MENSAJES DE AUTENTICACIÓN
   ============================================ */

.auth-mensaje {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-top: 3px solid #000000;
    color: #000000;
    padding: 20px 24px;
    border-radius: 0;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-mensaje-exito {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-top: 3px solid #000000;
    color: #000000;
}

.auth-mensaje-error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: none;
    border-left: 4px solid #e74c3c;
    border-radius: 0 8px 8px 0;
    color: #c0392b;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
    animation: slideInLeft 0.4s ease-out;
}

.auth-mensaje-error::before {
    content: '⚠️';
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   MENSAJES DE CONTACTO
   ============================================ */

.contacto-mensaje {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-top: 3px solid #000000;
    color: #000000;
    padding: 20px 24px;
    border-radius: 0;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contacto-mensaje-exito {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-top: 3px solid #000000;
    color: #000000;
}

.contacto-mensaje-error {
    background-color: #ffffff;
    border: 1px solid #000000;
    border-top: 3px solid #000000;
    color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-success-wrapper {
        padding: 2rem 0 4rem;
    }
    
    .checkout-success-container {
        padding: 0 1rem;
    }
    
    .success-header h1 {
        font-size: 2rem;
    }
    
    .success-header p {
        font-size: 1rem;
    }
    
    .success-logo-wrapper {
        max-width: 220px;
    }
    
    .success-logo {
        max-height: 80px;
    }
    
    .success-confirmation h2 {
        font-size: 1.5rem;
    }
    
    .codigo-seguimiento-box {
        padding: 1.5rem;
    }
    
    .codigo-display-large {
        flex-direction: column;
        gap: 1rem;
    }
    
    .codigo-display-large code {
        font-size: 1.75rem;
    }
    
    .items-title {
        font-size: 1rem;
    }
    
    .items-table {
        font-size: 0.875rem;
    }
    
    .items-table th,
    .items-table td {
        padding: 1rem 0.5rem;
    }
    
    .producto-thumb {
        width: 50px;
        height: 50px;
    }
    
    .success-summary {
        padding: 1.5rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

