html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html, body {
    height: 100%;
    margin: 0;
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    min-height: 100vh;
    background-image: url('/images/fondo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; 
    background-attachment: fixed; 
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* PAGE HEADER */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .page-header h1 {
        font-size: 24px;
        font-weight: 700;
    }

/* CARD */
.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* TABLE */
.corp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .corp-table thead {
        background: #f1f5f9;
    }

    .corp-table th {
        text-align: left;
        padding: 14px;
        font-weight: 600;
        color: #334155;
        border-bottom: 1px solid #e5e7eb;
    }

    .corp-table td {
        padding: 14px;
        border-bottom: 1px solid #e5e7eb;
    }

    .corp-table tbody tr:hover {
        background: #f8fafc;
    }

/* BADGES */
.badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-ok {
    background: #dcfce7;
    color: #166534;
}

.badge-off {
    background: #fee2e2;
    color: #991b1b;
}
.badge-c {
    background: #baf5c2;
    color: #138022;
}
.badge-s {
    background: #d8de66;
    color: #0a0a0a;
}
.badge-p {
    background: #74f76f;
    color: #0a0a0a;
}

/* ACTIONS */
.actions {
    white-space: nowrap;
}

.link {
    margin-right: 8px;
    text-decoration: none;
    font-weight: 600;
}

    .link.edit {
        color: #2563eb;
    }

    .link.view {
        color: #0f766e;
    }

    .link.delete {
        color: #dc2626;
    }

/* BUTTON */
.btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    background: #1b6ec2;
    color: white;
}

    .btn-primary:hover {
        background: #1558a6;
    }
.actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

    .icon-btn.create {
        background: #8ec4e8;
        color: #0eebe7;
    }

        .icon-btn.create:hover {
            background: #f5f8fa;
        }
    /* EDIT */
    .icon-btn.edit {
        background: #e0f2fe;
        color: #0369a1;
    }

        .icon-btn.edit:hover {
            background: #bae6fd;
        }

    /* VIEW */
    .icon-btn.view {
        background: #ecfeff;
        color: #0f766e;
    }

        .icon-btn.view:hover {
            background: #cffafe;
        }

    /* DELETE */
    .icon-btn.delete {
        background: #fee2e2;
        color: #991b1b;
    }

        .icon-btn.delete:hover {
            background: #fecaca;
        }
    .icon-btn.pedidos {
        background: #bbf7d0; /* verde pastel suave */
        color: #166534; /* verde oscuro para contraste */
    }

        .icon-btn.pedidos:hover {
            background: #86efac; /* verde un poco más intenso al pasar el mouse */
        }

.btn-create {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

    .btn-create:hover {
        background: #bae6fd;
        transform: translateY(-1px);
    }

.btn-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(3, 105, 161, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.btn-text {
    white-space: nowrap;
}

.btn-svg {
    width: 18px;
    height: 18px;
}

.table-head th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 600px) {

    table thead {
        display: none;
    }

    table, tbody, tr, td {
        display: block;
        width: 100%;
    }

        tbody tr {
            background: #ffffff;
            border-radius: 14px;
            padding: 16px;
            margin-bottom: 16px;
            box-shadow: 0 8px 20px rgba(0,0,0,.08);
        }

    td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        font-size: 14px;
    }

        td::before {
            content: attr(data-label);
            font-weight: 600;
            color: #64748b;
        }

    .actions {
        justify-content: flex-start;
        gap: 12px;
        margin-top: 10px;
    }
}
.table-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

    .table-toolbar input,
    .table-toolbar select {
        padding: 10px 14px;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        font-size: 14px;
    }

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 14px;
    border-radius: 10px;
    background: #f1f5f9;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

    .page-btn:hover:not(.active):not(.disabled) {
        background: #e2e8f0;
    }

    .page-btn.active {
        background: #e0f2fe;
        color: #0369a1;
    }

    .page-btn.disabled {
        background: #f1f5f9;
        color: #94a3b8;
        cursor: not-allowed;
    }
.page-banner {
    width: 100%;
    height: 200px; /* altura ajustable */
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 14px 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); /* mejora legibilidad del texto */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 14px 14px;
}

