/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente principal */
body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: #fafafa;
}

/* Contenedor general */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
    
/* Barra superior Gobierno */
.barra-gobierno {
  background-color: #6b1e2e; /* rojo vino oscuro */
  color: #fff;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.barra-gobierno .container {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.barra-gobierno a {
  color: #f4f4f4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.barra-gobierno a:hover {
  color: #ff0000;
}

/* Encabezado principal */
.encabezado {
  background-color: #fff;
  border-bottom: 2px solid #6b1e2e;
  padding: 1rem 0;
}

.encabezado-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.logo {
  max-height: 3000px;
  object-fit: contain;
  border-radius: 2px;
  border: 1px solid #ddd;
  padding: 2px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(107, 30, 46, 0.3);
}

.info-escuela h1 {
  color: #6b1e2e;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.info-escuela p {
  font-size: 1rem;
  color: #444;
}

.info-escuela p strong {
  color: #6b1e2e;
}

.info-escuela p i {
  color: #6b1e2e;
  margin-right: 5px;
}

/* Menú de navegación */
.menu {
  background-color: #6b1e2e;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu .container ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.menu .container ul li {
  position: relative;
}

.menu .container ul li a {
  display: block;
  padding: 1rem 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.menu .container ul li a i {
  margin-right: 0.4rem;
}

/* Hover menu */
.menu .container ul li:hover > a {
  background-color: #8a2738;
  color: #fff;
}

/* Dropdown */
.menu .container ul li.dropdown:hover > ul.dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #8a2738;
  min-width: 180px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border-radius: 0 0 5px 5px;
  z-index: 10;
}

.dropdown-menu li {
  border-bottom: 1px solid #7a2234;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background-color: #b33445;
}

