﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 {
  margin-bottom: 60px;
}

/* =========================
   SECCIÓN DE DEMOS
========================= */

.demo-card {
    background: #ffffff;
    border: 1px solid rgba(106, 0, 255, 0.18);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .demo-card:hover {
        transform: translateY(-6px);
        border-color: #6a00ff;
        box-shadow: 0 16px 35px rgba(106, 0, 255, 0.18);
    }

    .demo-card .card-body {
        padding: 24px;
    }

    .demo-card .card-title {
        color: #171717 !important;
        font-size: 1.45rem;
        line-height: 1.25;
        margin-bottom: 12px;
    }

    .demo-card .card-text {
        color: #5e5e68 !important;
        line-height: 1.65;
        margin-bottom: 24px;
    }

.demo-badge {
    display: inline-block;
    width: fit-content;
    padding: 6px 12px;
    margin-bottom: 15px;
    border-radius: 999px;
    background: rgba(106, 0, 255, 0.1);
    color: #6a00ff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Botón corregido */
.demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    padding: 11px 20px;
    background: linear-gradient(135deg, #6a00ff, #8d35ff);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .demo-btn:hover {
        color: #ffffff !important;
        background: linear-gradient(135deg, #5700d6, #771ee6);
        box-shadow: 0 9px 20px rgba(106, 0, 255, 0.32);
        transform: translateY(-2px);
    }

    .demo-btn:focus {
        color: #ffffff !important;
        box-shadow: 0 0 0 4px rgba(106, 0, 255, 0.22);
    }

    .demo-btn::after {
        content: "↗";
        font-size: 1rem;
    }

/* Proyecto destacado */
.demo-card-featured {
    position: relative;
    border: 2px solid #6a00ff;
}

    .demo-card-featured::before {
        content: "PROYECTO DESTACADO";
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 2;
        padding: 5px 9px;
        border-radius: 6px;
        background: #6a00ff;
        color: #ffffff;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

@media (max-width: 576px) {
    .demo-btn {
        width: 100%;
    }

    .demo-card-featured::before {
        position: static;
        display: block;
        width: fit-content;
        margin: 16px 0 0 24px;
    }
}

/* SECCIÓN DE PROYECTOS */

.projects-section {
    width: 100%;
    background-color: transparent;
    color: #171717;
}

    .projects-section h2 {
        color: #171717;
    }

    .projects-section > .container > .text-center p {
        color: #555;
    }

.demo-card {
    background-color: #ffffff;
    color: #171717;
    border: 1px solid #e7e7e7 !important;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

    .demo-card .card-title {
        color: #171717 !important;
    }

    .demo-card .card-text {
        color: #555 !important;
    }