/* ====================================================
   TIPOGRAFÍA GENERAL
==================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: #f5f7fa;
    color: #1e293b;
    line-height: 1.55;
    font-size: 15px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }


/* ====================================================
   HERO SECTION
==================================================== */

.hero {
    padding: 120px 0;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.05rem;
    opacity: .9;
}


/* ====================================================
   BOTONES PREMIUM
==================================================== */

.btn {
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all .25s ease;
}

.btn-primary {
    /*background: linear-gradient(135deg, #2563eb, #1d4ed8);*/
    border: none;
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.btn-primary:hover {
    /*background: linear-gradient(135deg, #1e40af, #1e3a8a);*/
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(30,58,138,0.35);
}

/* Botón login */
.btn-login {
    background: linear-gradient(135deg, #ff8a00, #ff5e00);
    border: none;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(255,94,0,0.35);
}

.btn-login:hover {
    background: linear-gradient(135deg, #e66a00, #cc4d00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204,77,0,0.45);
}


/* ====================================================
   SECCIONES
==================================================== */

section {
    padding: 70px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.section-title::after {
    content: "";
    width: 50px;
    height: 3px;
    background: #2563eb;
    display: block;
    margin-top: 10px;
    border-radius: 3px;
}


/* ====================================================
   CARDS DE CURSOS
==================================================== */

.card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    transition: all .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.card img {
    height: 180px;
    object-fit: cover;
}

.curso-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.card .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* Cards centradas en tablet */
@media (min-width: 576px) and (max-width: 767.98px) {
    .row.row-cols-sm-1 > * {
        display: flex;
        justify-content: center;
    }
}


/* ====================================================
   CARDS DE CATEGORÍAS
==================================================== */

.categoria-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    border: none;
    transition: all .25s ease;
    gap: 20px;
}

.categoria-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

.categoria-img {
    width: 180px;
    flex-shrink: 0;
}

.categoria-img img {
    border-radius: 12px;
    height: 140px;
    object-fit: cover;
    width: 100%;
}

.categoria-info {
    display: flex;
    flex-direction: column;
}

.categoria-titulo {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.categoria-descrip {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 16px;
    flex-grow: 1;
}

.categoria-card .btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* Responsive categorías */
@media (max-width: 991.98px) {
    .categoria-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .categoria-img {
        width: 100%;
    }

    .categoria-img img {
        height: 180px;
    }
}


/* ====================================================
   NAVBAR PREMIUM
==================================================== */

.navbar {
    padding: 12px 0;
    background: #ffffff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 8px 14px;
    color: #1e293b !important;
    transition: .25s ease;
}

.navbar-nav .nav-link:hover {
    color: #2563eb !important;
    transform: translateY(-1px);
}

/* Botón login ancho completo en móvil */
@media (max-width: 991.98px) {
    .navbar .col-md-3,
    .btn-login {
        width: 100%;
    }

    .btn-login {
        display: block;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
        margin-top: 10px;
    }
}


/* ====================================================
   FORMULARIOS
==================================================== */

.form-control {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
}


/* ====================================================
   FOOTER
==================================================== */

footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 45px 0;
}

footer a {
    font-size: 0.9rem;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.btn-primary {
    background-color: #17718b !important; /* tu color corporativo */
    border-color: #17718b !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0f5568 !important;
    border-color: #0f5568 !important;
}
/* Enlace del perfil en el navbar */
.navbar .perfil-link {
    color: #17718b !important; /* color nuevo */
    text-decoration: none;
}

.navbar .perfil-link:hover {
    color: #0f5568 !important;
}

.tuenweb_html h3 {
    position: relative;
    padding: 1.5rem 2.5rem;
    font-style: italic;
    font-weight: 400;
}


.tuenweb_html h3::before,
.tuenweb_html h3::after {
    font-family: "bootstrap-icons";
    font-size: 2rem;
    color: #bb592f; /* mismo color para las comillas */
    position: absolute;
}

.tuenweb_html h3::before {
    content: "\F6B0"; /* bi-quote */
    left: 0;
    top: 0;
}

.tuenweb_html h3::after {
    content: "\F6B0"; /* bi-quote */
    right: 0;
    bottom: 0;
    transform: rotate(180deg);
}


.tuenweb_html h3::before,
.tuenweb_html h3::after {
    font-family: "bootstrap-icons";
    font-size: 2rem;
    color: #6c757d; /* gris elegante */
    position: absolute;
}

.tuenweb_html h3::before {
    content: "\F6B0"; /* bi-quote */
    left: 0;
    top: 0;
}

.tuenweb_html h3::after {
    content: "\F6B0"; /* bi-quote */
    right: 0;
    bottom: 0;
    transform: rotate(180deg);
}