.banner-content {
    color: #ffffff;
    text-align: center;
    padding: 0 24px;
}

    .banner-content h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .banner-content p {
        font-size: 16px;
    }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .page-banner {
        height: 160px;
    }

    .banner-content h2 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .page-banner {
        height: 120px;
    }

    .banner-content h2 {
        font-size: 20px;
    }

    .banner-content p {
        font-size: 13px;
    }
}
.btn-banner {
    margin-top: 12px;
    padding: 10px 18px;
    background: #1b6ec2;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .btn-banner:hover {
        background: #1558a6;
    }

.page-background {
    position: relative;
    min-height: 100vh; /* toda la altura de la pantalla */
    background-color: #f9fafb; /* color base suave */
    overflow: hidden;
    background-repeat: repeat;
    background-size: 150px;
}

.page-background {
    position: relative;
    min-height: 100vh;
    background-color: #f9fafb; /* color base suave */
    background-image: url('/images/icon-mosaic.svg'); /* tu SVG mosaico */
    background-repeat: repeat; /* repite en todo el fondo */
    background-position: center;
    background-size: 80px 80px; /* tamaño de cada “celda” del mosaico */
    overflow: hidden;
}

.main-content {
    position: relative;
    z-index: 1; /* asegura que el contenido esté por encima del fondo */
    padding: 24px 0; /* opcional, espacio arriba y abajo */
}

.footer {
    background-color: rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    inset: 0;
    background-image: url('/images/logocertium.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 180px;
    opacity: 0.09;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

/* Card del formulario */
.cliente-card {
    background-color: rgba(20, 20, 20, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Inputs estilo oscuro */
.form-control-dark {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
}

    .form-control-dark:focus {
        background-color: rgba(255,255,255,0.08);
        border-color: #0dcaf0;
        box-shadow: 0 0 0 0.15rem rgba(13,202,240,.25);
        color: #ffffff;
    }

/* Labels blancas y suaves */
.form-label {
    font-weight: 500;
    color: #f1f1f1;
}

/* HR suave */
hr {
    opacity: 0.2;
}

/* Botón primario suave */
.btn-info {
    color: #000;
    font-weight: 500;
}

.ventana-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    transition: all 0.2s ease-in-out;
}

    .btn:hover {
        transform: translateY(-1px);
    }

html, body {
    height: 100%;
    margin: 0;
}

/* Layout vertical */
.layout-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* El contenido empuja el footer */
.layout-content {
    flex: 1;
}

dl.row dt {
    color: #ffffff; /* Labels en blanco */
    font-weight: 600; /* Un poco más fuerte */
    margin-bottom: 0.25rem;
}

dl.row dd {
    color: #cccccc; /* Texto más suave */
    margin-bottom: 0;
}

dl.row div {
    background-color: rgba(255,255,255,0.05); /* Fondo suave de cada bloque */
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

/* Carousel base */
.carousel-dark-custom {
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 16px;
}

/* Imagen */
.carousel-img {
    height: 420px;
    object-fit: cover;
    filter: brightness(0.75);
}

/* Caption */
.carousel-caption {
    background: linear-gradient( to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1) );
    border-radius: 12px;
    padding: 1rem;
}

    .carousel-caption h5 {
        color: #0dcaf0;
        font-weight: 600;
    }

    .carousel-caption p {
        color: #e0e0e0;
        margin-bottom: 0;
    }

/* Indicadores */
.carousel-indicators [data-bs-target] {
    background-color: #0dcaf0;
}

/* Controles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

.carousel-inner:hover img {
    filter: brightness(0.9);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .carousel-img {
        height: 260px;
    }

    .carousel-caption {
        font-size: 0.9rem;
    }
}

/* Card base */
.product-card {
    background: linear-gradient(180deg, #0b1c2d, #0f2a44);
    border-radius: 16px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    transition: transform .3s ease, box-shadow .3s ease;
}

    /* Imagen */
.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.6));
}

    /* Contenido */
    .product-card .card-body {
        padding: 1rem;
        text-align: center;
    }

.product-body h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-body p {
    color: #b6c8da;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

    /* Hover */
    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0,0,0,.45);
    }

        .product-card:hover img {
            filter: brightness(1);
        }

