/* ==========================================================
   Anticuir Popups — popup.css  v1.1
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600&display=swap');

/* --- Overlay --- */
.acpopup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.80);
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

.acpopup-overlay.acpopup-visible {
    display: flex;
    animation: acpopup-fadein 0.35s ease forwards;
}

@keyframes acpopup-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- Caja principal: 580 × 460 px --- */
.acpopup-box {
    position: relative;
    background: #0d0d0d;
    width: 580px;
    height: 460px;
    max-width: 96vw;
    box-sizing: border-box;
    padding: 38px 38px 36px;
    display: flex;
    flex-direction: column;
    animation: acpopup-slidein 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes acpopup-slidein {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* --- Botón cerrar (top-right, fuera del área de contenido) --- */
.acpopup-close {
    position: absolute;
    top: 10px !important;
    right: 12px !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: opacity 0.2s ease !important;
    z-index: 99999 !important;
    min-width: 0 !important;
    height: auto !important;
    width: auto !important;
}

.acpopup-close:hover {
    opacity: 0.7 !important;
    color: #ffffff !important;
    background: transparent !important;
}

/* --- Título --- */
.acpopup-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 30px;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #ffffff !important;
    text-align: center;
    margin: 0 0 28px 0;
    line-height: 1.15;
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- Caja interior con borde --- */
.acpopup-inner-box {
    border: 1px solid #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 26px 20px;
    box-sizing: border-box;
    gap: 20px;
}

/* --- Texto superior (ancho completo) --- */
.acpopup-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    color: #cccccc;
    text-align: center;
    line-height: 1.65;
    margin: 0;
    width: 100%;
    flex-shrink: 0;
}

/* --- Fila inferior: imagen + botón --- */
.acpopup-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 24px;
}

/* --- Imagen de la piel --- */
.acpopup-image-wrap {
    flex: 0 0 auto;
    width: 190px;
    display: flex;
    align-items: center;
}

.acpopup-hide-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Zona del botón --- */
.acpopup-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Botón ENTRAR --- */
.acpopup-btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ffffff !important;
    border: 1px solid #ffffff;
    padding: 18px 42px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.acpopup-btn:hover {
    background: #ffffff;
    color: #000000 !important;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .acpopup-box {
        width: 96vw;
        height: auto;
        padding: 28px 18px 24px;
    }

    .acpopup-title {
        font-size: 20px;
        letter-spacing: 5px;
        white-space: normal;
    }

    .acpopup-bottom-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .acpopup-image-wrap {
        width: 150px;
    }
}

/* ==========================================================
   Anticuir Popups — Drawer Catálogo Digital (Slide-out)
   ========================================================== */

/* Overlay del drawer */
.ac-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ac-drawer-overlay.ac-drawer-visible {
    display: block;
    opacity: 1;
}

/* Panel del drawer que desliza */
.ac-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 460px;
    max-width: 100%;
    height: 100%;
    background: #0d0d0d;
    z-index: 999999;
    box-sizing: border-box;
    padding: 60px 40px 40px;
    border-left: 1px solid #2a2a2a;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    
    /* Estado inicial fuera de pantalla */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Al mostrar el drawer desliza hacia adentro */
.ac-drawer-overlay.ac-drawer-visible .ac-drawer-panel {
    transform: translateX(0);
}

/* Botón cerrar del panel */
.ac-drawer-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 32px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    transition: opacity 0.2s ease !important;
    z-index: 1000000 !important;
}

.ac-drawer-close:hover {
    opacity: 0.7 !important;
}

/* Contenedor del Drawer */
.ac-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Logo del Drawer */
.ac-drawer-logo-wrap {
    margin-bottom: 25px;
    flex-shrink: 0;
    display: block;
}

.ac-drawer-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Título del Catálogo */
.ac-drawer-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff !important;
    line-height: 1.3;
    margin: 0 0 16px 0;
}

.ac-drawer-title-accent {
    font-weight: 600;
    display: block;
}

/* Descripción */
.ac-drawer-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #aaaaaa;
    line-height: 1.6;
    margin: 0 0 35px 0;
}

/* Estilización Premium de Contact Form 7 dentro del Drawer */
.ac-drawer-form-wrap {
    flex: 1;
}

.ac-drawer-form-wrap form {
    display: flex;
    flex-direction: column;
}

.ac-drawer-form-wrap p {
    margin-bottom: 20px !important;
    width: 100%;
}

/* Inputs de texto minimalistas */
.ac-drawer-form-wrap input[type="text"],
.ac-drawer-form-wrap input[type="email"],
.ac-drawer-form-wrap input[type="tel"],
.ac-drawer-form-wrap select,
.ac-drawer-form-wrap textarea {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    width: 100% !important;
    padding: 12px 4px !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    transition: border-bottom-color 0.3s ease !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ac-drawer-form-wrap input[type="text"]:focus,
.ac-drawer-form-wrap input[type="email"]:focus,
.ac-drawer-form-wrap input[type="tel"]:focus,
.ac-drawer-form-wrap select:focus,
.ac-drawer-form-wrap textarea:focus {
    border-bottom: 1px solid #ffffff !important;
    outline: none !important;
}

/* Estilo del botón enviar formulario (CF7 submit) */
.ac-drawer-form-wrap input[type="submit"] {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    padding: 16px 36px !important;
    width: 100% !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 15px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}

.ac-drawer-form-wrap input[type="submit"]:hover {
    background: #ffffff !important;
    color: #0d0d0d !important;
}

/* Mensajes de validación y respuesta de CF7 */
.ac-drawer-form-wrap .wpcf7-not-valid-tip {
    font-family: 'Montserrat', sans-serif;
    color: #ff6b6b !important;
    font-size: 11px !important;
    margin-top: 5px !important;
    letter-spacing: 0.5px;
}

.ac-drawer-form-wrap .wpcf7-response-output {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    padding: 14px !important;
    margin: 20px 0 0 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

/* Éxito: Fondo verde bosque oscuro + Texto verde claro pastel */
.ac-drawer-form-wrap .wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #123524 !important;
    border: 1px solid #205c3f !important;
    color: #bbf7d0 !important;
}

/* Errores: Fondo rojo vino oscuro + Texto rojo claro pastel */
.ac-drawer-form-wrap .wpcf7-response-output.wpcf7-validation-errors,
.ac-drawer-form-wrap .wpcf7-response-output.wpcf7-mail-sent-ng {
    background-color: #3b1111 !important;
    border: 1px solid #5a1c1c !important;
    color: #fecaca !important;
}

/* Ocultar etiquetas predeterminadas de CF7 si es necesario */
.ac-drawer-form-wrap label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

