﻿/* ============================
   PIACORE COLOR PALETTE
   ============================ */

:root {
    --piacore-blue: #007ACC;
    --piacore-pink: #F1487F;
    --piacore-black: #2D2A30;
    --piacore-white: #ffffff;
    --piacore-gray: #f5f5f5;
    --piacore-overlay: rgba(45, 42, 48, 0.55);
}

/* ============================
   GLOBAL BASE SETTINGS
   ============================ */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--piacore-blue);
}

/* ============================
   PIACORE HEADER
   ============================ */

.piacore-header {
    background: var(--piacore-black);
    color: var(--piacore-white);
    height: 80px;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--piacore-blue);
}

.piacore-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.piacore-header-logo {
    height: 48px;
}

.piacore-header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--piacore-white);
}

.piacore-header-right a {
    background: var(--piacore-blue);
    color: var(--piacore-white);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

    .piacore-header-right a:hover {
        background: var(--piacore-pink);
    }

/* ============================
   PIACORE LANDING
   ============================ */

/* Full width */
.landing-wrapper {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Hero full screen */
/*.hero-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);*/ /* Header PIACore */
    /*overflow: hidden;
}*/

.hero-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 40px); /* Video más grande, footer más arriba */
    overflow: hidden;
}


/* Video */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    z-index: 0;
}

/* Overlay PIACore */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--piacore-overlay);
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Contenido centrado */
.hero-content {
    position: relative;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: var(--piacore-white);
}

/* Logo principal */
.hero-logo {
    width: 260px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 12px rgba(0, 122, 204, 0.45));
}

/* Logo secundario */
.hero-logo-small {
    width: 180px;
    margin-top: 10px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
}

/* Subtítulos */
/*.hero-subtitle {
    font-size: 22px;
    font-weight: 500;
    color: var(--piacore-blue);
    opacity: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}*/

.hero-subtitle {
    font-size: 36px; /* más grande */
    font-weight: 700; /* más fuerte */
    letter-spacing: 1px; /* más elegante */
    color: var(--piacore-blue);
    opacity: 1;
    text-shadow: 0 3px 8px rgba(0,0,0,0.45);
}


/* ============================
   ANIMACIONES PIACORE
   ============================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1.6s ease-out forwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1.9s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1.4s ease-out forwards;
}

/* ============================
   BOTÓN ENTER PLATFORM
   ============================ */

.enter-btn {
    display: inline-block;
    margin-top: 35px;
    padding: 14px 42px;
    font-size: 20px;
    font-weight: 600;
    color: var(--piacore-white);
    text-decoration: none;
    border-radius: 14px;
    background: var(--piacore-blue);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 122, 204, 0.35);
    transition: all 0.35s ease;
}

    .enter-btn:hover {
        background: var(--piacore-pink);
        transform: translateY(-4px);
        box-shadow: 0 6px 26px rgba(0, 0, 0, 0.45), 0 0 18px rgba(241, 72, 127, 0.45);
    }

/* ============================
   MISC
   ============================ */

.header-logo {
    height: 60px;
}

/* ============================
   PIACORE FOOTER
   ============================ */

.piacore-footer {
    background: var(--piacore-black);
    color: var(--piacore-white);
    padding: 22px 0;
    text-align: center;
    font-size: 9px;
    border-top: 2px solid var(--piacore-blue);
    margin-top: 10px;
}

.piacore-footer a {
    color: var(--piacore-blue);
    text-decoration: none;
    font-weight: 600;
}

.piacore-footer a:hover {
    color: var(--piacore-pink);
}

@keyframes subtitleGlow {
    0% {
        text-shadow: 0 3px 8px rgba(0,0,0,0.45);
    }

    50% {
        text-shadow: 0 4px 14px rgba(0,122,204,0.55);
    }

    100% {
        text-shadow: 0 3px 8px rgba(0,0,0,0.45);
    }
}

.hero-subtitle-animated {
    animation: subtitleGlow 3s ease-in-out infinite;
}

/* ============================
   PIACORE LOGIN
   ============================ */

.login-card {
    background: rgba(45, 42, 48, 0.55); /* negro PIACore con transparencia */
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 32px;
    max-width: 350px;
    margin: 0 auto;
    box-shadow: 0 6px 26px rgba(0,0,0,0.45);
    color: var(--piacore-white);
}

    /* Título */
    .login-card h3 {
        color: var(--piacore-white);
        font-weight: 700;
    }

    /* Labels */
    .login-card label {
        font-weight: 600;
        color: var(--piacore-white);
    }

    /* Inputs */
    .login-card input {
        background: rgba(255,255,255,0.18);
        border: 1px solid rgba(255,255,255,0.35);
        color: var(--piacore-white);
        border-radius: 10px;
    }

        .login-card input::placeholder {
            color: rgba(255,255,255,0.75);
        }

