/*
====================================
  index
====================================
*/

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f6f8;
  color: #333;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;    
    padding: 20px 0;        
    background-color: #055bb8; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

header img {
  height: auto;             
  width: 100%;               
  max-width: 200px;         
  object-fit: contain;       
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); 
  background-color: transparent;
  transition: box-shadow 0.3s ease;
           
}

.sap-banner {
  max-width: 100%;
  height: auto;
}

.banner-img {
 display: flex;
 justify-content:  center;
 align-items: center;
}



.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}


nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(to right, #ffffff, #ffffff);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.buttons .button { 
    margin: 0 1rem; 
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    background-color: #e67e22;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none; 
    display: inline-block;
    transition: background-color 0.3s ease;
}

.analytics {
  padding: 2rem;
  background-color: #e0eafc;
  text-align: center;
}

/*
====================================
  footer
====================================
*/
footer {
    background-color:#0056b3;
    color: white;
    padding-top: 20px;
    font-size: 0.95rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px  20px;
}

.footer-col h3 {
    font-size: 1.2rem;
    color: white;
    border-bottom: 2px solid white;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Estilos de Contacto */
.footer-col.contacto p {
    margin-bottom: 10px;
}

.footer-col.contacto i {
    color: #ccc;
    margin-right: 10px;
    width: 15px;
}

.btn-footer-contact {
    display: inline-block;
    background-color: var(--color-sap-green);
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.btn-footer-contact:hover {
    background-color: #2b5917;
}

.footer-col.navegacion ul {
    list-style: none;
    padding: 0;
}

.footer-col.navegacion ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
}

.footer-col.navegacion ul li a:hover {
    color: var(--color-sap-green);
}

.social-links {
    margin-top: 15px;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-sap-green);
}

.copy-logo {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-sap-green);
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1a2c4e;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #ccc;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col h3 {
        text-align: center;
        width: 50%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col.contacto p {
        text-align: left;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col.navegacion ul {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        text-align: center;
    }
}


.cursos-section {
  padding: 3rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.curso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.curso-img {
    width: 100%;
    height: 180px;         
    object-fit: cover;     
    border-radius: 5px;    
    margin-bottom: 1rem;   
    display: block;       
    
}

.curso-card {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.curso-card:hover {
  transform: translateY(-5px);
}

.curso-card h3 {
  color: #003366;
  margin-bottom: 1rem;
}

.curso-card ul {
  text-align: left;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.categoria {
  font-style: italic;
  color: #666;
  margin-bottom: 1rem;
}

.cursos-section {
    padding: 3rem 2rem;
    background-color: #eef2f7;
    text-align: center;
}

.curso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.curso-card .btn {
    display: inline-block; 
    
    background-color: #0056b3; 
    color: white;
    text-decoration: none; 
    text-align: center;
    
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    
    margin-top: 10px;
    width: 90%; 
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}


.curso-card .btn:hover {
    background-color: #0056b3;
}

.curso-card {
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.curso-card:hover {
  transform: translateY(-5px);
}

.curso-card h3 {
  color: #e67e22;
  margin-bottom: 0.5rem;
}

.curso-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.curso-card button {
  background-color: #003366;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
}


/* Estilos para el botón principal de inscripción */
.btn-inscripcion {
    display: inline-block;
    padding: 1rem 2rem;
    
    background-color: #ff6f61;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    border-radius: 8px;
    border: 2px solid #ff6f61; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    width: 80%; 
    box-sizing: border-box;
}




/*
====================================
  acerta de 
====================================
*/

.section-page {
    padding: var(--spacing-large) 5%;
    text-align: center;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.8rem;
    color: var(--color-sap-blue-dark);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-medium);
}

/* --- Grid de Misión --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    padding: 20px;
    background-color: var(--color-light-bg);
    border-radius: var(--radius-default);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.about-card i {
    font-size: 2.5rem;
    color: var(--color-sap-green);
    margin-bottom: 10px;
}

.about-card h3 {
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.bg-light {
    background-color: #f4f4f4;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.member-card {
    max-width: 250px;
    padding: 20px;
    background-color: var(--color-white);
    border-radius: var(--radius-default);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.member-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 50%; /* Foto circular */
    margin-bottom: 15px;
}

.member-card h4 {
    color: var(--color-sap-blue-dark);
    margin-bottom: 5px;
}

.role {
    font-style: italic;
    color: var(--color-sap-green);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

#cta {
    padding: var(--spacing-medium) 5%;
}

#cta h2 {
    font-size: 2rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.btn-sap-dark {
    background-color: var(--color-sap-blue-dark);
    color: var(--color-white);
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-sap-dark:hover {
    background-color: #0056b3;
}

.container-testimonios {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-heading {
    text-align: center;
    font-size: 2rem;
    color: var(--color-sap-blue-dark);
    margin-top: var(--spacing-large);
    margin-bottom: var(--spacing-medium);
}

.testimonio-destacado {
    background-color: var(--color-sap-blue-dark);
    color: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-default);
    margin: var(--spacing-medium) auto;
    max-width: 800px;
    position: relative;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--color-sap-green);
    margin-bottom: 20px;
    display: block;
}

.quote-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.author-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--color-sap-green);
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-white);
}

