:root {
  --primary-color: #26b3b4;
  --primary-hover: #1c8a8b;
  --dark-teal: #0b7e7f;
  --secondary-color: #ffffff;
  --text-color: #333333;
  --light-bg: #f5f9fa;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(38, 179, 180, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

/* ===== HEADER Y NAVEGACIÓN MEJORADOS ===== */
header {
  background-color: var(--primary-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 70px;
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Logo mejorado */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  text-decoration: none;
  height: 100%;
  flex-shrink: 0;
  padding-left: 5px;
}

.logo img {
  height: 55px;
  width: auto;
  max-height: 55px;
  object-fit: contain;
}

/* Enlaces de navegación mejorados */
.nav-links {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 100%;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 15px;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
}

/* ===== MENÚ MÓVIL ===== */
.mobile-menu {
  display: none;
  cursor: pointer;
  z-index: 1001;
  width: 32px;
  height: 32px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 6px;
  transition: all 0.3s ease;
}

.mobile-menu:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.menu-icon {
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
  width: calc(100% - 12px);
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  left: 0;
  transition: transform 0.3s ease;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  bottom: -7px;
}

.mobile-menu.active {
  background-color: rgba(255, 255, 255, 0.25);
}

.mobile-menu.active .menu-icon {
  background-color: transparent;
}

.mobile-menu.active .menu-icon::before {
  transform: rotate(45deg) translate(2px, 7px);
}

.mobile-menu.active .menu-icon::after {
  transform: rotate(-45deg) translate(2px, -7px);
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 999;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-nav-links {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--dark-teal) 100%
  );
  padding: 80px 25px 30px;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1000;
  overflow-y: auto;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links.show {
  right: 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 500;
  padding: 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.mobile-nav-links a::after {
  content: "→";
  position: absolute;
  right: 15px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-links a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-close:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.mobile-nav-close span {
  position: relative;
  width: 16px;
  height: 16px;
}

.mobile-nav-close span::before,
.mobile-nav-close span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: white;
  top: 50%;
  left: 0;
}

.mobile-nav-close span::before {
  transform: rotate(45deg);
}

.mobile-nav-close span::after {
  transform: rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../img/fondo.jpg") no-repeat center/cover;
  padding: 60px 0;
  color: white;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    height: auto;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("../img/fondo_mobile.jpg") no-repeat;
    background-size: 100% auto;
    background-position: top center;
    display: block;
    padding: 0;
  }

  .hero .container {
    padding-top: 80px;
    padding-bottom: 0;
  }

  .hero-content {
    flex-direction: column;
    position: relative;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .hero-text {
    padding: 20px 15px 0;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

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

  .hero-form {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
    padding-top: 20px;
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  padding-right: 40px;
}

.hero-text h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: white;
}

.hero-text p {
  font-size: 17px;
  margin-bottom: 25px;
  max-width: 550px;
}

.hero-form {
  flex: 0 0 450px;
  background-color: var(--secondary-color);
  padding-top: 25px;
  padding-right: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 2;
  margin-right: 20px;
  color: var(--text-color);
}

.form-title {
  text-align: center;
  margin-bottom: 25px;
}

.form-title h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-title p {
  font-size: 14px;
  color: #777;
}

.form-step {
  margin-bottom: 15px;
}

.form-step-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.step-number {
  width: 26px;
  height: 26px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 8px;
  font-size: 14px;
}

.step-title {
  font-weight: 600;
  font-size: 15px;
}

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

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: var(--transition);
  font-family: "Open Sans", sans-serif;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(38, 179, 180, 0.2);
}

.row {
  display: flex;
  gap: 12px;
}

.col {
  flex: 1;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 10px;
}

button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* ===== SLIDERS ===== */
.slider-container {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 15px;
  overflow: visible;
}

/* Flechas de navegación */
.slider-arrow {
  display: none !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  background: none;
  border: none;
  color: var(--primary-color);
  padding: 10px 14px;
  font-size: 0;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
}

.slider-arrow svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-color);
  stroke-width: 3;
  transition: stroke 0.3s ease;
}

.slider-arrow:hover svg {
  stroke: var(--dark-teal);
  transform: scale(1.1);
}

.slider-arrow.prev {
  left: -10px;
}

.slider-arrow.next {
  right: -10px;
}

.slider-arrow:hover {
  background-color: var(--dark-teal);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
  fill: white;
  stroke: white;
}

/* Navegación */
.custom-slider-nav {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 8px;
}

.custom-slider-nav button {
  width: 30px;
  height: 5px;
  background-color: #ddd;
  border: none;
  margin: 0;
  padding: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-slider-nav button.active {
  background-color: var(--primary-color);
  width: 40px;
}

/* ===== TESTIMONIOS SECTION ===== */
.testimonios {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 14px;
}

.section-title p {
  font-size: 16px;
  color: #777;
  max-width: 650px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  margin: 10px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

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

.testimonial-img-container {
  width: 100%;
  height: 0;
  padding-bottom: 140%;
  position: relative;
  overflow: hidden;
}

.testimonial-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ===== CONOCIMIENTOS SECTION ===== */
.conocimientos {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.conocimientos-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.conocimientos-content p {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.conocimientos-content strong {
  color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(38, 179, 180, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary-color);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark-teal);
}

.feature-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

/* ===== PLAN CURRICULAR SECTION ===== */
.plan-curricular {
  padding: 80px 0;
  background-color: var(--secondary-color);
}
.module-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 10px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.module-img-container {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
  overflow: hidden;
}

.module-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ===== PROGRAM INFO SECTION ===== */
.program-info {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-teal));
  color: white;
  text-align: center;
  position: relative;
  z-index: 1;
}

.program-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.program-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  flex: 1 1 300px;
  transition: transform 0.3s ease;
}

.program-item:hover {
  transform: translateY(-5px);
}

.program-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.coordinator {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.program-number {
  font-size: 64px;
  font-weight: 700;
  margin: 10px 0 0;
}

.program-unit {
  font-size: 20px;
  margin-bottom: 8px;
}

.program-item p {
  margin: 6px 0;
  font-size: 15px;
  opacity: 0.9;
}

.coordinator {
  font-size: 24px;
  font-weight: 700;
  margin-top: 10px;
}

.program-number {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.program-unit {
  font-size: 24px;
}

/* ===== COUNTDOWN SECTION ===== */
.comienzo-section {
  background-color: var(--dark-teal);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.comienzo-section h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
}

.countdown {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.countdown-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  min-width: 80px;
}

.countdown-value {
  font-size: 32px;
  font-weight: 700;
}

.countdown-label {
  font-size: 14px;
  opacity: 0.9;
}

/* ===== MÉTODO FORMATIVO SECTION ===== */
.metodo-formativo {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

.metodo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== CERTIFICACIÓN FINAL SECTION ===== */
.certificacion-final {
  padding: 80px 0;
  background-color: var(--light-bg);
  text-align: center;
}

.certificacion-final p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--text-color);
  color: white;
  padding: 50px 0 30px;
}

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

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 35px;
}

.footer-about p {
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 16px;
  margin-bottom: 18px;
}

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

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  fill: var(--primary-color);
}

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

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1200px) {
  .hero-content {
    gap: 20px;
  }
}