/* Contenedor que centra los botones */
.login-actions {
    text-align: center;
    margin-top: 10px;
}

/* Botón Enter */
.login-btn {
    background: var(--piacore-blue);
    color: var(--piacore-white);
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 26px; /* tamaño pequeño */
    display: inline-block; /* evita que se estire */
    text-align: center;
    transition: 0.3s ease;
    border: none;
    margin: 6px; /* separación entre botones */
}

    .login-btn:hover {
        background: var(--piacore-pink);
        transform: translateY(-3px);
    }

/* Botón Cancel */
.cancel-btn {
    background: var(--piacore-blue);
    color: var(--piacore-white);
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 26px; /* tamaño pequeño */
    display: inline-block; /* evita que se estire */
    text-align: center;
    transition: 0.3s ease;
    border: none;
    margin: 6px;
}

    .cancel-btn:hover {
        background: var(--piacore-pink);
        color: var(--piacore-white);
        transform: translateY(-3px);
    }


/* ============================
   PIACORE TABLE STYLE TABLES
   ============================ */

.piacore-table thead th a {
    color: var(--piacore-pink);
    text-decoration: none;
    font-weight: 700;
}

    .piacore-table thead th a:hover {
        color: var(--piacore-blue);
    }


.piacore-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

    .piacore-table thead th {
        background: rgba(45, 42, 48, 0.65);
        color: var(--piacore-pink);
        padding: 12px;
        font-weight: 700;
        border: none;
        text-align: left;
        cursor: pointer;
        transition: 0.2s ease;
    }

        .piacore-table thead th:hover {
            color: var(--piacore-pink);
        }

    .piacore-table tbody tr {
        background: rgba(255,255,255,0.12);
        backdrop-filter: blur(6px);
        border-radius: 12px;
        transition: 0.25s ease;
    }

        .piacore-table tbody tr:hover {
            background: rgba(255,255,255,0.22);
            transform: scale(1.01);
        }

    .piacore-table tbody td {
        padding: 12px;
        color: var(--piacore-blue);
        border: none;
    }