.product-image {
    background: #081622;
    border-radius: 12px;
    padding: 14px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .product-image {
        height: 150px;
    }
}

/* Controles */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* SECCIÓN */
.beneficios-section {
    background-color: #0b1d2a; /* azul oscuro elegante */
    padding: 5rem 0;
}

/* TÍTULOS */
.beneficios-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.beneficios-subtitle {
    color: #b8c7d6;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* DIVIDER */
.beneficios-divider {
    border-color: rgba(255,255,255,0.15);
    margin: 3rem 0;
}

/* CARD */
.beneficio-card {
    background-color: rgba(255,255,255,0.04);
    border-radius: 18px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

    .beneficio-card:hover {
        background-color: rgba(13,202,240,0.08);
        transform: translateY(-6px);
    }

/* ICONO */
.beneficio-icon {
    width: 52px;
    height: 52px;
    background-color: rgba(255,255,255,0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

    .beneficio-icon i {
        font-size: 1.4rem;
        color: #0dcaf0;
    }

/* TEXTO */
.beneficio-card h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.beneficio-card p {
    color: #c6d4e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-dark {
    background: linear-gradient(135deg, #041c2c, #062f46);
    color: #dce7ee;
    font-size: 0.95rem;
}

.footer-title {
    color: #6fd3ff;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

    .footer-title::before {
        content: "";
        width: 40px;
        height: 3px;
        background: #00c3ff;
        position: absolute;
        bottom: -6px;
        left: 0;
    }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: #cfe6f1;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer-links a:hover {
            color: #00c3ff;
            padding-left: 5px;
        }

.footer-text {
    color: #cfe6f1;
    line-height: 1.6;
}

.map-container {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.3);
}

    .map-container iframe {
        width: 100%;
        height: 200px;
        border: 0;
    }

.newsletter-form input {
    border-radius: 6px;
    border: none;
}

.newsletter-form button {
    border-radius: 6px;
    font-weight: 600;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 1rem 0;
    font-size: 0.85rem;
}

.social-icons a {
    color: #cfe6f1;
    margin-left: 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

    .social-icons a:hover {
        color: #00c3ff;
    }

/* Responsive tweaks */
@media (max-width: 768px) {
    .footer-title {
        margin-top: 1.5rem;
    }

    .map-container iframe {
        height: 180px;
    }
}

/* ===== NAVBAR CORPORATIVA ===== */
.navbar-corporate {
    background: linear-gradient(135deg, #041c2c, #062f46);
    padding: 0.8rem 1.2rem;
}

    .navbar-corporate .navbar-brand {
        color: #6fd3ff;
        letter-spacing: 0.5px;
    }

        .navbar-corporate .navbar-brand:hover {
            color: #9be3ff;
        }

    /* Links */
    .navbar-corporate .nav-link {
        color: #cfe6f1;
        padding: 0.55rem 0.9rem;
        border-radius: 6px;
        font-weight: 500;
        transition: all 0.25s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .navbar-corporate .nav-link i {
            font-size: 1.05rem;
        }

        /* Hover / Active */
        .navbar-corporate .nav-link:hover,
        .navbar-corporate .nav-link.active {
            background: rgba(0, 195, 255, 0.15);
            color: #00c3ff;
        }

    /* Mobile */
    .navbar-corporate .navbar-toggler {
        border: none;
    }

        .navbar-corporate .navbar-toggler:focus {
            box-shadow: none;
        }

@media (max-width: 991px) {
    .navbar-corporate .navbar-nav {
        background: rgba(0, 0, 0, 0.25);
        padding: 0.8rem;
        border-radius: 10px;
    }
}

/* =========================
   CARD CONTENEDORA
   ========================= */
.card {
    background: rgba(255, 255, 255, 0.08); /* transparencia elegante */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow-x: auto; /* responsive */
}

/* =========================
   TABLA CORPORATIVA
   ========================= */
.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
    color: #e6edf3;
    font-size: 0.9rem;
}

    /* CABECERA */
    .table thead {
        background: rgba(15, 35, 75, 0.9);
    }

        .table thead th {
            padding: 0.9rem;
            text-align: left;
            font-weight: 600;
            letter-spacing: 0.3px;
            color: #dbeafe;
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
            white-space: nowrap;
        }

    /* CUERPO */
    .table tbody tr {
        transition: background 0.25s ease;
    }

        .table tbody tr:hover {
            background: rgba(255, 255, 255, 0.06);
        }

    .table tbody td {
        padding: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        white-space: nowrap;
    }

/* =========================
   BADGES DE ESTADO
   ========================= */
.badge {
    padding: 0.35em 0.65em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-ok {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-off {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* =========================
   COLUMNA ACCIONES
   ========================= */
.actions {
    text-align: center;
}

/* =========================
   PAGINACIÓN
   ========================= */
.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 1rem;
}

.page-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #c7d2fe;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

    .page-btn:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .page-btn.active {
        background: rgba(59, 130, 246, 0.35);
        color: #eff6ff;
        border-color: rgba(59, 130, 246, 0.6);
    }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px) {
    .table {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .card {
        padding: 0.75rem;
    }
}

.card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: #e6edf3;
    min-width: 850px;
}

    .table thead {
        background: rgba(15,35,75,0.9);
    }

        .table thead th {
            padding: 0.9rem;
            color: #dbeafe;
            border-bottom: 1px solid rgba(255,255,255,0.15);
        }

    .table tbody td {
        padding: 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

.badge-ok {
    background: rgba(16,185,129,0.15);
    color: #34d399;
    border-radius: 999px;
    padding: 0.35em 0.65em;
}

.badge-off {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border-radius: 999px;
    padding: 0.35em 0.65em;
}

.page-btn {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #c7d2fe;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    margin-right: 0.3rem;
    text-decoration: none;
}

    .page-btn.active {
        background: rgba(59,130,246,0.35);
        color: #eff6ff;
        border-color: rgba(59,130,246,0.6);
    }

.highlight {
    background-color: rgba(59,130,246,0.35);
    color: #fff;
}

.cards-container {
    display: none;
}

    .cards-container .card-item {
        background: rgba(255,255,255,0.08);
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

        .cards-container .card-item p {
            margin: 0.25rem 0;
        }

/* Mobile */
@media (max-width: 768px) {
    .table {
        display: none;
    }

    .cards-container {
        display: block;
        max-height: 80vh;
        overflow-y: auto;
    }
        .cards-container,
        .cards-container .card-item,
        .cards-container .card-item p,
        .cards-container .card-item strong,
        .cards-container .actions {
            color: #f9fafb; /* blanco limpio */
        }
}

/*////////////////////////////////////////////*/
/* CARD GENERAL */
.password-card {
    background: rgba(15,23,42,0.75); /* un poco más transparente */
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    max-width: 450px;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    backdrop-filter: blur(6px); /* efecto cristal corporativo */
}

/* Label y hint */
.form-label-corporate {
    color: rgba(249,250,251,0.95); /* blanco ligeramente translúcido */
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.form-hint {
    font-size: 0.75rem;
    color: rgba(249,250,251,0.75); /* más translúcido */
    margin-top: 0.15rem;
}

/* Input dentro del card - transparente */
.form-control-corporate {
    width: 100%;
    background: rgba(15,23,42,0.6); /* transparente */
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 10px;
    padding: 0.65rem 2.6rem 0.65rem 0.75rem;
    color: rgba(249,250,251,0.95); /* texto ligeramente translúcido */
    -webkit-text-fill-color: rgba(249,250,251,0.95); /* puntos del password */
    transition: all 0.2s ease;
}

    .form-control-corporate::placeholder {
        color: rgba(249,250,251,0.6); /* placeholder translúcido */
    }

    .form-control-corporate:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.35);
        background: rgba(15,23,42,0.75);
    }

/* Toggle password */
.toggle-password {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(148,163,184,0.8); /* ligeramente translúcido */
    cursor: pointer;
    font-size: 1.1rem;
}

    .toggle-password:hover {
        color: rgba(249,250,251,0.95);
    }

/* Barra de fortaleza */
.password-strength {
    margin-top: 0.4rem;
    height: 5px;
    background: rgba(148,163,184,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.25s ease, background 0.25s ease;
}

.strength-weak {
    background: rgba(239,68,68,0.85);
}

.strength-medium {
    background: rgba(245,158,11,0.85);
}

.strength-strong {
    background: rgba(34,197,94,0.85);
}

/* Autofill / gestor de contraseña */
input.form-control-corporate:-webkit-autofill {
    -webkit-text-fill-color: rgba(249,250,251,0.95) !important;
    background-color: rgba(15,23,42,0.6) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Error */
.input-validation-error {
    border-color: #ef4444 !important;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center; /* asegura que el botón esté centrado verticalmente */
}

.toggle-password {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%); /* centra exactamente */
    background: transparent;
    border: none;
    color: rgba(148,163,184,0.8);
    cursor: pointer;
    font-size: 1.1rem;
    height: 100%; /* asegura que ocupe toda la altura del input */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-password:hover {
        color: rgba(249,250,251,0.95);
    }

/* Placeholder default */
#searchInput::placeholder {
    color: #ffffff; /* blanco por defecto */
}

/* Placeholder cuando está deshabilitado */
#searchInput:disabled::placeholder {
    color: #ffffff; /* siempre blanco cuando disabled */
}

/* Input activo (si quieres texto negro al activar) */
#searchInput.active-placeholder::placeholder {
    color: #111827; /* negro corporativo */
}

.btn-disabled:disabled {
    border: 2px solid #fff;
    color: #fff;
    opacity: 0.6;
}

    .btn-disabled:disabled i {
        color: #fff;
    }

.badge-ok {
    background-color: #c6f5f1; /* agua */
    color: #212529;
    padding: 0.4em 0.6em;
    border-radius: 0.375rem;
    font-size: 0.75rem;
}

.imagen-card {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .imagen-card {
        max-height: 260px;
    }
}

@media (max-width: 767px) {
    .imagen-card {
        max-height: 180px;
    }
}

.imagen-card1 {
    width: 100%; /* Usa todo el ancho del contenedor */
    max-width: 480px; /* Tamaño máximo en desktop */
    height: auto; /* Mantiene proporción */
    margin: 0 auto; /* Centrada */
    display: block;
    border-radius: 16px; /* Opcional: bordes suaves */
}
@media (min-width: 992px) {
    .imagen-card1 {
        max-width: 580px;
    }
}

.form-select.bg-dark {
    background-color: #1e1e2f;
    color: #fff;
}

    .form-select.bg-dark:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, .25);
    }

.input-group-text {
    border-right: 0;
}

.form-select {
    border-left: 0;
}

.td-multiline {
    max-width: 250px;
    overflow: hidden;
}

    .td-multiline .truncate {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
.td-justify {
    max-width: 250px; /* límite horizontal */
    white-space: normal; /* permite salto de línea */
    word-break: break-word; /* corta palabras largas */
    text-align: justify; /* justificado */
    vertical-align: middle; /* alineación vertical */
}

.table-glass {
    background: rgba(15, 25, 45, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

    /* Quitar fondo blanco por defecto */
    .table-glass table {
        background: transparent;
    }

    /* Filas */
    .table-glass tbody tr {
        background: rgba(255, 255, 255, 0.02);
    }

        /* Hover elegante */
        .table-glass tbody tr:hover {
            background: rgba(255, 255, 255, 0.08);
        }

    /* Cabecera */
    .table-glass thead {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Celdas */
    .table-glass th,
    .table-glass td {
        background: transparent;
        color: #eaeef5;
        border-color: rgba(255, 255, 255, 0.08);
    }

td-actions {
    vertical-align: middle; /* CLAVE */
    min-height: 100%;
}

.btn-group-align {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
}

textarea {
    resize: vertical; /* vertical | none | both */
}

.btn-disabledc {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.table-fixed {
    table-layout: fixed;
}

    .table-fixed td,
    .table-fixed th {
        vertical-align: middle;
    }

.descripcion-caracteristicas .linea {
    font-size: 14px;
    margin-bottom: 6px;
}

/*.badge-recomendado {
    position: relative;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    background-color: #28a745;
    color: #fff;
    z-index: 10;
    width: 140px; 
    white-space: nowrap;
}*/

.badge-wrapper {
    position: relative;
    top: 4px;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.badge-recomendado {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    background-color: #28a745;
    color: #fff;
    white-space: nowrap;
}

.steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 40px auto;
}

    .steps-wrapper::before {
        content: "";
        position: absolute;
        top: 14px;
        left: 0;
        right: 0;
        height: 2px;
        background: #e0e0e0;
        z-index: 1;
    }

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.step-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto;
}

.step.active .step-circle {
    background: #32fc2b; /* verde activo */
}

.step.completed .step-circle {
    background: #198754; /* verde completado */
}

.step-label {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    color: #e0e0e0;
}

.step-text {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    color: #e0e0e0;
}

.step.active .step-label,
.step.active .step-text {
    color: #32fc2b;
}
@media (max-width: 576px) {
    .step-text {
        display: none;
    }
}

.selectable-card {
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    transform-origin: center center;
}

    .selectable-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    }

    .selectable-card.selected {
        border: 5px solid #28a745;
        box-shadow: 0 0 0 7px rgba(40,167,69,0.4);
        transform: scale(1.02);
    }
#productosCards .carousel-inner {
    padding-top: 15px;
    min-height: 400px;
}
#productosCards .carousel-inner,
#productosCards .carousel-item {
    overflow: visible !important;
}
.resumen-totales {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}
.modal-glass {
    background: linear-gradient(180deg, rgba(20,20,30,.97), rgba(10,10,15,.98));
    backdrop-filter: blur(18px);
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 40px 90px rgba(0,0,0,.55);
    transform: scale(.96);
    opacity: 0;
    transition: all .35s ease;
}

.modal.show .modal-glass {
    transform: scale(1);
    opacity: 1;
}

.form-control-dark {
    background: rgba(15,18,25,.9);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    transition: all .25s ease;
}

    .form-control-dark:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40,167,69,.3);
        background-color: rgba(12,15,20,1);
    }
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }

    .modal-glass {
        border-radius: 16px;
    }
}
.modal-premium .modal-content.premium-modal {
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: fadeScaleIn 0.35s ease;
}

.icon-premium {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, #28a745, #5aff8a);
    color: white;
    box-shadow: 0 10px 25px rgba(40,167,69,0.4);
    margin: auto;
}

@keyframes fadeScaleIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
/* Cambiar color del título del footer */
.footer-title {
    color: #ffffff; /* Verde brillante */
    font-weight: 600; /* Un poco más grueso si quieres */
    margin-bottom: 15px;
}

/* Cambiar color de los enlaces del footer */
.footer-links li a {
    color: #35f505; /* Verde más oscuro para links */
    text-decoration: none;
    transition: color 0.3s;
}

    /* Hover para los enlaces */
    .footer-links li a:hover {
        color: #ffffff; /* Verde brillante al pasar el mouse */
        text-decoration: underline; /* Opcional */
    }

    /* Iconos de Bootstrap dentro de los enlaces */
    .footer-links li a i {
        margin-right: 6px;
        color: #35f505; /* También verde los iconos */
    }

/* Contenedor del lightbox */
#lightbox-zoom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: zoom-out;
    padding: 10px;
    transition: opacity 0.3s ease;
}

    /* Imagen dentro del lightbox */
    #lightbox-zoom img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 8px;
        box-shadow: 0 0 25px rgba(255,255,255,0.3);
        transition: transform 0.5s ease, top 0.5s ease, left 0.5s ease, width 0.5s ease, height 0.5s ease;
        position: absolute;
    }

