/* Variables globales */
:root {
    --primary-color: #E31937;    /* Rojo INACAP */
    --secondary-color: #ffff;  /* Blanco */
    --text-color: #333333;
    --background-light: #f5f5f5;
    --spacing-unit: 1rem;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header y Navegación */
header {
    background: rgba(0,0,0,0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(0,0,0,0.8);
}

.logo {
    height: 60px;
}

/* Contenido Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('pymes.jpeg') center/cover;
    min-height: 80vh;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    padding: 5% 5%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Sección Beneficios */
.benefits {
    padding: 5rem 5%;
    background-color: var(--background-light);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-color);
}

/* Sección para un solo card */
.single-card {
    max-width: 500px;
    margin: 0 auto;
}

/* Sección Estadísticas */
.stats {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 5%;
}

.stats h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.stat-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.stat-item p {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: #333;
    color: var(--secondary-color);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info .logo {
    margin-bottom: 1rem;
}

.footer-info p, .footer-contact p {
    color: var(--secondary-color);
}

.footer-contact h3, .footer-social h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    nav {
        flex-direction: column;
        text-align: center;
    }

    .benefit-card, .testimonial-card {
        margin-bottom: 1rem;
    }
    
    .hero {
        min-height: 60vh;
    }
}

/* Nuevas secciones */
.tech-center,
.funding,
.transform,
.join {
    padding: 5rem 5%;
    background-color: var(--background-light);
}

.tech-center:nth-child(even),
.funding:nth-child(even),
.transform:nth-child(even),
.join:nth-child(even) {
    background-color: var(--secondary-color);
}

.tech-center h2,
.funding h2,
.transform h2,
.join h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Ajuste para la sección de transformación */
.transform .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Mejoras en las cards */
.benefit-card {
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card i {
    margin-bottom: 1.5rem;
}

/* Mejoras en las estadísticas */
.stat-item {
    padding: 2rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Ajustes responsive adicionales */
@media (max-width: 768px) {
    .tech-center,
    .funding,
    .transform,
    .join {
        padding: 3rem 5%;
    }
    
    .benefit-card {
        margin-bottom: 2rem;
    }
    
    .relator-image {
        height: 250px;
    }
    
    .btn-inscribirse {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Estilos del Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    position: relative;
    animation: modalOpen 0.3s ease-out;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal, .close-modal-form {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover, .close-modal-form:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.modal-content p {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.modal-item {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f8f8f8;
    text-align: center;
    transition: transform 0.3s ease;
}

.modal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-item h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.modal-item p {
    color: var(--text-color);
    text-align: center;
}

.modal-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.modal-footer p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Responsive del modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-item {
        padding: 1rem;
    }
}

/* Estilos del Modal Formulario */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: bold;
    color: var(--text-color);
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    text-transform: uppercase;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 25, 55, 0.1);
}

.form-footer {
    margin-top: 1rem;
    text-align: center;
}

.error-message {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group input:invalid {
    border-color: var(--primary-color);
}

.error-message {
    color: var(--primary-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

/* Estilo para el placeholder */
.form-group input::placeholder {
    color: #999;
    font-size: 0.9rem;
}

/* Prevenir las flechas en input number */
.form-group input::-webkit-outer-spin-button,
.form-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Estilos mejorados para la sección Programa de Especialización */
.diplomado {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.diplomado .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.diplomado h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 700;
}

.diplomado h3 {
    color: var(--primary-color);
    margin: 3rem 0 2rem;
    font-size: 1.8rem;
    text-align: center;
}

/* Información general */
.diplomado-datos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.dato-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.dato-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.dato-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Estilos para las secciones de objetivos y aprendizajes (ya no en acordeón) */
.objetivos-section, .aprendizajes-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.objetivos-content {
    margin-top: 1.5rem;
}

.objetivos-content p, .objetivos-content li {
    color: var(--text-color);
}

.objetivos-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-top: 1rem;
}

.objetivos-content li {
    margin-bottom: 0.5rem;
}

/* Learning Grid */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.learning-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.learning-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.learning-item h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.learning-item p {
    color: var(--text-color);
}

/* Módulos Grid */
.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.modulo {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.modulo:hover {
    transform: translateY(-5px);
}

.modulo-content {
    padding: 2rem;
    text-align: center;
}

.modulo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modulo h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.modulo p {
    color: var(--text-color);
}

/* Módulos Complementarios */
.modulos-complementarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.modulos-complementarios .modulo {
    padding: 1.5rem;
    text-align: center;
}

/* Duración Módulos */
.duracion-modulos {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.duracion-modulos ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.duracion-modulos li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: var(--text-color);
}

.duracion-modulos li:last-child {
    border-bottom: none;
}

.duracion-modulos i {
    color: var(--primary-color);
}

/* Sección Inscripción cursos */
.inscription-section {
    padding: 20px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.inscription-image {
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.banner-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-container {
    margin: 20px 0;
    position: relative;
}

.btn-inscribirse {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(227, 25, 55, 0.3);
}

.btn-inscribirse:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(227, 25, 55, 0.4);
}

.animated-cursor {
    margin-left: 8px;
    animation: cursorBlink 1.5s infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(-3px); }
}

/* Estilos para Select/Combobox */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    color: var(--text-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(227, 25, 55, 0.1);
}

.form-group select:hover {
    border-color: var(--primary-color);
}

/* Estilo para las opciones del select */
.form-group select option {
    padding: 0.8rem;
    font-size: 1rem;
}

/* Estilo para el placeholder del select */
.form-group select:invalid {
    color: #999;
}

/* Estilo cuando el select está deshabilitado */
.form-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Estilos para la sección de relatores */
.relatores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.relator-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.relator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.relator-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.relator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.relator-card:hover .relator-image img {
    transform: scale(1.05);
}

.relator-info {
    padding: 1.5rem;
    text-align: center;
}

.relator-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.relator-title {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.relator-specialty {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.relator-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

/* Estilos para la tabla de módulos de formalización */
.modulos-formalizacion {
    margin: 2rem 0;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.modulo-formalizacion-content {
    margin-top: 1.5rem;
}

.modulo-info {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.modulo-info h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modulo-info p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.modulo-info strong {
    color: var(--text-color);
    font-weight: bold;
}

.modulo-objetivo, .modulo-aprendizaje, .modulo-profesor {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.modulo-objetivo h5, .modulo-aprendizaje h5, .modulo-profesor h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}


.download-btn {
    background-color: #004f88; /* Azul INACAP */
    color: #fff;
    font-size: 18px;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.download-btn:hover {
    background-color: #003f6a; /* Azul más oscuro al pasar el ratón */
}

.download-btn:focus {
    outline: none;
}
