/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #1a3a5f;
  --secondary-color: #f4b41a;
  --accent-color: #2c5aa0;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #444444;
  --text-light: #6c757d;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

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

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  background: rgba(26, 58, 95, 0.95);
  transition: all 0.5s;
  z-index: 997;
  padding: 15px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

#header .logo img {
  max-height: 100px;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  transition: 0.3s;
  position: relative;
}

.navbar a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  bottom: 0;
  left: 15px;
  transition: all 0.3s ease;
}

.navbar a:hover, 
.navbar .active, 
.navbar li:hover > a {
  color: #fff;
}

.navbar a:hover:after,
.navbar .active:after {
  width: calc(100% - 30px);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(26, 58, 95, 0.7), rgba(26, 58, 95, 0.8)), url("../img/hero-bg.jpg") top center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

#hero h1 {
  margin: 0 0 20px 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#hero h2 {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-size: 22px;
  font-weight: 400;
}

.btn-get-started {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  transition: 0.5s;
  line-height: 1;
  margin: 10px;
  color: #fff;
  background: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-get-started:hover {
  background: transparent;
  color: var(--secondary-color);
  text-decoration: none;
}

/* Icon Boxes in Hero */
#hero .icon-boxes {
  margin-top: 80px;
  justify-content: center;
}

#hero .icon-box {
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  text-align: center;
   margin: 0 10px;
}

#hero .icon-box .icon {
  margin: 0 auto 20px auto;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

#hero .icon-box .icon i {
  font-size: 32px;
  line-height: 1;
  color: var(--secondary-color);
}

#hero .icon-box h4 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 18px;
  color: #fff;
}

#hero .icon-box:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden;
}

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

.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 60px;
  height: 2px;
  background: var(--secondary-color);
  display: block;
  margin: 10px auto 0;
}

.section-title p {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about {
  background: var(--light-color);
}

.about .content h3 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding: 0 0 15px 30px;
  position: relative;
}

.about .content ul i {
  position: absolute;
  font-size: 20px;
  left: 0;
  top: -3px;
  color: var(--secondary-color);
}

.about .content p:last-child {
  margin-bottom: 0;
}

.btn-learn-more {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  transition: 0.3s;
  line-height: 1;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-top: 15px;
}

.btn-learn-more:hover {
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

/*--------------------------------------------------------------
# Features
--------------------------------------------------------------*/
.features .icon-box {
  padding-left: 15px;
}

.features .icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 5px 0 10px 60px;
}

.features .icon-box i {
  font-size: 48px;
  float: left;
  color: var(--secondary-color);
}

.features .icon-box p {
  font-size: 15px;
  color: var(--text-light);
  margin-left: 60px;
}

.features .image {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 400px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services {
  background: var(--light-color);
}

.services .icon-box {
  text-align: center;
  border: 1px solid #eef0ef;
  padding: 60px 30px;
  transition: all ease-in-out 0.3s;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.services .icon-box .icon {
  margin: 0 auto;
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: 0.5s;
}

.services .icon-box .icon i {
  color: #fff;
  font-size: 32px;
  transition: ease-in-out 0.3s;
}

.services .icon-box h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 22px;
}

.services .icon-box h4 a {
  color: var(--primary-color);
  transition: ease-in-out 0.3s;
}

.services .icon-box h4 a:hover {
  color: var(--accent-color);
}

.services .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
  color: var(--text-light);
}

.services .icon-box:hover {
  border-color: #fff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
}

.services .icon-box:hover .icon {
  background: var(--secondary-color);
}

/*--------------------------------------------------------------
# CTA
--------------------------------------------------------------*/
.cta {
  background: linear-gradient(rgba(26, 58, 95, 0.9), rgba(26, 58, 95, 0.9)), url("../img/cta-bg.jpg") fixed center center;
  background-size: cover;
  padding: 100px 0;
  text-align: center;
}

.cta h3 {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  font-size: 18px;
}

.cta .cta-btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 4px;
  transition: 0.5s;
  margin-top: 10px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.cta .cta-btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/
