/* === Fuentes y básicos === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f7fb;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sticky footer */
	
}

/* Contenedor principal para empujar footer */
.main-content {
    flex: 1;
}

/* === Header === */
header {
    background: #0f172a;
    color: white;
    padding: 20px 0;
}
header .header-container {
    max-width: 1350px;
    margin: auto;
    text-align: center;
    padding: 0 20px;
}
header h1 {
    margin: 0 0 12px 0;
    font-size: 24px;
}
.nav-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.nav-tabs a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.25s;
    font-size: 20px;
}
.nav-tabs a:hover {
    background: #2563eb;
}
.nav-tabs a.active {
    background: #3b82f6;
}

/* === Footer === */
footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
	font-size: 15px;
}
footer .socials a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
    transition: 0.2s;
}
footer .socials a:hover {
    text-decoration: underline;
}

/* === Contenedor general de tarjetas === */
.container {
    max-width: 1350px;
    margin: auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* === Secciones === */
.section {
    grid-column: 1/-1;
    font-size: 30px;
    font-weight: 600;
    margin-bottom: -10px;
    color: #1e293b;
}

/* === Tarjetas de carpetas y archivos === */
.card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* === Preview de carpeta o archivo === */
.preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
}
.preview img, .preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Iconos de carpetas y archivos */
.icon-folder {
    font-size: 60px;
    color: #db931e;
}
.icon-file {
    font-size: 60px;
    color: #e84545;
}
.preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* === Contenido === */
.content {
    padding: 15px;
    text-align: center;
}
.content h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #0f172a;
}

