/* Estilos generales */
:root {
  --primary-color: #053679;
  --secondary-color: #316fd5;
  --accent-color: #ffde59;
  --text-color: #333;
  --light-color: #efefef;
  --dark-color: #343a40;
  --font-family: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f5f5f5;
}

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

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

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

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.intranet-btn {
  background-color: #ffde59;
  color: #333;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 20px;
  transition: all 0.3s;
  font-weight: 600;
  border: 2px solid #ffde59;
}

.intranet-btn:hover {
  background-color: #053679;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(5, 54, 121, 0.3);
}

.social-links-small {
  display: flex;
  gap: 10px;
}

.social-links-small a {
  color: #333;
  font-size: 16px;
  transition: color 0.3s;
  text-decoration: none;
}

.social-links-small a:hover {
  color: #053679;
}

/* Estilo para el logo de SENCE */
.sence-logo {
  margin-left: 15px;
  display: flex;
  align-items: center;
}

.sence-logo img {
  height: 55px;
  width: auto;
  transition: opacity 0.3s ease;
}

.sence-logo img:hover {
  opacity: 0.8;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.logo img {
  max-height: 70px;
}

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

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

nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #053679;
}

/* Separador vertical en el menú */
.menu-divider {
  width: 1px;
  height: 20px;
  background-color: rgba(51, 51, 51, 0.3);
  margin: 0 10px;
}

/* Estilo para el icono de enlace externo */
nav ul li a i.fa-external-link-alt {
  font-size: 12px;
  margin-left: 5px;
  opacity: 0.7;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #333;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-placeholder.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 150px 20px 100px;
  margin-top: 70px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

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

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #218838;
}

/* Secciones */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.section-content {
  margin-bottom: 40px;
}

/* Sobre Nosotros - Diseño Minimalista */
.about {
  background: #ffffff;
  padding: 120px 0;
  text-align: center;
  width: 100%;
  display: block !important;
}

.about .container {
  max-width: 1400px;
  margin: 0 auto !important;
  padding: 0 40px;
  width: 100% !important;
  text-align: center !important;
  left: auto !important;
  transform: none !important;
  position: relative !important;
}

.about .section-header {
  margin-bottom: 60px;
}

.about .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #053679;
  margin-bottom: 20px;
}

.about .section-subtitle {
  font-size: 1rem;
  color: #316fd5;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.about-content {
  text-align: center;
  width: 100%;
  display: block !important;
}

.about-content .about-text {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  min-width: auto !important;
}

.about-text.centered h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #053679;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.about-text.centered p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
  text-align: justify;
}

.about-box {
  background: #f8f9fa;
  border-left: 4px solid #053679;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100% !important;
  max-width: 100% !important;
}

.about-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(5, 54, 121, 0.1);
}

.about-box .icon {
  font-size: 2rem;
  color: #053679;
  margin-bottom: 15px;
}

.about-box h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #053679;
  margin-bottom: 15px;
}

.about-box p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.about-box .values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.about-box .values-list li {
  padding: 15px 20px;
  color: #666;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 20px;
}

.about-box .values-list li:hover {
  background: #053679;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(5, 54, 121, 0.2);
}

.about-box .values-list li:before {
  content: "•";
  color: #053679;
  position: absolute;
  left: 15px;
  font-weight: bold;
  font-size: 1.2rem;
}

.about-box .values-list li:hover:before {
  color: #ffde59;
}

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

.about-text.centered {
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.about-content.centered .about-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

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

/* Cursos y Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.more-courses {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
}

.more-courses h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

.course-list {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

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

.course-list li:hover {
  transform: translateY(-5px);
}

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

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

.service-image {
  height: 200px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image img {
  max-width: 100%;
  max-height: 100%;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Certificaciones */
.accreditations {
  background-color: var(--light-color);
}

.accreditation-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.accreditation-item {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 250px;
  display: flex;
  flex-direction: column;
  height: 350px;
  justify-content: space-between;
}

.accreditation-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  object-fit: contain;
  height: 150px;
  width: 150px;
}

.btn-small {
  display: block;
  background-color: var(--secondary-color);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin: 10px auto 0;
  transition: background-color 0.3s;
  width: 80%;
  text-align: center;
}

.btn-small:hover {
  background-color: var(--primary-color);
}

/* Políticas de Calidad */
.policies {
  background-color: white;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
}

.policy-intro {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

.policy-list {
  padding-left: 20px;
}

.policy-list li {
  margin-bottom: 15px;
  line-height: 1.7;
  position: relative;
  padding-left: 15px;
}

.policy-list li:before {
  content: '•';
  position: absolute;
  left: -10px;
  color: var(--primary-color);
  font-weight: bold;
}

.accreditation-item h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Contacto */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

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

.contact-info h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 15px;
}

.map-container {
  margin: 30px 0;
}

.map-container h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.map-container iframe {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.form-group textarea {
  height: 150px;
}

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

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

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

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: white;
}

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

.social-links a {
  color: white;
  font-size: 22px;
  transition: transform 0.3s, color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none !important;
  border-bottom: none;
}

.social-links a:hover {
  transform: translateY(-5px);
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  text-decoration: none;
}

.whatsapp-button a:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .header-right {
    flex-direction: column;
    align-items: flex-end;
  }
  
  .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    background-color: #efefef;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-bar .intranet-btn {
    display: inline-block;
    font-size: 0.8rem;
    padding: 6px 12px;
    margin-right: 0;
  }

  .social-links-small {
    display: none;
  }

  .sence-logo img {
    height: 40px;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #efefef;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  nav ul li a {
    color: #333;
  }

  nav ul li a.mobile-intranet-link {
    background-color: #ffde59;
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
  }

  nav ul li a.mobile-intranet-link:hover {
    background-color: #053679;
    color: white;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
  }
}
