:root {
    --azul-premium: #1E3A5F;   
    --azul-brillante: #7FA9C9; 
    --gris-suave: #f8fafc;
    --blanco-puro: #ffffff;
    --texto-oscuro: #1e293b;
    --texto-muted: #64748b;
    --sombra-card: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--gris-suave);
    color: var(--texto-oscuro);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
}

.navbar {
    background: linear-gradient(135deg, var(--azul-premium) 0%, #152945 100%) !important;
    padding: 1.2rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 4px solid var(--azul-brillante); 
}

.navbar-brand img {
    transition: transform 0.3s ease;
    max-width: 180px; 
}

.navbar-brand:hover img {
    transform: scale(1.05); 
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.4rem;
}

.hero-geometric {
    position: relative;
    background-color: var(--azul-premium);
    background-image: 
        linear-gradient(30deg, #24446d 12%, transparent 12.5%, transparent 87%, #24446d 87.5%, #24446d),
        linear-gradient(150deg, #24446d 12%, transparent 12.5%, transparent 87%, #24446d 87.5%, #24446d),
        linear-gradient(30deg, #24446d 12%, transparent 12.5%, transparent 87%, #24446d 87.5%, #24446d),
        linear-gradient(150deg, #24446d 12%, transparent 12.5%, transparent 87%, #24446d 87.5%, #24446d),
        linear-gradient(60deg, #1e3a5f 25%, transparent 25.5%, transparent 75%, #1e3a5f 75%, #1e3a5f),
        linear-gradient(60deg, #1e3a5f 25%, transparent 25.5%, transparent 75%, #1e3a5f 75%, #1e3a5f);
    background-size: 40px 70px;
}

.card, .card-geometric {
    border: none !important;
    border-radius: 0px !important; 
    clip-path: polygon(0% 0%, 100% 0%, 100% 92%, 92% 100%, 0% 100%);
    background: var(--blanco-puro);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--sombra-card);
    border-bottom: 5px solid var(--azul-brillante) !important;
}

.card:hover, .card-geometric:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 25px -5px rgba(30, 58, 95, 0.2);
    border-bottom-color: var(--azul-premium) !important;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.btn-outline-primary, .btn-facetado {
    border: none;
    background-color: var(--blanco-puro);
    color: var(--azul-premium);
    border-radius: 0;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-outline-primary:hover, .btn-facetado:hover {
    background-color: var(--azul-brillante);
    color: white;
    transform: scale(1.05);
}

.bg-capacitara {
    background: linear-gradient(135deg, var(--azul-premium) 0%, #152945 100%) !important;
}

#chatbot-launcher button {
    background: linear-gradient(135deg, var(--azul-premium), var(--azul-brillante)) !important;
    border: none;
    border-radius: 12px 12px 0 12px !important; /* Menos redondo, más angular */
    box-shadow: 0 8px 16px rgba(30, 58, 95, 0.3);
}

#chatbot-window {
    width: 360px;
    border-radius: 0 !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 0 92%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.user .message-text {
    background: linear-gradient(135deg, var(--azul-premium), var(--azul-brillante));
    color: white;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 92% 100%, 0 100%);
}

.bot .chat-avatar { background: #eee; color: var(--azul-premium); }
.user .chat-avatar { background: var(--azul-premium); color: white; }

.transition-hover {
    transition: all 0.3s ease-in-out !important;
}

[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(30,58,95,.45),
            rgba(30,58,95,.55)
        ),
        url("/static/uploads/fondo_capacitaria1.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 1;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: rgba(127,169,201,.15);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    top: -150px;
    right: -150px;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 6.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    text-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.hero-section p{
    font-size: 1.5rem;
    max-width: 900px;
    margin: auto;
    text-shadow: 0 5px 15px rgba(0,0,0,.3);
}

/* BOTON HERO */
.hero-section .btn {
    background: white;
    color: var(--azul-premium);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    transition: .3s;
}

.hero-section .btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--azul-brillante);
    color: white;
}

.info-card {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-radius: 0;
    padding: 3rem;
    transition: .4s;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(127,169,201,.12);
    top: -40px;
    right: -40px;
    transform: rotate(45deg);
}

.info-card:hover {
    transform: translateY(-12px);
}

/* ICONOS */
.info-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #1E3A5F, #7FA9C9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: auto;
    margin-bottom: 1.5rem;
}

.info-icon i {
    font-size: 2rem;
    color: white;
}

.section-premium {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.section-premium::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(127,169,201,.08);
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

@media(max-width: 768px){

    .hero-section h1{
        font-size: 3rem;
    }

    .hero-section p{
        font-size: 1rem;
    }

    .info-card{
        padding: 2rem;
    }

}

.detalle-curso-hero {
    position: relative;
    padding: 90px 0 110px;
    overflow: hidden;
    background:
        linear-gradient(rgba(30,58,95,.72), rgba(30,58,95,.82)),
        url("/static/uploads/fondo_capacitaria1.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.detalle-curso-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 55px 55px;
}

.detalle-curso-hero::after {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    right: -220px;
    top: -220px;
    background: rgba(127,169,201,.18);
    clip-path: polygon(30% 0, 100% 0, 75% 100%, 0 85%);
}

.detalle-curso-hero .container {
    position: relative;
    z-index: 2;
}

.detalle-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: white;
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 3rem;
    opacity: .9;
}

.detalle-back:hover {
    color: #7FA9C9;
}

.detalle-label,
.detalle-label-dark {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: .8rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.detalle-label {
    color: #b9d8ef;
}

.detalle-label-dark {
    color: #1E3A5F;
}

.detalle-curso-hero h1 {
    font-size: 4.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: .95;
    text-shadow: 0 12px 30px rgba(0,0,0,.35);
    margin-bottom: 1.5rem;
}

.detalle-curso-hero p {
    font-size: 1.25rem;
    max-width: 760px;
    opacity: .92;
}

.detalle-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.detalle-btn,
.detalle-btn-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
    transition: .3s ease;
}

.detalle-btn {
    background: white;
    color: #1E3A5F;
}

.detalle-btn-outline {
    border: 2px solid white;
    color: white;
}

.detalle-btn:hover {
    background: #7FA9C9;
    color: white;
    transform: translateY(-4px);
}

.detalle-btn-outline:hover {
    background: white;
    color: #1E3A5F;
    transform: translateY(-4px);
}

.detalle-img-card {
    position: relative;
    padding: 12px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
}

.detalle-img-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}

/* INFO RÁPIDA */

.detalle-quick-info {
    margin-top: -55px;
    position: relative;
    z-index: 5;
}

.quick-grid {
    background: white;
    box-shadow: 0 25px 60px rgba(30,58,95,.18);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    clip-path: polygon(0 0, 100% 0, 100% 82%, 97% 100%, 0 100%);
    overflow: hidden;
}

.quick-item {
    padding: 2rem;
    border-right: 1px solid #e2e8f0;
}

.quick-item:last-child {
    border-right: none;
}

.quick-item span {
    display: block;
    color: #64748b;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: .5rem;
}

.quick-item strong {
    color: #003366;
    font-size: 1.1rem;
}

.detalle-content {
    padding: 100px 0;
    background:
        linear-gradient(rgba(248,250,252,.94), rgba(248,250,252,.98)),
        url("/static/uploads/fondo_capacitaria1.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.detalle-block {
    position: relative;
    background: white;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 18px 45px rgba(30,58,95,.12);
    border-left: 6px solid #7FA9C9;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 97% 100%, 0 100%);
}

.detalle-number {
    display: block;
    color: #7FA9C9;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: .6rem;
}

.detalle-block h2 {
    color: #003366;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.detalle-block p {
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.detalle-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.detalle-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #475569;
}

.detalle-list li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 0;
    color: #1E3A5F;
}

.expositor-card {
    position: sticky;
    top: 120px;
    background: #1E3A5F;
    color: white;
    padding: 3rem;
    box-shadow: 0 25px 60px rgba(30,58,95,.25);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 90% 100%, 0 100%);
}

.expositor-icon {
    width: 80px;
    height: 80px;
    background: #7FA9C9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.expositor-icon i {
    font-size: 2rem;
}

.expositor-card h3 {
    font-weight: 900;
    margin-bottom: 1rem;
}

.expositor-card h4 {
    color: #b9d8ef;
    font-size: 1rem;
    font-weight: 800;
}

.expositor-card p {
    opacity: .85;
    margin-bottom: 0;
}

/* INVERSIÓN */

.detalle-inversion {
    padding: 100px 0;
    background: white;
}

.detalle-inversion h2 {
    color: #003366;
    font-size: 3rem;
    font-weight: 900;
}

.detalle-inversion > .container > .text-center p {
    color: #64748b;
}

.precio-detalle-card {
    height: 100%;
    padding: 3rem;
    text-align: center;
    background: #f8fafc;
    box-shadow: 0 20px 45px rgba(30,58,95,.12);
    border-bottom: 6px solid #7FA9C9;
    transition: .3s ease;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 100%, 0 100%);
}

.precio-detalle-card:hover {
    transform: translateY(-10px);
}

.precio-detalle-card.destacado {
    background: #1E3A5F;
    color: white;
}

.precio-detalle-card i {
    font-size: 2.5rem;
    color: #1E3A5F;
}

.precio-detalle-card.destacado i {
    color: #7FA9C9;
}

.precio-detalle-card h3 {
    margin-top: 1rem;
    font-weight: 900;
    color: #003366;
}

.precio-detalle-card.destacado h3 {
    color: white;
}

.precio-detalle-card h4 {
    font-size: 3rem;
    font-weight: 900;
    color: #0066ff;
    margin: 1rem 0;
}

.precio-detalle-card.destacado h4 {
    color: #7FA9C9;
}

.precio-detalle-card p {
    color: #64748b;
}

.precio-detalle-card.destacado p {
    color: rgba(255,255,255,.75);
}

@media(max-width: 992px) {
    .detalle-curso-hero h1 {
        font-size: 3.2rem;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expositor-card {
        position: relative;
        top: 0;
    }
}

@media(max-width: 576px) {
    .detalle-curso-hero {
        padding: 60px 0 90px;
    }

    .detalle-curso-hero h1 {
        font-size: 2.4rem;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-item {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .detalle-block {
        padding: 2rem;
    }

    .detalle-inversion h2 {
        font-size: 2.2rem;
    }
}
.detalle-texto p{
    margin-bottom: 18px;
    line-height: 1.9;
    color: #53627c;
    font-size: 1.08rem;
}
.detalle-img-card{
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.12);
    padding: 14px;
    border-radius: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.detalle-img-card img{
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

.expositor-texto p{
    margin-bottom: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
}

@media (max-width: 992px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .navbar-brand img {
        max-width: 120px;
        height: auto !important;
    }

    .hero-section h1,
    .cursos-hero h1,
    .detalle-curso-hero h1 {
        font-size: 2.7rem !important;
        letter-spacing: -1px;
    }

    .hero-section p,
    .cursos-hero p,
    .detalle-curso-hero p {
        font-size: 1rem !important;
    }

    .detalle-img-card img {
        width: 100%;
        height: auto !important;
        object-fit: contain !important;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .expositor-card {
        position: relative !important;
        top: 0 !important;
        margin-top: 2rem;
    }

    #chatbot-window {
        width: calc(100% - 2rem) !important;
        right: 0 !important;
        left: 0 !important;
        margin: 0 auto 1rem auto !important;
    }
}

@media (max-width: 576px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section {
        min-height: 75vh !important;
        text-align: center;
    }

    .hero-section h1,
    .cursos-hero h1,
    .detalle-curso-hero h1 {
        font-size: 2.1rem !important;
        line-height: 1.1;
    }

    .hero-section .btn,
    .detalle-btn,
    .detalle-btn-outline,
    .curso-btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .detalle-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .quick-grid {
        grid-template-columns: 1fr !important;
        clip-path: none !important;
    }

    .quick-item {
        text-align: center;
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0;
    }

    .detalle-block,
    .info-card,
    .expositor-card {
        padding: 2rem !important;
        clip-path: none !important;
    }

    .card,
    .card-geometric,
    .curso-card {
        clip-path: none !important;
        border-radius: 16px !important;
    }

    .card-img-top,
    .curso-img-box {
        height: 200px !important;
    }

    footer img {
        height: 60px !important;
    }

    #chatbot-launcher {
        padding: 1rem !important;
    }

    #chatbot-launcher button {
        width: 55px !important;
        height: 55px !important;
    }

    #chatbot-window {
        bottom: 75px !important;
        width: calc(100% - 1rem) !important;
        max-width: 95% !important;
    }

    #chat-body {
        height: 300px !important;
    }
}

.whatsapp-icon{
    color: #25D366 !important;
}

#chatbot-launcher button.whatsapp-active {
    background: #ffffff !important;
    border: 2px solid #25D366 !important;
}

#chatbot-launcher button.whatsapp-active i {
    color: #25D366 !important;
}

#chatbot-launcher button{
    transition: all 0.5s ease;
    transform: scale(1);
}