/* === Botones === */
.buttons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.btn {
    padding: 6px 14px;
    border-radius: 7px;
    color: white;
    font-size: 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.btn.view { background: #2563eb; }
.btn.view:hover { background: #1d4ed8; }
.btn.download { background: #059669; }
.btn.download:hover { background: #047857; }

/* === Botón Volver Profesional === */
.back {
    display: inline-flex;              /* Para alinear icono y texto */
    align-items: center;
    gap: 8px;                          /* Espacio entre icono y texto */
    background: #2563eb;               /* Fondo azul premium */
    color: white;                       /* Texto blanco */
    padding: 12px 25px;                /* Más grande que antes */
    font-size: 16px;                    /* Texto más legible */
    font-weight: 600;
    border-radius: 12px;               /* Bordes redondeados */
    text-decoration: none;             /* Sin subrayado */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); /* Sombra suave */
    transition: all 0.3s ease;
    margin-bottom: 25px;               /* Separación del contenido */
}

.back i {
    font-size: 18px;                   /* Icono ligeramente más grande */
}

.back:hover {
    background: #1d4ed8;               /* Cambio de color al pasar el ratón */
    transform: translateY(-3px);        /* Levanta un poco el botón */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.back-container {
    text-align: center;   /* Centra el botón en la página */
    margin: 30px 0;       /* Separación superior e inferior */
}

/* === Popup cursos (para future sección formación) === */
.popup {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.7);
}
.popup-content {
    background:white;
    margin:0 20px;
    padding:35px;
    border-radius:20px;
    max-width:650px;
    text-align:left;
    position:relative;
    animation: popupFade .4s ease;
}
@keyframes popupFade {
    from {opacity:0; transform:translateY(-20px);}
    to {opacity:1; transform:translateY(0);}
}
.popup-content h3 { color:#0f172a; font-size:24px; margin-bottom:15px; font-weight:700; }
.popup-content p { color:#334155; font-size:16px; line-height:1.5; }
.close {
    position:absolute;
    top:15px;
    right:20px;
    font-size:28px;
    font-weight:bold;
    color:#334155;
    cursor:pointer;
}
.close:hover { color:#000; }

/* === Contenedor específico Formacion === */
.formacion-section {
    padding:80px 20px;
    background:#f9fafb;
}

.formacion-container {
    max-width: 1350px;
    margin: auto;
    padding: 40px 20px;
}

/* Grid de cursos premium */
.courses-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
    gap:40px;
}

/* Tarjetas de curso premium */
.course-card {
    background:white;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 20px 40px rgba(0,0,0,0.08);
    transition:.3s;
    display:flex;
    flex-direction:column;
}
.course-card:hover {
    transform:translateY(-10px);
    box-shadow:0 30px 60px rgba(0,0,0,0.15);
}

/* Imagen con overlay */
.course-img {
    position:relative;
    height:220px;
    overflow:hidden;
}
.course-img img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition: transform .3s;
}
.course-card:hover .course-img img {
    transform: scale(1.07);
}

/* Overlay con botones */
.overlay {
    position:absolute;
    top:0; left:0; right:0; bottom:0;
    background:rgba(0,0,0,0.4);
    opacity:0;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:opacity .3s;
}
.course-card:hover .overlay {
    opacity:1;
}
.overlay-buttons {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}
.overlay-buttons .btn {
    padding:10px 18px;
    font-size:14px;
    border-radius:8px;
    font-weight:600;
    text-decoration:none;
    border:none;
    cursor:pointer;
}
.view { background:#2563eb; color:white; }
.view:hover { background:#1d4ed8; }
.enroll { background:#059669; color:white; }
.enroll:hover { background:#047857; }

/* Contenido */
.course-content {
    padding:20px;
    text-align:center;
}
.course-content h3 {
    font-size:22px;
    color:#0f172a;
    margin-bottom:10px;
    font-weight:700;
}
.short-desc {
    font-size:15px;
    color:#475569;
    margin-bottom:12px;
}
.course-content p {
    font-size:18px;
    color:#64748b;
    margin:4px 0;
}

/* Título principal sección */
.section-title {
    font-size:42px;
    text-align:center;
    margin-bottom:50px;
    font-weight:800;
    color:#0f172a;
    position:relative;
    letter-spacing:1px;
}
.section-title::after {
    content:"";
    display:block;
    width:100px;
    height:4px;
    background:linear-gradient(90deg,#2563eb,#3b82f6);
    margin:12px auto 0;
    border-radius:2px;
}

/* Responsive */
@media(max-width:768px){
    .section-title { font-size:32px; }
    .course-img { height:180px; }
}
@media(max-width:480px){
    .course-img { height:160px; }
    .course-content h3 { font-size:18px; }
}

/* === Contacto Premium === */
.contact-section {
    padding: 80px 20px;
    background: #f4f7fb;
}

.contact-container {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

/* Logo */
.contact-logo img {
    width: 200px;
    height: auto;
    margin-bottom: 40px;
    transition: transform 0.3s;
}
.contact-logo img:hover {
    transform: scale(1.05);
}

/* Tarjetas de información */
.contact-info-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}
.contact-card {
    background: white;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    flex: 1 1 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}
.contact-card p {
    font-size: 15px;
    color: #475569;
    margin: 4px 0;
}
.contact-card a {
    color: #2563eb;
    text-decoration: none;
}
.contact-card a:hover {
    text-decoration: underline;
}

/* Botones de acción */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.contact-buttons .btn {
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 10px;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}
.btn.call { background: #2563eb; }
.btn.call:hover { background: #1d4ed8; }
.btn.whatsapp { background: #25d366; }
.btn.whatsapp:hover { background: #1ebe57; }
.btn.email { background: #059669; }
.btn.email:hover { background: #047857; }

/* Mapa */
.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Responsive */
@media(max-width:768px){
    .contact-info-cards { flex-direction: column; }
}

/* Header landing premium */

.landing-header{
  position:absolute;
  top:40px;
  width:100%;
  text-align:center;
  z-index:2;
  color:white;
}

.landing-header img{
  width:160px;
  margin-bottom:10px;
}

.landing-header h1{
  font-size:42px;
  font-weight:600;
  margin:0;
  letter-spacing:1px;
}

.landing-header p{
  font-size:18px;
  opacity:0.9;
}
