:root {
    /* Grises */
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-600: #6c757d;
    --gray-900: #212529;
    
    /* Gradientes */
    --gradient-red: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, var(--primary-color) 100%);
    
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.2);
    
    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar-public {
    background: var(--secondary-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-public.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}



.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.btn-capitol-primary {
    background: var(--gradient-red);
    color: var(--button-text-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-capitol-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--button-text-color);
}

.btn-capitol-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-capitol-outline:hover {
    background: var(--primary-color);
    color: var(--button-text-color);
    transform: translateY(-2px);
}

/* Footer */
.footer-public {
    background: var(--gradient-dark);
    color: var(--secondary-color);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-public h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-public a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-public a:hover {
    color: var(--primary-color);
}

.footer-public .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.footer-public .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--gray-300);
}

/* Utilities */
.text-capitol {
    color: var(--primary-color) !important;
}

.bg-capitol {
    background: var(--primary-color) !important;
}

.bg-gradient-capitol {
    background: var(--gradient-red) !important;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Landing principal*/

/* Hero Section */

.hero-section {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Fallback si no hay imagen */
.hero-section:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--primary-color, #99232E) 0%, var(--primary-dark, #5c1419) 100%);
}

/* Overlay oscuro para legibilidad */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

/* Alternativa: Overlay con color del tema */
.hero-overlay-theme {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-dark, 153, 35, 46), 0.85) 0%,
        rgba(var(--primary-dark, 153, 35, 46), 0.6) 50%,
        rgba(var(--primary-dark, 153, 35, 46), 0.3) 100%
    );
}

/* Container sobre el overlay */
.hero-section .container {
    z-index: 2;
}

/* Altura mínima del contenido */
.min-vh-70 {
    min-height: 70vh;
}

.hero-content {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color, #99232E);
    border: 2px solid white;
}

.btn-hero-primary:hover {
    background: var(--primary-color, #99232E);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-outline:hover {
    background: var(--primary-color, #99232E);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-section {
        background-position: center;
        background-attachment: scroll;
        min-height: auto;
        padding: 6rem 0;
    }
    
    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.65) 100%
        );
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .min-vh-70 {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 4rem 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Efecto parallax suave (opcional) */
@media (min-width: 992px) {
    .hero-section {
        background-attachment: fixed;
    }
}






/* Stats Section */
.stats-section {
    background: white;
    padding: 4rem 0;
    margin-top: -4rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Section Common Styles */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.8;
}



/* Arrow Process Container (Como funciona) */
.arrow-process-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 0 auto;
    max-width: 1400px;
    overflow-x: auto;
    padding: 2rem 0;
}

/* Arrow Step */
.arrow-step {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 370px;
    max-height: 240px;
    background: linear-gradient(135deg, var(--step-color) 0%, color-mix(in srgb, var(--step-color) 80%, black) 100%);
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%, 40px 50%);
    transition: all 0.3s ease;
}

.arrow-step:first-child {
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 50%, calc(100% - 40px) 100%, 0 100%);
    margin-left: 0;
}

.arrow-step:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40px 50%);
}

.arrow-step:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Arrow Step Content */
.arrow-step-content {
    padding: 2.5rem 3rem 2.5rem 4rem;
    text-align: center;
    color: white;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.arrow-step:first-child .arrow-step-content {
    padding-left: 2.5rem;
}

/* Arrow Step Icon */
.arrow-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.0rem;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

/* Arrow Step Number */
.arrow-number {
    font-weight: 800;
    font-size: 1.55rem;
    align-items: center;
}

.arrow-step-number {
    position: absolute;
    top: 1.5rem;
    left: 4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--step-color, #00BCD4);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.arrow-step:first-child .arrow-step-number {
    left: 2.5rem;
}

/* Arrow Step Title */
.arrow-step-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Arrow Step Description */
.arrow-step-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .arrow-process-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .arrow-step {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 50% 100%, 0 calc(100% - 30px));
        max-width: none;
        min-width: auto;
    }
    
    .arrow-step:first-child {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 50% 100%, 0 calc(100% - 30px));
    }
    
    .arrow-step:last-child {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 50% calc(100% - 30px));
    }
    
    .arrow-step-content {
        padding: 2rem 2rem 3rem 2rem;
    }
    
    .arrow-step:first-child .arrow-step-content {
        padding-left: 2rem;
    }
    
    .arrow-step-number {
        left: 2rem !important;
    }
}

@media (max-width: 576px) {
    .arrow-step-content {
        padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    }
    
    .arrow-step-icon {
        width: 60px;
        height: 60px;
    }
    
    .arrow-step-icon i {
        font-size: 1.5rem;
    }
    
    .arrow-step-title {
        font-size: 1.1rem;
    }
    
    .arrow-step-description {
        font-size: 0.875rem;
    }
    
    .arrow-step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

/* Animación de pulso en hover */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.arrow-step:hover .arrow-step-icon {
    animation: pulse 1s infinite;
}

/* Efecto de brillo */
.arrow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    pointer-events: none;
}

/* Sombra personalizada */
.arrow-step {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.arrow-step:hover {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}









/* CTA Section */
.cta-section {
    background: var(--gradient-red);
    color: white;
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    margin: 4rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Process Steps */
.process-step {
    position: relative;
    padding: 2rem;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--button-text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Formularios de empresa y alumno*/

.register-section {
    min-height: 100vh;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.register-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.register-header {
    text-align: center;
    margin-bottom: 3rem;
}

.register-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.register-header .subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.success-box i {
    color: #28a745;
    margin-right: 0.5rem;
}

.form-section {
    margin-bottom: 2.5rem;
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.form-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(153, 35, 46, 0.1);
}

.required-field::after {
    content: '*';
    color: var(--primary-color);
    margin-left: 0.25rem;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.info-box i {
    color: #2196f3;
    margin-right: 0.5rem;
}

.btn-register {
    background: var(--gradient-red);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(153, 35, 46, 0.3);
    color: white;
}

.btn-back {
    color: var(--gray-600);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: var(--primary-color);
}

.curso-card {
    background: #f8f9fa;
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.curso-card:hover {
    border-color: var(--primary-color);
}

.btn-remove-curso {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-curso:hover {
    background: var(--primary-dark);
    transform: rotate(90deg);
}

.btn-add-curso {
    background: transparent;
    color: var(--primary-color);
    border: 2px dashed var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-add-curso:hover {
    background: var(--primary-color);
    color: white;
}

.form-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    color: white;
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .register-card {
        padding: 2rem 1.5rem;
    }
    
    .register-header h1 {
        font-size: 2rem;
    }
}

/* Pagina de confirmacion*/

.confirmation-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.confirmation-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 4rem 3rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease-out;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.confirmation-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.info-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.info-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    display: flex;
    align-items: start;
}

.info-card li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.btn-home, .btn-login {
    background: var(--gradient-red);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-home:hover, .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(153, 35, 46, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .confirmation-card {
        padding: 2rem 1.5rem;
    }
    
    .confirmation-title {
        font-size: 2rem;
    }
}