/* =====================================================================
   ESTILOS PERSONALIZADOS - Instituto Internacional
   ===================================================================== */

:root {
    --color-primario: #6a61c9;
    --color-secundario: #34D9C3;
    --color-terciario: #f5f3ef;
    --color-oscuro: #1a1a1a;
    --color-claro: #ffffff;
}

/* =====================================================================
   TIPOGRAFÍA Y BASE
   ===================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-oscuro);
}

a {
    color: var(--color-primario);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover {
    color: #5a4fb9;
}

/* =====================================================================
   NAVBAR
   ===================================================================== */

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--color-primario) !important;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: var(--color-secundario) !important;
}

.nav-link {
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primario) !important;
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--color-primario) 0%, #5a4fb9 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* =====================================================================
   BOTONES
   ===================================================================== */

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
}

.btn-primary {
    background-color: var(--color-primario);
    color: white;
}

.btn-primary:hover {
    background-color: #5a4fb9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 97, 201, 0.3);
}

.btn-outline-primary {
    color: var(--color-primario);
    border: 2px solid var(--color-primario);
}

.btn-outline-primary:hover {
    background-color: var(--color-primario);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background-color: white;
    color: var(--color-primario);
}

.btn-light:hover {
    background-color: var(--color-terciario);
    color: var(--color-primario);
}

/* =====================================================================
   CARDS
   ===================================================================== */

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.card-title {
    color: var(--color-primario);
    font-weight: 700;
}

.hover-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.hover-card:hover img {
    opacity: 0.9;
}

/* =====================================================================
   SECCIONES
   ===================================================================== */

section {
    padding: 7rem 0;
}

section.bg-light {
    background-color: var(--color-terciario);
}

section h2 {
    color: var(--color-oscuro);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* =====================================================================
   FORMULARIOS
   ===================================================================== */

.form-control {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primario);
    box-shadow: 0 0 0 0.2rem rgba(106, 97, 201, 0.25);
}

.form-label {
    color: var(--color-oscuro);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

footer {
    margin-top: auto;
    border-top: 1px solid #eee;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: white;
}

footer h5 {
    color: white;
    margin-bottom: 1rem;
}

/* =====================================================================
   UTILIDADES Y ESPACIADO
   ===================================================================== */

.mt-custom-1 { margin-top: 6rem; }
.mb-custom-1 { margin-bottom: 6rem; }
.pt-custom-1 { padding-top: 6rem; }
.pb-custom-1 { padding-bottom: 6rem; }

/* =====================================================================
   ANIMACIONES
   ===================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* =====================================================================
   ACCESIBILIDAD
   ===================================================================== */

:focus-visible {
    outline: 2px solid var(--color-primario);
    outline-offset: 2px;
}

/* Mejora en contraste */
.text-muted {
    color: #666 !important;
}

/* =====================================================================
   SOMBRAS Y EFECTOS
   ===================================================================== */

.shadow-custom {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.shadow-custom-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* =====================================================================
   BADGES Y ETIQUETAS
   ===================================================================== */

.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.badge-primary {
    background-color: var(--color-primario);
    color: white;
}

/* =====================================================================
   MODAL OVERRIDE
   ===================================================================== */

.modal-header {
    border-bottom: 2px solid var(--color-primario);
}

.modal-header .btn-close:focus {
    box-shadow: none;
}

/* =====================================================================
   PÁGINA DE CARRERA - DETALLE
   ===================================================================== */

:root {
    --primary-blue: #6a61c9;
    --secondary-turquesa: #34D9C3;
    --bg-light: #f5f3ef;
    --accent-light: #f0f8f7;
}

.journey-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(106, 97, 201, 0.1);
}

.journey-section:last-child {
    border-bottom: none;
}

.journey-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(106, 97, 201, 0.15);
}

.journey-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.journey-marker {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #5a4fb9 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(106, 97, 201, 0.25);
}

.journey-content h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.journey-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Navegación de secciones */
.section-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(106, 97, 201, 0.2);
    overflow-x: auto;
}

.section-nav-item {
    padding: 1rem 2rem 1rem 0;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.section-nav-item:hover {
    color: var(--primary-blue);
}

.section-nav-item.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* Tarjetas de información */
.info-card {
    background: var(--accent-light);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-blue);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(106, 97, 201, 0.15);
    transform: translateY(-2px);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: block;
}

.info-card .label {
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.info-card .value {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Highlight de precios */
.pricing-highlight {
    background: white;
    border: 1px solid rgba(106, 97, 201, 0.2);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(106, 97, 201, 0.1);
}

.pricing-highlight h5 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.price-label {
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.price-value {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Botones CTA */
.cta-primary {
    background: var(--color-primario) !important;
    border: none;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(106, 97, 201, 0.2);
}

.cta-primary:hover {
    background: #5a4fb9 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 97, 201, 0.3) !important;
    color: white !important;
}

.cta-secondary {
    background: white !important;
    border: 2px solid var(--color-primario) !important;
    color: var(--color-primario) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
    border-radius: 6px;
}

.cta-secondary:hover {
    background: var(--color-primario) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(106, 97, 201, 0.3) !important;
    transform: translateY(-3px);
}

/* Galería */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item a {
    display: block;
}

/* Certificaciones y badges */
.certification-badge {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    margin-right: 0.75rem;
    border: 1px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.certification-badge:hover {
    background: var(--primary-blue);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-nav {
        flex-wrap: wrap;
    }
    
    .pricing-highlight {
        margin-top: 2rem;
    }
    
    .journey-section {
        margin-bottom: 2rem;
    }
}