/* Botón de cerrar */
#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 2100;
}

/* Flechas de navegación */
#prev, #next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    z-index: 2100;
}

    #prev:hover, #next:hover {
        color: #ddd;
    }

#prev {
    left: 20px;
}

#next {
    right: 20px;
}

/* Galería miniaturas */
.gallery img {
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

    .gallery img:hover {
        transform: scale(1.05);
    }

/* Media queries para móviles */
@media (max-width: 768px) {
    #lightbox-zoom img {
        max-width: 95%;
        max-height: 80%;
    }

    #lightbox-close {
        font-size: 30px;
        right: 20px;
    }

    #prev, #next {
        font-size: 35px;
        padding: 5px;
    }

    .image-card-vista {
        position: relative;
    }

    .image-loader-vista {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
        border-radius: 8px;
    }

    .delete-btn-vista {
        position: absolute;
        top: 8px;
        right: 10px;
        z-index: 25;
        border-radius: 50%;
    }

    .detalle-box {
        background: rgba(255,255,255,0.05);
        padding: 12px;
        border-radius: 12px;
        margin-top: 6px;
    }

    .detalles-table th,
    .detalles-table td {
        font-size: 14px;
    }

    @media (max-width: 768px) {
        .detalles-table {
            font-size: 13px;
        }
    }

    .fecha-container {
        display: flex;
        flex-direction: column; /* Label arriba del input */
        align-items: center; /* Centrar texto encima del input */
    }

    .fecha-label {
        font-size: 0.85rem;
        margin-bottom: 4px;
        font-weight: 500;
        text-align: center;
    }
    .fecha-wrapper {
        position: relative;
    }

    .fecha-inside-label {
        position: absolute;
        top: 50%; /* Centrado vertical */
        left: 50%; /* Centrado horizontal */
        transform: translate(-50%, -50%);
        color: #aaa; /* Color gris claro */
        font-size: 0.9rem;
        pointer-events: none; /* No bloquea clics en el input */
    }

    .fecha-premium {
        text-align: center; /* Centrar texto del input */
    }

    .fecha-wrapper input {
        text-align: center; /* Centrar el valor dentro del input */
        padding: 0.5rem 0.75rem;
    }
}
.mega-dropdown .dropdown-menu {
    width: 900px;
    border-radius: 20px;
    animation: fadeIn 0.2s ease;
}