#chatbot-launcher button:hover{
    transform: scale(1.08);
}

#chatbot-launcher button i{
    transition: all 0.4s ease;
    animation: chatbotFade 0.4s ease;
}

@keyframes chatbotFade{
    from{
        opacity: 0;
        transform: scale(0.6) rotate(-15deg);
    }

    to{
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

#chatbot-launcher button.whatsapp-active{
    animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp{
    0%{
        box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
    }

    70%{
        box-shadow: 0 0 0 14px rgba(37,211,102,0);
    }

    100%{
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }
}

#chatbot-window {
    width: 360px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    border: 1px solid #d9d9d9 !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25) !important;
    clip-path: none !important;
}

#chatbot-window .card-header {
    background: #003366 !important;
    border-radius: 18px 18px 0 0 !important;
    padding: 10px 14px !important;
}

#chatbot-window .card-header span {
    font-size: 0.82rem !important;
}

#chatbot-window .btn-close {
    background-color: rgba(255,255,255,0.18) !important;
    border-radius: 50% !important;
    padding: 8px !important;
}

#chat-body {
    background: #ffffff !important;
    height: 310px !important;
    padding: 14px !important;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-avatar {
    display: none !important;
}

.message-text {
    max-width: 82%;
    padding: 10px 14px !important;
    border-radius: 18px !important;
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.bot .message-text {
    background: #f5f5f5 !important;
    color: #222 !important;
    border-top-left-radius: 4px !important;
}

.user .message-text {
    background: #003366 !important;
    color: white !important;
    border-top-right-radius: 4px !important;
    clip-path: none !important;
}

#chatbot-window .card-footer {
    background: #ffffff !important;
    padding: 12px !important;
}