.team .member {
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.team .member .member-img {
  position: relative;
  overflow: hidden;
}

.team .member .member-img img {
  transition: all 0.3s ease;
}

.team .member:hover .member-img img {
  transform: scale(1.1);
}

.team .member .social {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 40px;
  opacity: 0;
  transition: ease-in-out 0.3s;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .member .social a {
  transition: color 0.3s;
  color: var(--primary-color);
  margin: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team .member .social a:hover {
  color: var(--secondary-color);
}

.team .member .social i {
  font-size: 18px;
  line-height: 0;
}

.team .member .member-info {
  padding: 25px 15px;
  text-align: center;
}

.team .member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
  color: var(--primary-color);
}

.team .member .member-info span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
}

.team .member:hover .social {
  opacity: 1;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact .info i {
  font-size: 20px;
  color: var(--secondary-color);
  float: left;
  width: 44px;
  height: 44px;
  background: rgba(244, 180, 26, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 80px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact .info p {
  padding: 0 0 0 80px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-light);
}

.contact .php-email-form {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 58, 95, 0.2);
}

.contact .php-email-form button[type="submit"] {
  background: var(--primary-color);
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.contact .php-email-form button[type="submit"]:hover {
  background: var(--accent-color);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--primary-color);
  color: #fff;
  font-size: 14px;
}

#footer .footer-top {
  padding: 60px 0 30px 0;
}

#footer .footer-contact h3 {
  font-size: 24px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

#footer .footer-contact p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

#footer h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

#footer h4::after {
  content: '';
  position: absolute;
  display: block;
  width: 30px;
  height: 2px;
  background: var(--secondary-color);
  bottom: 0;
  left: 0;
}

#footer .footer-links {
  margin-bottom: 30px;
}

#footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

#footer .footer-links ul a:hover {
  color: var(--secondary-color);
}

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .social-links a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

#footer .copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* WhatsApp Float Button */
.btn-whatsapp {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 100px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--accent-color);
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* Redes sociales en contacto */
.contact .social-links {
  margin-top: 20px;
}

.contact .social-links i {
  font-size: 20px;
  color: var(--secondary-color);
  float: left;
  width: 44px;
  height: 44px;
  background: rgba(244, 180, 26, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.contact .social-links h4 {
  padding: 0 0 0 80px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.contact .social-icons {
  padding: 0 0 0 40px;
  display: flex;
  gap: 15px;
}

.contact .social-icons a {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact .social-icons a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Estilos para el formulario de contacto */
.php-email-form .loading {
    display: none;
    background: #fff;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
}

.php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid #18d26e;
    border-top-color: #eee;
    animation: animate-loading 1s linear infinite;
}

.php-email-form .error-message {
    display: none;
    color: #fff;
    background: #ed3c0d;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    border-radius: 4px;
}

.php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #18d26e;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    border-radius: 4px;
}

.php-email-form .is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mejoras para el botón de enviar */
.php-email-form button[type="submit"]:disabled {
    background: #6c757d;
    cursor: not-allowed;
}


/*--------------------------------------------------------------
# Pop-up Styles
--------------------------------------------------------------*/
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 58, 95, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.popup-content {
  background: white;
  border-radius: 15px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.popup-header {
  background: var(--primary-color);
  color: white;
  padding: 25px;
  position: relative;
  text-align: center;
}

.popup-header h3 {
  color: white;
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
}

.popup-close:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.popup-body {
  padding: 30px;
}

.popup-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 25px;
  text-align: center;
}

.popup-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-popup-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
  font-family: "Montserrat", sans-serif;
}

.btn-popup-primary:hover {
  background: transparent;
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-popup-secondary {
  background: transparent;
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.btn-popup-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Mostrar pop-up después de 3 segundos */
.popup-show {
  display: flex !important;
  animation: fadeIn 0.5s ease;
}

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

/* Responsive */
@media (max-width: 576px) {
  .popup-content {
    margin: 20px;
    max-width: calc(100% - 40px);
  }
  
  .popup-actions {
    flex-direction: column;
  }
  
  .popup-header h3 {
    font-size: 18px;
  }
}

/*--------------------------------------------------------------
# Curso Inspectores Styles
--------------------------------------------------------------*/
#hero-curso {
  width: 100%;
  height: 60vh;
  background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(26, 58, 95, 0.9)), url("../img/hero-bg.jpg") top center;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
}

#hero-curso h1 {
  margin: 0 0 20px 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-transform: uppercase;
}