.course-taken {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonio-card {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: var(--radius-default);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--color-sap-green); 
    display: flex;
    flex-direction: column;
}

.testimonio-card i.fa-star {
    color: gold;
    margin-bottom: 10px;
    font-size: 1rem;
}

.card-text {
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.5;
    flex-grow: 1;
}

.card-author {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--color-sap-blue-dark);
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    font-size: 0.9rem;
}

#comparte-experiencia {
    background-color: var(--color-light-bg);
}

#comparte-experiencia h2 {
    color: var(--color-text-dark);
}

@media (max-width: 768px) {
    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    .testimonio-destacado {
        padding: 30px 20px;
    }

    .quote-text {
        font-size: 1.1rem;
    }

/*
====================================
 contacto
====================================
*/

.container-contacto-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-large) 20px;
    background-color: var(--color-white);
    border-radius: var(--radius-default);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contacto-form-wrapper {
    padding: 20px;
}

.contacto-form-wrapper .page-title {
    text-align: left;
    font-size: 2rem;
    color: var(--color-sap-blue-dark);
    margin-bottom: 10px;
}

.subtitle-form {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.required {
    color: red;
    font-weight: bold;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-contact {
    margin-bottom: 0;
}

.form-group-contact.full-width {
    grid-column: 1 / -1;
}

.form-group-contact label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-text-dark);
}

.contact-form-grid input[type="text"],
.contact-form-grid input[type="email"],
.contact-form-grid select,
.contact-form-grid textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: var(--radius-default);
    font-size: 1rem;
}

.btn-sap-dark.btn-block {
    width: 100%;
}

.contacto-info-wrapper {
    background-color: var(--color-light-bg);
    padding: 30px;
    border-radius: var(--radius-default);
}

.contacto-info-wrapper h2 {
    font-size: 1.5rem;
    color: var(--color-sap-blue-dark);
    margin-bottom: 20px;
    text-align: left;
}

.contact-details {
    margin-top: 20px;
    margin-bottom: 30px;
}

.detail-item {
    margin-bottom: 25px;
    padding-left: 50px;
    position: relative;
}

.detail-item i {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.8rem;
    color: var(--color-sap-green);
}

.detail-item h4 {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 1.1rem;
}