#user-input {
    background: #f4f4f4 !important;
    border-radius: 20px 0 0 20px !important;
    font-size: 0.9rem !important;
    padding: 10px 15px !important;
}

#chatbot-window .card-footer button {
    background: #003366 !important;
    border: none !important;
    border-radius: 0 20px 20px 0 !important;
}

#chatbot-launcher button.whatsapp-active {
    background: #25D366 !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 8px 20px rgba(37,211,102,0.45) !important;
}

#chatbot-launcher button.whatsapp-active i {
    color: #ffffff !important;
    font-size: 2rem !important;
}

#chatbot-launcher button.whatsapp-active::after {
    content: "";
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.25);
    animation: whatsappPulse 1.8s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

#chatbot-launcher button {
    position: relative;
    transition: all 0.4s ease !important;
}

#chatbot-launcher button:not(.whatsapp-active) {
    background: #003366 !important;
}

#chatbot-launcher button:hover {
    transform: scale(1.08);
}

.inicio-about,
.inicio-section,
.inicio-teaching,
.inicio-timeline-section {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.inicio-about {
    background:
        linear-gradient(rgba(248,250,252,.94), rgba(248,250,252,.98)),
        url("/static/uploads/fondo_capacitaria1.png");
    background-size: cover;
    background-position: center;
}

.inicio-label,
.inicio-label-light {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: .78rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.inicio-label {
    color: #1E3A5F;
}

.inicio-label-light {
    color: #b9d8ef;
}

.inicio-about h2,
.inicio-section h2,
.inicio-teaching h2,
.inicio-timeline-section h2 {
    color: #003366;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.inicio-about p,
.inicio-teaching p,
.inicio-subtitle {
    color: #53627c;
    font-size: 1.1rem;
    line-height: 1.8;
}

.inicio-about-card {
    background: #1E3A5F;
    color: white;
    padding: 4rem;
    box-shadow: 0 25px 60px rgba(30,58,95,.25);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
}

.inicio-about-card i {
    font-size: 3rem;
    color: #7FA9C9;
    margin-bottom: 1.5rem;
}

.inicio-about-card h3 {
    font-size: 2rem;
    font-weight: 900;
}

.inicio-about-card p {
    color: rgba(255,255,255,.82);
}

.inicio-dark,
.inicio-methodology {
    padding: 100px 0;
    background:
        linear-gradient(rgba(30,58,95,.94), rgba(21,41,69,.96)),
        url("/static/uploads/fondo_capacitaria1.png");
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.inicio-dark::before,
.inicio-methodology::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 55px 55px;
}

.inicio-dark .container,
.inicio-methodology .container {
    position: relative;
    z-index: 2;
}

.inicio-dark h2,
.inicio-methodology h2 {
    color: white;
    font-size: 3rem;
    font-weight: 900;
}

.inicio-dark .text-center p {
    max-width: 850px;
    margin: auto;
    color: rgba(255,255,255,.78);
    font-size: 1.1rem;
}

.inicio-stat {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    padding: 2.5rem;
    height: 100%;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: .3s ease;
}

.inicio-stat:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,.13);
}

.inicio-stat i {
    font-size: 2.7rem;
    color: #7FA9C9;
    margin-bottom: 1rem;
}

.inicio-stat h3 {
    font-weight: 900;
    margin-bottom: 1rem;
}

.inicio-stat p {
    color: rgba(255,255,255,.75);
    margin-bottom: 0;
}

.inicio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.inicio-mini-card {
    background: white;
    padding: 2.5rem;
    box-shadow: 0 18px 45px rgba(30,58,95,.12);
    border-bottom: 5px solid #7FA9C9;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 92% 100%, 0 100%);
    transition: .3s ease;
}

.inicio-mini-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #1E3A5F;
}

