/* CSS Premium para el Portal de Socios Cobreloa */
:root {
    --cobreloa-orange: #FF6600;
    --cobreloa-orange-dark: #cc5200;
    --cobreloa-black: #1a1a1a;
    --cobreloa-white: #ffffff;
}

.cobreloa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.4s ease-out;
}

.cobreloa-modal-content {
    background: var(--cobreloa-white);
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0));
}

.modal-inner {
    padding: 40px;
    position: relative;
    z-index: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-logo {
    max-width: 90px;
    margin-bottom: 20px;
    height: 56px !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.modal-inner h2 {
    color: var(--cobreloa-black);
    font-size: 28px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.orange-divider {
    width: 50px;
    height: 4px;
    background: var(--cobreloa-orange);
    margin: 15px auto 0;
    border-radius: 2px;
}

.modal-lead {
    text-align: center;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.socio-form-container {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 20px;
}

.input-wrapper {
    margin-bottom: 20px;
    text-align: left;
}

.input-wrapper label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--cobreloa-black);
    margin-bottom: 8px;
    padding-left: 5px;
}

#socio-rut {
    width: 100%;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s;
    background: #fff;
    color: var(--cobreloa-black);
    text-align: left;
}

#socio-rut:focus {
    border-color: var(--cobreloa-orange);
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
    outline: none;
}

.cobreloa-btn-primary {
    width: 100%;
    padding: 18px;
    background: var(--cobreloa-orange);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cobreloa-btn-primary:hover {
    background: var(--cobreloa-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.2);
}

.cobreloa-btn-primary:active {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
}

.link-secondary {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.link-secondary:hover {
    color: var(--cobreloa-orange);
}

/* Floating Action Button */
.cobreloa-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--cobreloa-orange);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cobreloa-fab img {
    width: 24px;
    filter: brightness(0) invert(1);
}

.cobreloa-fab span {
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cobreloa-fab:hover {
    transform: scale(1.05) translateY(-5px);
    background: var(--cobreloa-orange-dark);
}

.cobreloa-fab.hide {
    transform: translateX(200px);
    opacity: 0;
}

.cobreloa-fab.is-hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Response */
@media (max-width: 480px) {
    .modal-inner {
        padding: 30px 20px;
    }

    .cobreloa-fab span {
        display: none;
    }

    .cobreloa-fab {
        border-radius: 50%;
        padding: 15px;
    }
}