#hero-curso h2 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
}

.hero-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Sección Introducción */
.introduccion {
  padding: 60px 0;
  background: var(--light-color);
}

.introduccion h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 32px;
}

.introduccion .lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-color);
}

/* Tabla de información del curso */
.curso-table {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.curso-table table {
  margin-bottom: 0;
}

.curso-table td {
  padding: 15px;
  border: none;
  font-size: 16px;
}

.curso-table td:first-child {
  font-weight: 600;
  color: var(--primary-color);
  width: 40%;
}

/* Módulos del curso */
.modulo-box {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #eef0ef;
}

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

.modulo-box .icon {
  margin: 0 auto 20px auto;
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.modulo-box .icon i {
  color: #fff;
  font-size: 32px;
}

.modulo-box:hover .icon {
  background: var(--secondary-color);
}

.modulo-box h3 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
  color: var(--primary-color);
}

.modulo-box p {
  line-height: 1.6;
  color: var(--text-light);
}

/* Sección Inscripción */
.inscripcion .php-email-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Info Box Contacto */
.info-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

.info-box p {
  margin-bottom: 10px;
  font-size: 16px;
}

.cta-final {
  text-align: center;
  padding: 30px;
  background: var(--light-color);
  border-radius: 10px;
}

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

/* Responsive */
@media (max-width: 768px) {
  #hero-curso h1 {
    font-size: 28px;
  }
  
  #hero-curso h2 {
    font-size: 20px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .curso-table {
    padding: 20px;
  }
  
  .curso-table td {
    padding: 10px;
    font-size: 14px;
  }
  
  .modulo-box {
    padding: 30px 20px;
    margin-bottom: 20px;
  }
}



/* Responsive */
@media (max-width: 991px) {
  #hero {
    height: auto;
    padding: 120px 0 60px 0;
  }
  
  #hero h1 {
    font-size: 32px;
  }
  
  #hero h2 {
    font-size: 20px;
  }
  
  .section-title p {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 28px;
  }
  
  #hero h2 {
    font-size: 18px;
  }
  
  .section-title p {
    font-size: 24px;
  }
}

/*--------------------------------------------------------------
# Team Section - Equal Height Cards
--------------------------------------------------------------*/
.team-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.team-item {
  padding: 10px;
  display: flex;
}

.member-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: 100%;
  height: 220px; /* Altura fija para todas las tarjetas */
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.member-content {
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

.member-content h4 {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--primary-color);
  line-height: 1.3;
}

.member-content span {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
  max-width: 100%;
}

/* Efecto de fondo decorativo */
.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-card:hover::before {
  opacity: 1;
}

/* Asegurar que el texto largo se ajuste */
.member-content span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Máximo 4 líneas de texto */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .member-card {
    height: 240px; /* Un poco más alto en tablets */
  }
}

@media (max-width: 992px) {
  .team-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .member-card {
    height: 200px;
  }
  
  .member-content {
    padding: 25px 15px;
  }
  
  .member-content h4 {
    font-size: 17px;
  }
  
  .member-content span {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .team-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .member-card {
    height: 180px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .member-content {
    padding: 20px 15px;
  }
  
  .member-content h4 {
    font-size: 16px;
  }
  
  .member-content span {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 576px) {
  .member-card {
    height: 160px;
  }
  
  .member-content {
    padding: 15px 12px;
  }
  
  .member-content h4 {
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .member-content span {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
}

/* Efecto de hover más suave */
.member-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Grid layout perfecto */
.team-grid .team-item {
  margin-bottom: 20px;
}

/* Asegurar que todas las tarjetas tengan el mismo aspecto */
.member-card {
  background: #fff;
  border: 1px solid #f0f0f0;
}