/*
Theme Name: CECCL Theme
Author: GTR-FA
Description: Tema personalizado para el Centro de Evaluación y Certificación de Competencias Laborales.
Version: 1.0
*/

body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #ffffff;
}

section.hero {
  background-image: url('images/fondo-cermin.png');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 120px 20px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero button {
  background-color: #83701f;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
}

.tarjetas-info {
  background-color: #f8f8f8;
  padding: 60px 20px;
  text-align: center;
}

.container-tarjetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.tarjeta {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex: 1 1 280px;
  max-width: 350px;
}

.tarjeta h3 {
  color: #333;
  font-size: 20px;
  margin-bottom: 15px;
}

.tarjeta p {
  color: #555;
  font-size: 16px;
  margin-bottom: 20px;
}

.btn-tarjeta {
  background-color: #83701f;
  color: white;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-tarjeta:hover {
  background-color: #6a5a19;
}

header {
  background-color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  color: #333333;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #83701f;
}

/* Sliders personalizados */
.custom-sliders {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #444;
  background-size: cover;
  background-position: center;
  padding: 40px;
  box-sizing: border-box;
}

.slide.active {
  display: flex;
}

.slider-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.slider-content p {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 16px;
}

.slider-button {
  background-color: #83701f;
  color: white;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}



/* Fondo para slider 1 - "Valoramos tu experiencia" */
.custom-sliders .slider-container .slide:nth-child(1) {
    background-image: url('images/slider1.png');
    background-size: cover;
    background-position: center;
}

/* Fondo para slider 2 - "ChileValora" */
.custom-sliders .slider-container .slide:nth-child(2) {
    background-image: url('images/slider2.png');
    background-size: cover;
    background-position: center;
}

/* Slider Quiénes Somos */
.slider-nosotros {
  background-image: url('assets/img/Nosotros-cermin.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-overlay {
  background-color: transparent;
  padding: 60px 20px;
  text-align: center;
  width: 100%;
}

.slider-overlay h1 {
  color: white;
  font-size: 48px;
  font-weight: bold;
  margin: 0;
}

/* Ajuste de fuente para párrafos justificados */
p[style*="text-align: justify"] {
  font-size: 18px;
  line-height: 1.7;
}

/* CERTIFICACIÓN - LINEA DE TIEMPO VERTICAL */
.timeline-section {
  padding: 60px 20px;
  background-color: #ffffff;
}
.timeline-container {
  position: relative;
  margin: 0 auto;
  padding-left: 40px;
  border-left: 3px solid #003366;
  max-width: 800px;
}
.timeline-item {
  position: relative;
  margin-bottom: 50px;
}
.timeline-icon {
  position: absolute;
  left: -27px;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: #003366;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: bold;
  font-size: 18px;
}
.timeline-content {
  background-color: #f9f9f9;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}
.timeline-content h2 {
  margin-top: 0;
  color: #003366;
  font-size: 22px;
}
.timeline-content p {
  font-size: 16px;
  color: #333;
}
.timeline-content ul {
  padding-left: 20px;
}
.timeline-content ul li {
  margin-bottom: 8px;
}


/* Fondo sección certificación-header */
.certificacion-header {
  background-image: url('assets/img/certificacion-header.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: white;
}
.certificacion-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
}
.certificacion-header p {
  font-size: 18px;
  color: #f0f0f0;
}


/* Justificar textos en la línea de tiempo */
.timeline-content p {
  text-align: justify;
}
.timeline-content ul {
  text-align: justify;
}


/* CONTACTO */
.contacto-header {
  background-color: #003366;
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.contacto-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
.contacto-header p {
  font-size: 18px;
}

.contacto-form-section {
  padding: 60px 20px;
  background-color: #f7f7f7;
}
.contacto-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.contacto-form .form-group {
  margin-bottom: 20px;
}
.contacto-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
}
.contacto-form button {
  background-color: #003366;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}
.contacto-form button:hover {
  background-color: #00528a;
}


/* FINANCIAMIENTO */
.financiamiento-header {
  background-color: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
}
.financiamiento-header h1 {
  font-size: 34px;
  margin-bottom: 10px;
}
.financiamiento-header p {
  font-size: 18px;
  color: #666;
}

.financiamiento-detalle {
  padding: 60px 20px;
  background-color: #ffffff;
}
.financiamiento-detalle h2 {
  font-size: 26px;
  color: #003366;
  margin-bottom: 20px;
}
.financiamiento-detalle ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.financiamiento-detalle ul li {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}
.financiamiento-detalle p {
  font-size: 16px;
}


/* TARJETAS DE FINANCIAMIENTO */
.financiamiento-steps {
  padding: 60px 20px;
  background-color: #f9f9f9;
}
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 20px 25px;
  margin-bottom: 25px;
}
.step-number {
  background-color: #003366;
  color: white;
  font-size: 20px;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  flex-shrink: 0;
}
.step-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #003366;
}
.step-content p {
  margin: 0;
  font-size: 16px;
  color: #333;
}


/* FINANCIAMIENTO - GRID MODERNO */
.financiamiento-grid {
  background: #f8f9fa;
  padding: 60px 20px;
}
.financiamiento-grid .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.fin-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}
.fin-card:hover {
  transform: translateY(-5px);
}
.fin-icon {
  font-size: 36px;
  margin-bottom: 15px;
  color: #003366;
}
.fin-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #003366;
}
.fin-card p {
  font-size: 15px;
  color: #555;
}


/* FONDO SECCIÓN FINANCIAMIENTO HEADER */
.financiamiento-header {
  background-image: url('assets/img/financiamiento-header.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  text-align: center;
  color: white;
}
.financiamiento-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
.financiamiento-header p {
  font-size: 18px;
  color: #f0f0f0;
}