.detail-item p {
    margin: 3px 0 0 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.social-links-lg a {
    font-size: 2rem;
    color: var(--color-sap-blue-dark);
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links-lg a:hover {
    color: var(--color-sap-green);
}


@media (max-width: 992px) {
    .container-contacto-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-info-wrapper {
        order: -1;
    }
    
    .contacto-form-wrapper .page-title {
        text-align: center;
    }
    
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
    
}

.btn {
    /* Base para todos los botones, si tienes otros */
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.1s;
}

.btn-sap-dark {
    background-color: #18429b;
    color: white;
    border: 1px solid #18429b;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.btn-sap-dark:hover {
    background-color: #113375;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.registro-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 85vh;
            padding: 2rem;
            background-color: #eef2f7; 
        }
.registro-box {
            background-color: #ffffff;
            padding: 2.5rem;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 450px;
            text-align: center;
        }
.registro-box h2 {
            color: #337742;
            margin-bottom: 1.5rem;
}
        
.form-group {
            margin-bottom: 1.25rem;
            text-align: left;
        }
        
.form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: bold;
            color: #333;
        }
.form-group input, .form-group select {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box;
            font-size: 1rem;
        }
.registro-button {
            width: 100%;
            padding: 0.8rem;
            font-size: 1.1rem;
            border: none;
            background-color: #337742;
            color: white;
            cursor: pointer;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }
.registro-button:hover {
            background-color: #2b5917;
        }

.enlaces-adicionales {
            margin-top: 1.5rem;
        }


.enlaces-adicionales a {
            color: #18429b;
            text-decoration: none;
            font-size: 0.95rem;
        }
/* --- ESTILOS DEL PERFIL DE USUARIO --- */

.perfil-box {
    background-color: #ffffff;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}


.perfil-header {
    background-color: #337742;
    color: white;
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    overflow: hidden;
    background-color: #ddd;
    flex-shrink: 0;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-info-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: white; /* Forzamos blanco por si hereda otro color */
}

.perfil-info-header p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
    color: #e8f5e9;
}

/* Cuerpo del perfil */
.perfil-body {
    padding: 2rem;
    text-align: left;
}

.seccion-perfil {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.seccion-perfil:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.seccion-perfil h3 {
    color: #337742;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.datos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.dato-item label {
    display: block;
    font-weight: bold;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.dato-item span {
    color: #333;
    font-size: 1rem;
}

.sap-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sap-badge {
    background-color: #e8f5e9;
    color: #2b5917;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid #c8e6c9;
}


.perfil-actions {
    margin-top: 1rem;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-accion {
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-editar {
    background-color: #18429b;
    color: white;
}
.btn-editar:hover { background-color: #123075; }

.btn-logout {
    background-color: #dc3545;
    color: white;
}
.btn-logout:hover { background-color: #a71d2a; }

/* Ajuste responsive */
@media (max-width: 600px) {
    .perfil-header {
        flex-direction: column;
        text-align: center;
    }
    .perfil-actions {
        flex-direction: column;
    }
    .btn-accion {
        width: 100%;
        text-align: center;
    }
}
/* --- 1. Estilos Globales y Reset (Asegura la consistencia) --- */
:root {
    --color-primary: #004AAD; 
    --color-secondary: #FF6600; 
    --color-background: #F8F9FA; 
    --color-text-dark: #333;
    --color-text-light: #FFF;
    --font-heading: 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-background);
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* --- 2. Estilos del Encabezado (HEADER y Navegación) --- */
header {
    background-color: var(--color-text-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;    
    max-width: 1200px;     
    margin: 0 auto;       
}

.Logo {
    height: 40px; /* Ajusta el tamaño del logo */
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-text-dark);
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--color-secondary);
}

.btn-login {
    background-color: var(--color-secondary);
    color: var(--color-text-light) !important;
    border-radius: 5px;
    padding: 8px 15px;
    margin-left: 10px;
}
.btn-login:hover {
    background-color: #e65c00; /* Un tono más oscuro */
}


/* --- 3. Estilos de la Sección HERO del Curso --- */
.course-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 60px 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
}

.course-header h1 {
    color: var(--color-text-light);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.course-header .subtitulo-curso {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-banner {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border: 2px solid var(--color-secondary);
}

.btn-primary:hover {
    background-color: #e65c00;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid var(--color-text-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- 4. Estilos de Detalles del Curso (course-details) --- */
.course-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.info-block {
    background-color: var(--color-text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-block h2 {
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.benefits-list ul, 
.objectives-list ul {
    list-style: none;
}

.benefits-list li,
.objectives-list li {
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
}

.benefits-list li i,
.objectives-list li i {
    color: var(--color-secondary);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 3px;
}

/* Estilos de la sección de Syllabus */
.syllabus-section h3 {
    color: var(--color-text-dark);
    margin-top: 25px;
    font-size: 1.3em;
}

.intro-syllabus {
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
}

.course-units {
    list-style-type: none;
    padding: 0;
}

.course-units li {
    background-color: var(--color-background);
    border-left: 4px solid var(--color-primary);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.course-units li strong {
    color: var(--color-primary);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #D32F2F; /* Rojo para PDF */
    color: var(--color-text-light);
    margin-top: 20px;
    border: none;
}

.btn-download:hover {
    background-color: #B71C1C;
}

footer {
    background-color: #222;
    color: #CCC;
    padding: 40px 20px 10px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.footer-col {
    flex-basis: 30%;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-col p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-col p i {
    margin-right: 10px;
    color: var(--color-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #AAA;
    text-decoration: none;
    line-height: 2;
}

.footer-col ul li a:hover {
    color: var(--color-text-light);
}

.social-links a {
    color: var(--color-text-light);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 10px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9em;
    color: #888;
}


@media (max-width: 900px) {
    .nav-container nav {
        display: none;
    }
    .course-header {
        padding: 40px 20px;
    }
    .course-header h1 {
        font-size: 2em;
    }
    .footer-container {
        flex-direction: column;
    }
    .footer-col {
        flex-basis: 100%;
        text-align: center;
    }
    .footer-col p {
        justify-content: center;
    }
    .footer-col ul {
        padding-left: 0;
    }
}
/* ========================================================= */
/* 1. Estilos Globales y Reset */
/* ========================================================= */

:root {
    --color-principal: #004d99; /* Azul Corporativo */
    --color-secundario: #ffcc00; /* Amarillo/Dorado */
    --color-fondo: #f4f7f6;
    --color-texto: #333333;
    --color-gris-claro: #dddddd;
    --color-gris-oscuro: #666666;
    --fuente-principal: 'Arial', sans-serif;
    --padding-seccion: 60px 5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    color: var(--color-texto);
    line-height: 1.6;
    background-color: #ffffff; /* Fondo principal blanco */
}

h1, h2, h3 {
    color: var(--color-principal);
    margin-bottom: 20px;
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-principal);
}

.btn, .btn-login, .btn-inscripcion {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--color-secundario);
    color: var(--color-principal);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover, .btn-login:hover, .btn-inscripcion:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* ========================================================= */
/* 2. Header y Navegación */
/* ========================================================= */

header {
    display: flex;
    flex-direction: column;
    align-items: center;    
    padding: 20px 0;        
    background-color: #337742; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.Logo {
    height: 50px; /* Ajusta el tamaño del logo */
    width: auto;
}

nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: var(--color-texto);
    padding: 8px 12px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-principal);
}

.btn-login {
    background-color: var(--color-principal);
    color: #ffffff;
    padding: 8px 15px;
}

.btn-login:hover {
    background-color: #003366;
}

/* ========================================================= */
/* 3. Estilos de la Sección de Catálogo (Genéricos) */
/* ========================================================= */

.cursos-section {
    padding: var(--padding-seccion);
    text-align: center;
    background-color: var(--color-fondo);
}

.cursos-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.curso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.curso-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.curso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.curso-card h3 {
    font-size: 1.5em;
    margin-top: 0;
    min-height: 50px;
}

.curso-card ul {
    margin: 15px 0;
    padding-left: 20px;
    list-style: disc;
    color: var(--color-gris-oscuro);
}

.curso-card ul li {
    margin-bottom: 5px;
}

.curso-card .categoria {
    font-style: italic;
    color: var(--color-secundario);
    font-weight: 600;
    margin-bottom: 15px;
}

.curso-card button {
    width: 100%;
    margin-top: 10px;
}


/* ========================================================= */
/* 4. Estilos de la Página de Detalle de Curso (SAP MM) */
/* ========================================================= */

.detalle-curso-section {
    padding: var(--padding-seccion);
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-principal {
    text-align: center;
    font-size: 3em;
    color: var(--color-principal);
    border-bottom: 3px solid var(--color-secundario);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.introduccion {
    text-align: center;
    font-size: 1.2em;
    color: var(--color-gris-oscuro);
    margin-bottom: 40px;
}

.contenido-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.detalle-card {
    background-color: var(--color-fondo);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.subtitulo {
    font-size: 1.6em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.detalle-card ul {
    list-style: none;
    padding-left: 0;
}

.detalle-card ul li {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23004d99' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0L143 281c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E") no-repeat left center;
    background-size: 18px;
    padding-left: 30px;
    margin-bottom: 15px;
}

.objetivos {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-inscripcion {
    width: 100%;
    margin-top: 20px;
    font-size: 1.1em;
    padding: 12px 0;
}

/* Estilos para el Temario/Syllabus */
.temario-section {
    background-color: #ffffff;
    border: 1px solid var(--color-gris-claro);
    padding: 40px;
    border-radius: 10px;
    margin-top: 20px;
}

.temario-section h2 {
    text-align: center;
    font-size: 2em;
}

.resumen-syllabus {
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-gris-oscuro);
}

.unidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.unidad-card {
    border: 1px solid var(--color-gris-claro);
    padding: 20px;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.unidad-card:hover {
    border-color: var(--color-principal);
}

.unidad-card h3 {
    font-size: 1.3em;
    color: var(--color-secundario);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-gris-claro);
    padding-bottom: 10px;
}

.unidad-card ul {
    list-style-type: none;
    padding-left: 0;
}

.unidad-card ul li {
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
}

.unidad-card ul li::before {
    content: "•";
    color: var(--color-principal);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}


/* ========================================================= */
/* 5. Footer */
/* ========================================================= */

footer {
    background-color: var(--color-principal);
    color: #ffffff;
    padding: 40px 0 10px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--color-secundario);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-col p, .footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-size: 0.95em;
}

.footer-col i {
    margin-right: 10px;
    color: var(--color-secundario);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--color-secundario);
}

.btn-footer-contact {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--color-secundario);
    color: var(--color-principal);
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
}

.social-links a {
    display: inline-block;
    color: var(--color-principal);
    background-color: #ffffff;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.social-links a:hover {
    background-color: var(--color-secundario);
    color: var(--color-principal);
}

.copy-logo {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-secundario);
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

/* ========================================================= */
/* 6. Media Queries (Responsiveness) */
/* ========================================================= */

@media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-container {
        justify-content: center;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 20px;
        min-width: 100%;
    }

    /* Ajustes para el detalle del curso */
    .titulo-principal {
        font-size: 2.2em;
    }
}

@media (max-width: 600px) {
    .titulo-principal {
        font-size: 1.8em;
    }

    .cursos-section, .detalle-curso-section {
        padding: 40px 3%;
    }
    
    .detalle-card, .temario-section {
        padding: 20px;
    }

    /* El grid ya es responsive, pero aseguramos la pila vertical */
    .contenido-grid, .unidades-grid {
        grid-template-columns: 1fr;
    }
}

}