@media (max-width: 991px) {
    .mega-dropdown .dropdown-menu {
        width: 100%;
        padding: 16px;
    }
}

/* MEGA MENU — ULTRA DARK GLASS */
.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 14px;
    border-radius: 20px;
    /* MÁS TRANSPARENCIA */
    background: rgba(10, 12, 18, 0.72);
    /* EFECTO CRISTAL */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 70px rgba(0,0,0,0.75);
    color: white;
}

/* TITULOS DE COLUMNAS */
.mega-title {
    font-weight: 900;
    margin-bottom: 12px;
    color: #6fb6ff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.7px;
}

/* ITEMS */
.mega-menu .dropdown-item {
    color: #ffffff !important;
    font-weight: 800;
    padding: 9px 10px;
    border-radius: 12px;
    transition: all 0.18s ease;
}

    /* ICONOS */
    .mega-menu .dropdown-item i {
        color: #ffffff;
        margin-right: 8px;
        font-size: 1rem;
    }

    /* HOVER SUAVE PREMIUM */
    .mega-menu .dropdown-item:hover {
        background: rgba(120, 170, 255, 0.16);
        color: #79b8ff !important;
        transform: translateX(4px);
    }

/* RESPONSIVE FIX */
@media (max-width: 991px) {
    .mega-menu {
        position: static !important;
        border-radius: 20px;
        backdrop-filter: none;
        background: rgba(15, 18, 25, 0.96);
    }
}
.dropdown-menu-dark {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(6px);
}

.dropdown-dark-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tesla-carousel-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

    .tesla-carousel-btn i {
        font-size: 1.6rem;
        color: white;
    }

    .tesla-carousel-btn:hover {
        background: linear-gradient(135deg, #14db32, #07ed0b);
        transform: scale(1.12);
        box-shadow: 0 10px 28px rgba(20, 219, 50, 0.7);
    }
.switch-row {
    width: 220px; /* misma anchura para todos */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px; /* acerca texto al switch */
}