/* Botones de acción dentro de la tabla */
.table-action-btn {
    background: var(--piacore-blue);
    color: var(--piacore-white);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

    .table-action-btn:hover {
        background: var(--piacore-pink);
        transform: translateY(-2px);
    }

/* ============================
   PAGINATION PIACORE
   ============================ */

.piacore-pagination .page-link {
    background: rgba(255,255,255,0.18);
    color: var(--piacore-white);
    border: none;
    margin: 0 4px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.piacore-pagination .page-link:hover {
    background: var(--piacore-blue);
    color: var(--piacore-white);
}

.piacore-pagination .active .page-link {
    background: var(--piacore-pink);
    color: var(--piacore-white);
    border: none;
}


/* Filas intercaladas PIACore */
table.piacore-table tbody tr:nth-child(odd) {
    background-color: #ffffff; /* blanco */
}

table.piacore-table tbody tr:nth-child(even) {
    background-color: rgba(45,42,48,0.08); /* gris glass suave */
}

/* Header azul PIACore */
table.piacore-table thead th {
    background: #1A73E8; /* Azul corporativo PIACore */
    color: white;
    font-weight: 700;
    padding: 14px;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}


/* ============================
   PIACORE EDIT FORM STYLE
   ============================ */

/* Header del card para EDIT (amarillo PIACore) */
.piacore-card-header-warning {
    background: var(--piacore-pink);
    color: var(--piacore-white);
    border-bottom: 2px solid var(--piacore-blue);
}

/* Inputs PIACore */
.piacore-input {
    border-radius: 10px;
    border: 1px solid var(--piacore-blue);
    padding: 10px;
}

    .piacore-input:focus {
        border-color: var(--piacore-pink);
        box-shadow: 0 0 6px rgba(241, 72, 127, 0.45);
    }

/* Botón Save estilo PIACore Warning */
.piacore-btn-warning {
    background: var(--piacore-pink);
    color: var(--piacore-white);
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 600;
    border: none;
    transition: 0.3s ease;
}

    .piacore-btn-warning:hover {
        background: var(--piacore-blue);
        transform: translateY(-2px);
    }

/* Botón Cancel */
.piacore-btn-secondary {
    background: var(--piacore-black);
    color: var(--piacore-white);
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 600;
    border: none;
    transition: 0.3s ease;
}

    .piacore-btn-secondary:hover {
        background: var(--piacore-pink);
        transform: translateY(-2px);
    }

/* ============================
   PIACORE BUTTONS (CREATE/EDIT)
   ============================ */

.piacore-btn {
    background: var(--piacore-blue);
    color: var(--piacore-white);
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 600;
    border: none;
    transition: 0.3s ease;
}

    .piacore-btn:hover {
        background: var(--piacore-pink);
        transform: translateY(-2px);
    }

.piacore-btn-secondary {
    background: var(--piacore-black);
    color: var(--piacore-white);
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 600;
    border: none;
    transition: 0.3s ease;
}

    .piacore-btn-secondary:hover {
        background: var(--piacore-pink);
        transform: translateY(-2px);
    }

/* ============================
   PIACORE DELETE STYLE
   ============================ */

/* Header del card para DELETE */
.piacore-card-header-danger {
    background: var(--piacore-pink);
    color: var(--piacore-white);
    border-bottom: 2px solid var(--piacore-blue);
}

/* Texto del item a eliminar */
.piacore-delete-text {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--piacore-blue);
    font-weight: 600;
}

/* Botón Delete */
.piacore-btn-danger {
    background: var(--piacore-blue);
    color: var(--piacore-white);
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 600;
    border: none;
    transition: 0.3s ease;
}

    .piacore-btn-danger:hover {
        background: var(--piacore-pink);
        transform: translateY(-2px);
    }

/* Botón Cancel (ya lo usas en Create/Edit) */
.piacore-btn-secondary {
    background: var(--piacore-black);
    color: var(--piacore-white);
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 600;
    border: none;
    transition: 0.3s ease;
}

    .piacore-btn-secondary:hover {
        background: var(--piacore-pink);
        transform: translateY(-2px);
    }

/* ============================
   PIACORE MODAL STYLE
   ============================ */

.piacore-modal {
    background: rgba(45, 42, 48, 0.65);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    color: var(--piacore-white);
    border: 1px solid var(--piacore-blue);
}

.piacore-modal-header {
    background: var(--piacore-blue);
    color: var(--piacore-white);
    border-bottom: 2px solid var(--piacore-pink);
    border-radius: 14px 14px 0 0;
}

.piacore-modal-item {
    background: rgba(255,255,255,0.12);
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--piacore-blue);
    backdrop-filter: blur(6px);
}

/* Botón Delete */
.piacore-btn-danger {
    background: var(--piacore-blue);
    color: var(--piacore-white);
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 600;
    border: none;
    transition: 0.3s ease;
}

    .piacore-btn-danger:hover {
        background: var(--piacore-pink);
        transform: translateY(-2px);
    }

/* Botón Cancel */
.piacore-btn-secondary {
    background: var(--piacore-black);
    color: var(--piacore-white);
    border-radius: 10px;
    padding: 8px 22px;
    font-weight: 600;
    border: none;
    transition: 0.3s ease;
}

    .piacore-btn-secondary:hover {
        background: var(--piacore-pink);
        transform: translateY(-2px);
    }
/* ============================
   PIACORE DARK CARD (MATCH DELETE MODAL)
   ============================ */

.piacore-card-dark {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--piacore-blue);
    color: var(--piacore-white);
}

.piacore-table thead th a {
    color: var(--piacore-white); /* Blanco como Actions */
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s ease;
}

    .piacore-table thead th a:hover {
        color: var(--piacore-pink); /* Rosa al pasar el mouse */
    }

.no-gap {
    margin: 0 !important;
    padding: 0 !important;
}

/* Estilo base del card */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
}

    /* Hover premium PIACore */
    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(255, 0, 128, 0.3); /* Rosa PIACore */
        border: 1px solid rgba(255, 0, 128, 0.4);
    }

    /* Botón dentro del card */
    .card .btn-primary {
        background-color: #007bff; /* azul base */
        border-color: #007bff;
        transition: 0.3s ease;
    }

    /* Botón rosa PIACore cuando el card está en hover */
    .card:hover .btn-primary {
        background-color: #ff0080; /* rosa PIACore */
        border-color: #ff0080;
        transform: translateY(-3px);
    }

.card .btn-primary,
.card .btn-primary:hover,
.card .btn-primary:focus,
.card .btn-primary:active {
    color: white !important;
}

.card-title,
.card-text {
    color: #007bff !important;
}



/*PIACore Loader param botones*/
.piacore-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .piacore-loader img {
        width: 18px;
        height: 18px;
        animation: spin 1s linear infinite;
        filter: drop-shadow(0 0 2px #4da3ff);
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
