/* 
1. Add your custom Css styles below
2. Place the this code in your template: 
 <link href="css/custom.css" rel="stylesheet">
*/

/* Custom Alerts CreseMexico - Estilo Modal */

/* Overlay de fondo oscuro */
.crese-notify-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.crese-notify {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%) !important;
    border-top: 6px solid #275B9C !important;
    color: #333 !important;
    padding: 35px 40px 30px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    width: 90% !important;
    max-width: 420px !important;
    min-width: 320px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 !important;
    right: auto !important;
}

/* Botón X de cerrar - Fondo negro */
.crese-notify .crese-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background-color: #1a1a1a !important;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    line-height: 1;
    padding: 0;
}

.crese-notify .crese-close-btn:hover {
    background-color: #275B9C !important;
    transform: scale(1.1);
}

.crese-notify .close {
    display: none !important; /* Ocultar el close por defecto de bootstrap-notify */
}

/* Contenedor del logo */
.crese-notify-logo {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-bottom: 2px solid rgba(39, 91, 156, 0.15);
}

.crese-notify-logo img {
    height: 100px !important; 
    max-height: 100px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: contain;
}

/* Título */
.crese-notify [data-notify="title"] {
    color: #275B9C !important;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: block;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mensaje */
.crese-notify [data-notify="message"] {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    display: block;
    width: 100%;
    margin-bottom: 25px;
}

.crese-notify [data-notify="icon"] {
    display: none;
}

/* Botón Aceptar */
.crese-notify .crese-accept-btn {
    background: linear-gradient(135deg, #275B9C 0%, #3a7bc8 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 30px;
    padding: 14px 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(39, 91, 156, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.crese-notify .crese-accept-btn:hover {
    background: linear-gradient(135deg, #1e4a7a 0%, #275B9C 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 91, 156, 0.5);
}

/* Animación de entrada */
@keyframes creseAlertIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.crese-notify.animated {
    animation: creseAlertIn 0.4s ease-out !important;
}

@media (max-width: 991px) {
    .crese-notify {
        min-width: 0 !important;
        width: min(90%, 420px) !important;
        padding: 28px 22px 24px !important;
    }

    .crese-notify .crese-accept-btn {
        min-height: 44px;
        padding: 12px 28px;
        width: 100%;
        box-sizing: border-box;
    }

    .crese-notify .crese-close-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 576px) {
    .crese-notify-logo img {
        height: 72px !important;
        max-height: 72px !important;
    }

    .crese-notify [data-notify="title"] {
        font-size: 1.15rem;
    }

    .crese-notify [data-notify="message"] {
        font-size: 0.98rem;
        margin-bottom: 18px;
    }
}

/* === SITE-WIDE BRAND AUDIT ===
   Notificaciones: azul Crese → paleta Paulina Rangel
*/
.crese-notify {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F7F5 100%) !important;
    border-top: 6px solid #3D0026 !important;
    color: #1D1D1D !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}

.crese-notify .crese-close-btn:hover {
    background-color: #3D0026 !important;
}

.crese-notify-logo {
    border-bottom: 2px solid rgba(183, 154, 181, 0.35);
}

.crese-notify [data-notify="title"] {
    color: #3D0026 !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    text-transform: none;
    letter-spacing: 0.02em;
}

.crese-notify [data-notify="message"] {
    color: #1D1D1D;
    font-family: 'Inter', system-ui, sans-serif !important;
}

.crese-notify .crese-accept-btn {
    background: #3D0026 !important;
    box-shadow: 0 6px 20px rgba(61, 0, 38, 0.25);
}

.crese-notify .crese-accept-btn:hover {
    background: #2a001a !important;
    box-shadow: 0 8px 25px rgba(61, 0, 38, 0.35);
}

/* === /SITE-WIDE BRAND AUDIT === */