/* Hero */
.hero-bg {
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  color: #fff;
  text-align: center;
  position: relative;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(107, 30, 46, 0.75);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-right: 1rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.btn-rojo {
  background-color: #6b1e2e;
  color: #fff;
  border: none;
}

.btn-rojo:hover {
  background-color: #8a2738;
}

.btn-claro {
  background-color: rgba(255, 255, 255, 0.85);
  color: #6b1e2e;
  border: none;
}

.btn-claro:hover {
  background-color: #fff;
}

/* Main */
main {
  padding: 3rem 0;
}

/* Bloques */
.bloque {
  margin-bottom: 3rem;
}

.bloque h2 {
  font-size: 2rem;
  color: #6b1e2e;
  margin-bottom: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Grid 3 columnas */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Grid 2 columnas */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Cards de especialidades */
.card {
  background-color: #fff;
  padding: 1.8rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(107, 30, 46, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(107, 30, 46, 0.15);
}

.card .icono {
  font-size: 3rem;
  color: #6b1e2e;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #6b1e2e;
}

.card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.btn-mini {
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  background-color: #6b1e2e;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-mini:hover {
  background-color: #8a2738;
}

/* Sección con fondo claro */
.bg-claro {
  background-color: #f5f5f5;
  padding: 2rem 0;
  border-radius: 8px;
}

/* Noticias */
.noticia {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(107, 30, 46, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.noticia img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.noticia h3 {
  color: #6b1e2e;
  padding: 1rem;
  font-weight: 700;
}

.noticia p {
  padding: 0 1rem 1rem;
  color: #555;
  flex-grow: 1;
}

.noticia a {
  margin: 0 1rem 1rem;
  align-self: flex-start;
  text-decoration: none;
  color: #f2edee;
  font-weight: 600;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s;
}

.noticia a:hover {
  border-color: #f2edee;
}

/* Centrados */
.text-center {
  text-align: center;
  margin-top: 1.5rem;
}

/* Botones outline */
.btn-outline {
  padding: 0.8rem 2rem;
  font-weight: 700;
  border: 2px solid #6b1e2e;
  color: #6b1e2e;
  background-color: transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: #6b1e2e;
  color: white;
}

/* Footer */
.footer {
  background-color: #6b1e2e;
  color: #eee;
  padding: 2.5rem 0 1rem;
  margin-top: 3rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-grid div {
  flex: 1 1 250px;
}

.footer-logo {
  max-width: 140px;
  margin-bottom: 1rem;
}

.footer h4 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: #f2c1c5;
}

.footer ul {
  list-style: none;
}

.footer ul li a {
  color: #f4d0d3;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #fff;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Pie de footer */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: #ddd;
}

/* Botón WhatsApp fijo */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 0.7rem;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 9999;
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #1ebe57;
}

/* Responsive */
@media (max-width: 768px) {
  .encabezado-flex {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .logos {
    gap: 1rem;
  }

  .menu .container ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Efectos JavaScript */
.menu.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dropdown-menu.show {
    display: block;
}

input.error, textarea.error, select.error {
    border-color: #e31937 !important;
}

.form-error {
    color: #e31937;
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .menu .container ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .menu .container ul.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 10px;
    }
}
/* Estilos específicos para las carreras */
.carrera-icono .fa-users {
    color: #3498db; /* Azul para RH */
}

.carrera-icono .fa-calculator {
    color: #2ecc71; /* Verde para Contabilidad */
}

.carrera-icono .fa-bolt {
    color: #f39c12; /* Naranja para Electricidad */
}

.carrera-icono .fa-flask {
    color: #9b59b6; /* Morado para Laboratorio */
}

.carrera-icono .fa-cogs {
    color: #e74c3c; /* Rojo para Mecánica */
}

.carrera-icono .fa-laptop-code {
    color: #1abc9c; /* Turquesa para Programación */
}

/* Asegurar consistencia en las cards */
.carrera-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.carrera-descripcion {
    flex-grow: 1;
}

/* Mejorar el responsive */
@media (max-width: 600px) {
    .grid-carreras {
        grid-template-columns: 1fr;
    }
    
    .carrera-card {
        margin-bottom: 1.5rem;
    }
}
/* Estilos para la página de admisiones */
.seccion-admisiones {
    padding: 2rem 0;
}

.timeline-admisiones {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding-left: 50px;
}

.timeline-admisiones::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #6b1e2e;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-fecha {
    position: absolute;
    left: -50px;
    top: 0;
    width: 90px;
    padding: 0.5rem;
    background: #6b1e2e;
    color: white;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 3px solid #6b1e2e;
}

.timeline-content h3 {
    color: #6b1e2e;
    margin-bottom: 0.5rem;
}

.btn-timeline {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.5rem 1rem;
    background: #6b1e2e;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-timeline:hover {
    background: #8a2738;
}

/* Requisitos */
.requisitos-admision {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.requisitos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.requisitos-documentos ul, .requisitos-extra ul {
    list-style: none;
}

.requisitos-documentos li, .requisitos-extra li {
    margin-bottom: 0.8rem;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.requisitos-documentos i {
    color: #27ae60;
}

.requisitos-extra i {
    color: #2980b9;
}

.descargas-requisitos {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Formulario */
.formulario-admision {
    margin: 3rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.btn-enviar {
    background: #6b1e2e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-enviar:hover {
    background: #8a2738;
}

/* Resultados */
.seccion-resultados {
    margin-top: 3rem;
}

.resultados-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.resultados-info ul {
    list-style: none;
    margin-top: 1rem;
}

.resultados-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.resultados-info i {
    color: #6b1e2e;
    margin-top: 0.2rem;
}

.form-consulta {
    display: flex;
    margin-top: 1rem;
}

.form-consulta input {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.btn-consulta {
    background: #6b1e2e;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.nota {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-admisiones {
        padding-left: 30px;
    }
    
    .timeline-fecha {
        left: -30px;
        width: 70px;
        font-size: 0.9rem;
    }
    
    .requisitos-grid,
    .resultados-content {
        grid-template-columns: 1fr;
    }
    
    .form-consulta {
        flex-direction: column;
    }
    
    .btn-consulta {
        border-radius: 0 0 4px 4px;
        padding: 0.8rem;
        margin-top: 0.5rem;
    }
}
/* Estilos para página de Dirección */
.seccion-direccion {
    padding: 2rem 0;
}

.director-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.director-foto img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6b1e2e;
}

.director-datos h2 {
    color: #6b1e2e;
    margin-bottom: 0.5rem;
}

.director-datos p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.areas-direccion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.area-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.area-icono {
    font-size: 2.5rem;
    color: #6b1e2e;
    margin-bottom: 1rem;
}

.area-card h2 {
    color: #6b1e2e;
    margin-bottom: 0.5rem;
}

.area-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn-area {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #6b1e2e;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-area:hover {
    background: #8a2738;
}

.documentos-direccion {
    margin: 3rem 0;
}

.documentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.btn-doc {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-doc:hover {
    background: #6b1e2e;
    color: white;
    border-color: #6b1e2e;
}

/* Responsive */
@media (max-width: 768px) {
    .director-info {
        flex-direction: column;
        text-align: center;
    }
    
    .director-datos p {
        justify-content: center;
    }
    
    .areas-direccion {
        grid-template-columns: 1fr;
    }
} 
/* Estilos para Vinculación */
.hero-vinculacion {
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-vinculacion h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-vinculacion .lead {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Tarjetas de Convenio */
.convenio-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.convenio-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.logo-empresa {
    max-height: 80px;
    max-width: 80%;
    margin-bottom: 1rem;
    object-fit: contain;
}

.convenio-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.convenio-body p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.convenio-footer {
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    text-align: center;
}

.btn-detalle {
    display: inline-block;
    color: #6b1e2e;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.btn-detalle:hover {
    color: #8a2738;
}

.btn-detalle i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* Proceso de Titulación */
.pasos-container {
    margin: 2rem 0;
    padding-left: 2rem;
}

.paso-titulacion {
    padding: 1.5rem 0 1.5rem 2rem;
    position: relative;
    margin-left: 1.5rem;
}

.paso-titulacion:last-child {
    padding-bottom: 0;
}

.paso-numero {
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    background: #6b1e2e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.documentos-titulacion {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
}

.documentos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-doc {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: #6b1e2e;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-doc:hover {
    background: #8a2738;
}

/* Testimonios */
.testimonio-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.testimonio-texto {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonio-texto::before {
    content: '"';
    font-size: 3rem;
    color: #6b1e2e;
    opacity: 0.2;
    position: absolute;
    left: -1rem;
    top: -1rem;
}

.testimonio-autor {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonio-autor img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6b1e2e;
}

.testimonio-autor h4 {
    margin-bottom: 0.2rem;
    color: #6b1e2e;
}

.testimonio-autor p {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-vinculacion {
        padding: 3rem 0;
    }
    
    .pasos-container {
        padding-left: 1rem;
    }
    
    .paso-titulacion {
        margin-left: 1rem;
        padding-left: 1.5rem;
    }
    
    .paso-numero {
        left: -1.8rem;
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.9rem;
    }
}
/* Estilos para el proceso de titulación */
.proceso-titulacion {
    margin: 4rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
}

.pasos-titulacion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.paso {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.paso-numero {
    width: 40px;
    height: 40px;
    background: #6b1e2e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

/* Estilos para el botón de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .pasos-titulacion {
        grid-template-columns: 1fr;
    }
    
    .convenio-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* Estilos para la página de vinculación */
.seccion-vinculacion {
    padding: 2rem 0;
}

.vinculacion-intro {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.vinculacion-texto {
    flex: 1;
}

.vinculacion-texto h2 {
    color: #6b1e2e;
    margin-bottom: 1rem;
}

.vinculacion-texto ul {
    list-style: none;
    margin-top: 1rem;
}

.vinculacion-texto li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.vinculacion-texto i {
    color: #6b1e2e;
}

.vinculacion-imagen {
    flex: 1;
}

.vinculacion-imagen img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.procesos-vinculacion {
    margin: 3rem 0;
}

.procesos-vinculacion h2 {
    margin-bottom: 2rem;
    color: #6b1e2e;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.proceso-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border-left: 4px solid #6b1e2e;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.proceso-icono {
    font-size: 1.8rem;
    color: #6b1e2e;
    margin-top: 0.3rem;
}

.proceso-card h3 {
    color: #6b1e2e;
    margin-bottom: 0.5rem;
}

.documentos-vinculacion {
    margin: 3rem 0;
}

.documentos-vinculacion h2 {
    margin-bottom: 1.5rem;
    color: #6b1e2e;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

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

.documento-item {
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.documento-item:hover {
    transform: translateY(-3px);
}

.documento-item i {
    font-size: 1.5rem;
    color: #6b1e2e;
}

.documento-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.documento-item a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .vinculacion-intro {
        flex-direction: column;
    }
    
    .documentos-grid {
        grid-template-columns: 1fr;
    }
}
/* Estilos para la página de vinculación */
.seccion-vinculacion {
    padding: 2rem 0;
}

.vinculacion-intro {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #6b1e2e;
}

.vinculacion-intro h2 {
    color: #6b1e2e;
    margin-bottom: 1rem;
}

.vinculacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.vinculacion-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.vinculacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.vinculacion-icono {
    font-size: 2.5rem;
    color: #6b1e2e;
    margin-bottom: 1rem;
    text-align: center;
}

.vinculacion-card h2 {
    color: #6b1e2e;
    text-align: center;
    margin-bottom: 1.5rem;
}

.vinculacion-content h3 {
    color: #444;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

.vinculacion-content ul, .vinculacion-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.vinculacion-content li {
    margin-bottom: 0.5rem;
}

/* Empresas Vinculadas */
.empresas-vinculadas {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.sectores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.sector-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.sector-card i {
    font-size: 2rem;
    color: #6b1e2e;
    margin-bottom: 1rem;
}

.sector-card h3 {
    color: #6b1e2e;
    margin-bottom: 0.5rem;
}

.sector-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Contacto Vinculación */
.contacto-vinculacion {
    margin-top: 3rem;
}

.contacto-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contacto-info p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contacto-info i {
    color: #6b1e2e;
    width: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .vinculacion-grid {
        grid-template-columns: 1fr;
    }
    
    .sectores-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .sectores-grid {
        grid-template-columns: 1fr;
    }
}
:root {
  --color-primario: #6b1e2e;
  --color-secundario: #d4af37;
  --color-fondo: #f8f9fa;
  --color-texto: #333;
  --sombra: 0 5px 15px rgba(0,0,0,0.1);
  --transicion: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--color-texto);
  background-color: var(--color-fondo);
  overflow-x: hidden;
}

/* Barra de gobierno mejorada */
.barra-gobierno {
  background: linear-gradient(90deg, #1a1a2e, #6b1e2e);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  position: relative;
  z-index: 1000;
}

.barra-gobierno .container {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  align-items: center;
}

.barra-gobierno a {
  color: white;
  text-decoration: none;
  transition: var(--transicion);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.barra-gobierno a:hover {
  color: var(--color-secundario);
  transform: translateY(-2px);
}

/* Header épico */
.encabezado {
  background: white;
  position: relative;
  padding: 1.5rem 0;
  box-shadow: var(--sombra);
}

.encabezado::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primario), var(--color-secundario));
}

.encabezado-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo {
  max-height: 80px;
  transition: var(--transicion);
}

.logo:hover {
  transform: scale(1.05);
}

.info-escuela h1 {
  font-size: 2rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.info-escuela h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-secundario);
}

/* Menú interactivo */
.menu {
  background: var(--color-primario);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.menu .container ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

.menu li {
  position: relative;
}

.menu li a {
  color: white;
  text-decoration: none;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transicion);
  font-weight: 500;
}

.menu li a:hover, .menu li a.active {
  background: rgba(255,255,255,0.15);
}

.menu li a i {
  font-size: 1.1rem;
}

/* Hero section con efecto parallax */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: white;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1);
  transition: transform 10s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.05);
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107,30,46,0.85), rgba(107,30,46,0.6));
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transicion);
  display: inline-block;
  text-align: center;
  min-width: 180px;
}

.btn-rojo {
  background: white;
  color: var(--color-primario);
  border: 2px solid white;
}

.btn-rojo:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-transparente:hover {
  background: white;
  color: var(--color-primario);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Secciones principales */
.bloque {
  padding: 4rem 0;
}

.bloque h2 {
  font-size: 2.2rem;
  color: var(--color-primario);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.bloque h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--color-secundario);
}

/* Grid de tarjetas */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: var(--transicion);
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card .icono {
  font-size: 3rem;
  color: var(--color-primario);
  margin-bottom: 1rem;
  display: inline-block;
  transition: var(--transicion);
}

.card:hover .icono {
  transform: scale(1.1);
  color: var(--color-secundario);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-primario);
}

.card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.btn-mini {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--color-primario);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transicion);
  border: 2px solid var(--color-primario);
}

.btn-mini:hover {
  background: transparent;
  color: var(--color-primario);
  transform: translateY(-3px);
}

/* Noticias interactivas */
.noticia {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.noticia img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.noticia:hover img {
  transform: scale(1.1);
}

.noticia-content {
  padding: 1.5rem;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.noticia h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--color-primario);
}

.noticia p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Footer mejorado */
.footer {
  background: linear-gradient(135deg, #1a1a2e, #6b1e2e);
  color: white;
  padding: 3rem 0 1rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--color-secundario), var(--color-primario));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 1rem;
}

.footer h4 {
  color: var(--color-secundario);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--color-secundario);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.7rem;
}

.footer ul li a {
  color: #ddd;
  text-decoration: none;
  transition: var(--transicion);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer ul li a:hover {
  color: var(--color-secundario);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* Botón de WhatsApp flotante */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transicion);
  animation: pulse 2s infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  background: #128C7E;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-text h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .encabezado-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .hero {
    height: auto;
    padding: 6rem 0;
  }
  
  .hero-text h2 {
    font-size: 2rem;
  }
  
  .menu .container ul {
    flex-direction: column;
    gap: 0;
  }
  
  .menu li {
    width: 100%;
  }
  
  .menu li a {
    justify-content: center;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-text h2 {
    font-size: 1.8rem;
  }
  
  .bloque h2 {
    font-size: 1.8rem;
  }
}
/* Estilos generales para las tarjetas */
.card-programacion {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-programacion h3 {
    color: #6b1e2e;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Estilo para la lista de opciones laborales */
.lista-opciones {
    margin: 15px 0;
}

.opcion {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #6b1e2e;
    text-align: center;
    line-height: 18px;
    margin-right: 10px;
    color: #6b1e2e;
}

.perfil {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

/* Estilo para los lenguajes */
.lenguajes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.lenguaje {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Estilo para el editor de código */
.editor-codigo {
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.cabecera-editor {
    background: #6b1e2e;
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boton-copiar {
    background: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    padding: 3px 8px;
    cursor: pointer;
}

.codigo {
    background: #f8f8f8;
    padding: 15px;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
}

.boton-ejecutar {
    width: 100%;
    background: #6b1e2e;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
}
/* Estilos para el menú responsivo */
@media (max-width: 768px) {
  .menu {
    position: relative;
    min-height: 50px;
  }
  
  .menu .container {
    padding: 0 !important;
  }
  
  .menu ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 50px;
    left: 0;
    background-color: #6b1e2e;
    padding: 15px 0;
    margin: 0;
    z-index: 1000;
    list-style: none;
  }
  
  .menu ul.show-mobile {
    display: flex !important;
  }
  
  .menu ul li {
    margin: 0 !important;
    padding: 10px 20px !important;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  
  .menu ul li a {
    justify-content: center !important;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 8px 0;
  }
  
  .menu ul li i {
    margin-right: 10px !important;
    font-size: 18px;
  }
  
  #mobile-menu-btn {
    display: block !important;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1001;
  }
}

/* Estilos para desktop (opcional, ajusta según necesites) */
@
}
.cuadro-mision i {
  color: #2E86C1; /* Azul institucional */
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.cuadro-mision i:hover {
  transform: scale(1.1);
  transition: 0.3s;
}
/* Cambiar el color de fondo del dropdown */
.dropdown-menu {
    background-color: #f8f9fa; /* Color claro de ejemplo */
}

/* Cambiar el color de los items del dropdown */
.dropdown-item {
    color: #212529; /* Color de texto oscuro */
}

/* Cambiar el color al pasar el mouse */
.dropdown-item:hover {
    background-color: #e9ecef;
    color: #000;
}:root {
    --dropdown-bg: #ffffff;
    --dropdown-link-color: #212529;
    --dropdown-link-hover-bg: #f8f9fa;
}
/* Estilos para dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #6b1e2e;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white; /* Color de texto blanco para que se vea bien en el fondo rojo */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}
/* Estilos para el encabezado mejorado */
.encabezado {
  background: linear-gradient(135deg, #6b1e2e 0%, #8a2a3e 100%);
  color: white;
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logos-container {
  display: flex;
  align-items: center;
  padding-right: 20px;
  position: relative;
}

.logos-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

.logo-sep, .logo-dgeti, .logo-escudo {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-escudo {
  height: 90px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-sep:hover, .logo-dgeti:hover, .logo-escudo:hover {
  transform: scale(1.05);
}

.school-name {
  position: relative;
  padding-left: 20px;
}

.school-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #f8d56b;
  border-radius: 3px;
}

.institution-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cbtis-text {
  color: white;
}

.number-text {
  color: #f8d56b;
  font-weight: 800;
}

.institution-fullname {
  font-size: 1.1rem;
  margin: 5px 0 10px;
  font-weight: 500;
  opacity: 0.9;
}

.institution-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
}

.institution-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.clave i {
  color: #f8d56b;
}

.location i {
  color: #a8d8f8;
}

/* Responsive */
@media (max-width: 768px) {
  .encabezado-flex {
    flex-direction: column;
  }
  
  .logos-wrapper {
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .institution-name {
    font-size: 2rem;
    justify-content: center;
  }
  
  .institution-fullname, .institution-meta {
    text-align: center;
    justify-content: center;
  }
  
  .school-name::before {
    display: none;
.metal-alcalino { background-color: #ff9999; }
.metal-alcalinoterreo { background-color: #ffcc99; }
.lantanido { background-color: #ffb3ff; }
.actinido { background-color: #ff99cc; }
.metal-transicion { background-color: #ffcc66; }
.metal-postransicion { background-color: #cccccc; }
.metaloides { background-color: #99cc99; }
.no-metal { background-color: #99ccff; }
.halogeno { background-color: #ccffff; }
.gas-noble { background-color: #cc99ff; }

/* Contenedor principal de la sopa de letras */
.sopa-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Suaviza el scroll en iOS */
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
}

/* Tabla de la sopa de letras */
.tabla-sopa {
    width: auto; /* No forzar un ancho fijo */
    min-width: 300px; /* Ancho mínimo */
    border-collapse: collapse;
    margin: 0 auto;
}

/* Celdas de letras */
.tabla-sopa td {
    width: 30px; /* Tamaño fijo para móvil */
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 16px;
    padding: 0;
}

/* Ajustes específicos para móvil */
@media (max-width: 768px) {
    .tabla-sopa td {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    /* Permite desplazamiento horizontal */
    .sopa-container {
        white-space: nowrap;
    }
}
/* Contenedor de la tabla periódica */
.tabla-periodica-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 20px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Estilos base de la tabla */
.tabla-periodica {
    width: auto;
    min-width: 600px; /* Ancho mínimo para mantener estructura */
    border-collapse: collapse;
    margin: 0 auto;
}

/* Celdas de elementos */
.tabla-periodica td {
    width: 50px;
    height: 50px;
    text-align: center;
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 12px;
    background-color: #fff;
}

/* Ajustes para móvil */
@media (max-width: 768px) {
    .tabla-periodica td {
        width: 40px;
        height: 40px;
        font-size: 10px;
        padding: 2px;
    }
    
    /* Ocultar información secundaria en móvil */
    .tabla-periodica .info-secundaria {
        display: none;
    }
}  
/* Estilos para el menú móvil */
.mobile-menu-button {
    display: none;
    background: #6b1e2e;
    color: white;
    border: none;
    padding: 12px 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
}

.mobile-menu-button.active {
    background: #5a1727;
}

.menu ul.show-mobile-menu {
    display: block !important;
}

.dropdown-content.show-dropdown {
    display: block !important;
    position: static;
    width: 100%;
    box-shadow: none;
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
    
    .menu ul {
        display: none;
        flex-direction: column;
    }
    
    .dropdown-content {
        display: none;
    }
    
    .dropdown .dropbtn::after {
        content: ' ▼';
        font-size: 0.8em;
    }
}
.scroll-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}
 