.inicio-mini-card i {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1E3A5F, #7FA9C9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.4rem;
}

.inicio-mini-card h4 {
    color: #003366;
    font-weight: 900;
    margin-bottom: 1rem;
}

.inicio-mini-card p {
    color: #64748b;
    margin-bottom: 0;
}

.inicio-teaching {
    background: white;
}

.inicio-method-card {
    background: #f8fafc;
    padding: 2rem;
    height: 100%;
    border-left: 5px solid #7FA9C9;
    box-shadow: 0 15px 35px rgba(30,58,95,.08);
}

.inicio-method-card i {
    color: #1E3A5F;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.inicio-method-card h4 {
    color: #003366;
    font-weight: 900;
}

.inicio-method-card p {
    color: #64748b;
    margin-bottom: 0;
}

.inicio-formation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.inicio-formation-item {
    background: white;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 18px 45px rgba(30,58,95,.12);
    border-left: 6px solid #7FA9C9;
}

.inicio-formation-item i {
    color: #1E3A5F;
    font-size: 2.2rem;
}

.inicio-formation-item h4 {
    color: #003366;
    font-weight: 900;
}

.inicio-formation-item p {
    color: #64748b;
    margin-bottom: 0;
}

.inicio-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.inicio-step {
    background: rgba(255,255,255,.08);
    padding: 2rem;
    border-top: 4px solid #7FA9C9;
    backdrop-filter: blur(8px);
}

