/* Estilos generales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #c0392b;
}

section {
    padding: 60px 0;
}

h1,
h2,
h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 180px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero */
#inicio {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('imagenes/camiones.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
}

#inicio h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#inicio p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    width: 200px;
    backdrop-filter: blur(5px);
}

/* Quiénes somos */
#quienes-somos {
    background-color: var(--light-color);
}

.about-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-vision {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
}

.mission,
.vision {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    margin: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Cursos */
.course-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    margin: 5px;
    background-color: var(--light-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-image {
    height: 180px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.course-info {
    padding: 20px;
}

.course-info h3 {
    margin-bottom: 10px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Certificaciones */
#certificaciones {
    background-color: var(--light-color);
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.certification-item {
    background-color: white;
    padding: 30px;
    margin: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
}

.certification-item i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Empresas */
.empresas-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.empresas-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.empresas-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Contacto */
#contacto {
    background-color: var(--light-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

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

.contact-form {
    flex: 1;
    min-width: 300px;
}

/* Malla curricular */
.malla-curricular {
    margin-top: 40px;
}

.modulo {
    margin-bottom: 30px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.modulo-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--light-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    .mobile-menu {
        display: block;
        margin-top: 20px;
    }

    nav {
        display: none;
    }

    nav.active {
        display: block;
    }

    #inicio {
        padding: 150px 0 80px;
    }

    .about-text,
    .about-image {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .mission,
    .vision {
        margin: 10px 0;
    }
}

/* Galería */
.galeria-modulo {
    width: 85%;
    margin: 2rem auto;
    max-width: 1000px;
    position: relative;
}

.galeria-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.galeria-slide {
    display: flex;
    transition: transform 0.5s ease;
}

.slide-item {
    min-width: 100%;
    padding-bottom: 1rem;
}

.image-frame {
    height: 65vh;
    max-height: 550px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 10px;
}

.image-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.caption-box {
    background: #f1f5f9;
    margin: 0 15px;
    padding: 1.2rem;
    border-radius: 0 0 6px 6px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #3498db;
}

.caption-box h3 {
    margin: 0 0 0.3rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.caption-box p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.galeria-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.galeria-btn:hover {
    background-color: #2980b9;
    transform: translateY(-50%) scale(1.1);
}

.galeria-controls {
    text-align: center;
    margin-top: 15px;
}

.galeria-pause-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.galeria-pause-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.galeria-puntos {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.punto {
    width: 12px;
    height: 12px;
    background-color: #bdc3c7;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.punto.active {
    background-color: #3498db;
    transform: scale(1.3);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadein 0.5s;
}

.toast-success {
    background-color: #3498db;
}

.toast-error {
    background-color: #e74c3c;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quienes-somos {
    list-style-type: none;
}

.malla-curricular {
    width: 80%;
    margin: 0 auto;
    max-width: 1000px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    padding-top: 20px;
}

.modulo {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.modulo-header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

th,
td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #ecf0f1;
    font-weight: 600;
    color: #2c3e50;
}

tr:last-child td {
    border-bottom: none;
}

.galeria-modulo {
    width: 85%;
    margin: 2rem auto;
    max-width: 1000px;
    position: relative;
}

.galeria-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.galeria-slide {
    display: flex;
    transition: transform 0.5s ease;
}

.slide-item {
    min-width: 100%;
    padding-bottom: 1rem;
}

.image-frame {
    height: 65vh;
    max-height: 550px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 10px;
}

.image-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.caption-box {
    background: #f1f5f9;
    margin: 0 15px;
    padding: 1.2rem;
    border-radius: 0 0 6px 6px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #3498db;
}

.caption-box h3 {
    margin: 0 0 0.3rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.caption-box p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Botones circulares con el celeste (#3498db) */
.galeria-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3498db;
    /* Color celeste */
    color: white;
    border: none;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.galeria-btn:hover {
    background-color: #2980b9;
    /* Celeste más oscuro al pasar mouse */
    transform: translateY(-50%) scale(1.1);
}

/* Botón de pausa centrado */
.galeria-controls {
    text-align: center;
    margin-top: 15px;
}

.galeria-pause-btn {
    background-color: #3498db;
    /* Color celeste */
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.galeria-pause-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Puntos indicadores */
.galeria-puntos {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.punto {
    width: 12px;
    height: 12px;
    background-color: #bdc3c7;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.punto.active {
    background-color: #3498db;
    /* Color celeste */
    transform: scale(1.3);
}

/* Estilos para la sección Empresas */
.empresas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.empresas-descripcion {
    flex: 1;
    min-width: 300px;
}

.descripcion-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
    border-right: 4px solid #3498db;
    height: 100%;
}

.descripcion-box h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.descripcion-box h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.beneficios-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.beneficios-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estilos para cuando actives el formulario */
.empresas-form {
    flex: 1;
    min-width: 300px;
}

.form-header {
    margin-bottom: 20px;
}

.form-header h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.form-header p {
    color: #7f8c8d;
    margin: 0;
}

.empresas-form .form-group {
    margin-bottom: 15px;
}

.empresas-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.empresas-form input,
.empresas-form textarea,
.empresas-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.empresas-form textarea {
    min-height: 100px;
}