@media screen and (max-width: 1024px) {
  .hero {
    padding-bottom: 80px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    padding-right: 0;
  }

  .hero-text p {
    margin: 0 auto 25px;
  }

  .hero-form {
    margin-right: 0;
    margin-top: 40px;
    width: 80%;
    max-width: 500px;
  }

  .program-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-form {
    width: 90%;
  }

  .row {
    flex-direction: column;
    gap: 8px;
  }

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

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

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slider-arrow.prev {
    left: -10px;
  }

  .slider-arrow.next {
    right: -10px;
  }

  .slider-arrow svg {
    width: 20px;
    height: 20px;
  }

  .countdown {
    flex-wrap: wrap;
    justify-content: center;
  }

  .countdown-item {
    min-width: 70px;
  }

  .logo img {
    height: 45px;
  }
}

@media screen and (max-width: 480px) {
  .hero-text h1 {
    font-size: 28px;
  }

  .hero-form {
    padding: 25px 15px;
    width: 100%;
  }

  .program-number {
    font-size: 50px;
  }

  .program-unit {
    font-size: 20px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .conocimientos,
  .plan-curricular,
  .testimonios,
  .certificacion-final,
  .metodo-formativo {
    padding: 60px 0;
  }

  .countdown-item {
    min-width: 60px;
    padding: 10px;
  }

  .countdown-value {
    font-size: 24px;
  }

  .countdown-label {
    font-size: 12px;
  }

  .slider-arrow {
    width: 35px;
    height: 35px;
  }

  .slider-container {
    padding: 0 15px;
  }
}
.correo-largo {
  word-break: break-word;
  overflow-wrap: break-word;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: underline;
}