.inicio-step span {
    color: #7FA9C9;
    font-size: 2.5rem;
    font-weight: 900;
}

.inicio-step h4 {
    font-weight: 900;
    margin-top: 1rem;
}

.inicio-step p {
    color: rgba(255,255,255,.75);
    margin-bottom: 0;
}

.inicio-targets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.inicio-target {
    background: white;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 15px 35px rgba(30,58,95,.1);
    border-bottom: 5px solid #7FA9C9;
    transition: .3s ease;
}

.inicio-target:hover {
    transform: translateY(-8px);
    background: #1E3A5F;
}

.inicio-target:hover i,
.inicio-target:hover h4 {
    color: white;
}

.inicio-target i {
    color: #1E3A5F;
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

.inicio-target h4 {
    color: #003366;
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 0;
}

.inicio-timeline-section {
    background:
        linear-gradient(rgba(248,250,252,.95), rgba(248,250,252,.98)),
        url("/static/uploads/fondo_capacitaria1.png");
    background-size: cover;
    background-position: center;
}

.inicio-timeline {
    position: relative;
    max-width: 950px;
    margin: auto;
}

.inicio-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 5px;
    height: 100%;
    background: #7FA9C9;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    background: white;
    box-shadow: 0 18px 45px rgba(30,58,95,.12);
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    margin-right: auto;
    transform: translateX(-30px);
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    transform: translateX(30px);
}

.timeline-item span {
    color: #7FA9C9;
    font-weight: 900;
    letter-spacing: 2px;
}

.timeline-item h4 {
    color: #003366;
    font-weight: 900;
    margin-top: .5rem;
}

.timeline-item p {
    color: #64748b;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .inicio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inicio-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .inicio-targets {
        grid-template-columns: repeat(3, 1fr);
    }

    .inicio-formation {
        grid-template-columns: 1fr;
    }

    .inicio-about h2,
    .inicio-section h2,
    .inicio-teaching h2,
    .inicio-timeline-section h2,
    .inicio-dark h2,
    .inicio-methodology h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 576px) {
    .inicio-about,
    .inicio-section,
    .inicio-teaching,
    .inicio-dark,
    .inicio-methodology,
    .inicio-timeline-section {
        padding: 70px 0;
    }

    .inicio-grid,
    .inicio-steps,
    .inicio-targets {
        grid-template-columns: 1fr;
    }

    .inicio-about-card {
        padding: 2rem;
        clip-path: none;
    }

    .inicio-mini-card,
    .inicio-target,
    .inicio-step,
    .timeline-item {
        clip-path: none;
        border-radius: 16px;
    }

    .inicio-timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        transform: none !important;
        margin-left: 1rem !important;
    }
}