/* Sección MikroTik Info */
.mikrotik-info-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 30px;
}

.text-thypography {
  color: #575757;
}

/* ¿Por qué MikroTik? */
.why-mikrotik {
  margin-bottom: 0;
}

.why-mikrotik h2, .certification-hierarchy-section h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--principal, #030E22);
  margin-bottom: 10px;
}

.why-mikrotik .lead {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 30px;
}

.mikrotik-image img {
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefits-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.benefits-list i {
  color: var(--gradient-primary, #00A9C5);
  font-size: 20px;
  min-width: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.benefits-list span {
  color: #333;
  line-height: 1.5;
  flex: 1;
}

/* Certificaciones MikroTik */
.mikrotik-certifications {
  margin-top: 0;
}

.mikrotik-certifications-bg {
  background: linear-gradient(135deg, #0778A5 0%, #00A9C5 100%);
  width: 100vw;
  position: relative;
  left: 50%; 
  right: 50%;
  margin: 0 -50vw;
  padding: 20px 0;
}

.certification-card {
  background: #EFEFEF;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.certification-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.certification-card::before {
  content: "NUEVO";
  position: absolute;
  top: 15px;
  right: -10px;
  background: #FF6B35;
  color: white;
  padding: 5px 20px 5px 15px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  transform: rotate(15deg);
  z-index: 10;
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
}

.certification-card::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -10px;
  width: 0;
  height: 0;
  border-left: 8px solid #E55A2B;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  transform: rotate(15deg) translateX(35px) translateY(8px);
  z-index: 9;
}

.card-header {
  background: #EFEFEF;
  color: #333;
  padding: 40px 20px 20px 20px;
  text-align: center;
  border-bottom: 3px solid #0778A5;
}

.mikrotik-logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  filter: none;
  transition: transform 0.3s ease;
}

.certification-card:hover .mikrotik-logo {
  transform: scale(1.1);
}

.card-header h3 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #0778A5;
}

.card-header .subtitle {
  font-size: 16px;
  margin: 0;
  color: #666;
  font-weight: 500;
}

.card-body {
  padding: 25px 20px;
  flex-grow: 1;
}

.card-body > div {
  margin-bottom: 20px;
}

.card-body strong {
  color: var(--principal, #030E22);
  font-weight: 700;
}

.duration {
  font-size: 16px;
  color: #0778A5;
  background: rgba(7, 120, 165, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
}

.objectives {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.requirements {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.price {
  text-align: center;
  margin-top: 25px;
  position: relative;
}

.price::before {
  content: "$";
  font-size: 24px;
  color: #0778A5;
  font-weight: bold;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-60px);
}

.price .amount {
  font-size: 48px;
  font-weight: 900;
  color: #0778A5;
  display: block;
  text-shadow: 2px 2px 4px rgba(7, 120, 165, 0.2);
}

.price .currency {
  font-size: 14px;
  color: #999;
  margin-top: -5px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-footer {
  padding: 20px;
  background: #EFEFEF;
  text-align: center;
  margin-top: auto;
}

.btn-details {
  background: var(--gradient-primary);
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px var(--gradient-shadow);
}

.btn-details:hover {
  background: var(--gradient-primary-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gradient-shadow-hover);
}

/* Sección Detalles del Certificado */
.certificate-details {
  background: #f8f9fa;
  padding: 40px 0;
}

.certificate-info h1 {
  font-size: 36px;
  font-weight: 500;
  color: #666;
  margin-bottom: 25px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-style: italic;
  letter-spacing: -0.5px;
  position: relative;
}

.certificate-info h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.certificate-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.instructor {
  font-size: 16px;
  color: #333;
  margin-bottom: 30px;
}

.price-section {
  margin: 40px 0;
}

.price-large {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.price-large .currency {
  font-size: 18px;
  font-weight: bold;
  color: #666;
}

.price-large .amount {
  font-size: 48px;
  font-weight: 900;
  color: #666;
  line-height: 1;
}

.price-large .currency-text {
  font-size: 18px;
  color: #666;
  margin-left: 10px;
}

.course-details {
  display: flex;
  gap: 15px;
  margin: 40px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Para pantallas muy grandes (4 cards en línea) */
@media (min-width: 1200px) {
  .course-details {
    gap: 20px;
  }
  
  .detail-item {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
  }
}

/* Para pantallas grandes (2 cards por fila) */
@media (min-width: 768px) and (max-width: 1199px) {
  .course-details {
    gap: 15px;
  }
  
  .detail-item {
    flex: 1;
    min-width: 280px;
    max-width: calc(50% - 8px);
  }
}

/* Para tablets y móviles (1 card por fila) */
@media (max-width: 767px) {
  .course-details {
    gap: 12px;
    flex-direction: column;
  }
  
  .detail-item {
    flex: none;
    width: 100%;
    padding: 12px;
  }
  
  .detail-content h4 {
    font-size: 13px;
  }
  
  .detail-content p {
    font-size: 12px;
  }
  
  .detail-content .location-address {
    font-size: 10px;
  }
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  flex: 1;
}

.detail-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.detail-icon i {
  width: auto;
  height: auto;
  aspect-ratio: 1;
}

.detail-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

.detail-content p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.detail-content .location-address {
  font-size: 11px;
  color: #888;
  font-weight: 500;
  margin-top: 2px;
}

.btn-inscribirse {
  background: var(--gradient-primary);
  color: white;
  padding: 10px 25px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px var(--gradient-shadow);
}

.btn-inscribirse:hover {
  background: var(--gradient-primary-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gradient-shadow-hover);
}

.course-modules h2 {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 10px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--gradient-primary, #0778A5);
  transition: all 0.2s ease;
}

.module-item:hover {
  transform: translateX(3px);
  border-left-color: #00A9C5;
}

.module-number {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.module-number::before {
  content: "✓";
  font-size: 14px;
  font-weight: bold;
}

.module-name {
  font-size: 14px;
  color: #555;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 991px) {
  .mikrotik-info-section {
    padding: 30px;
  }
  
  .why-mikrotik {
    margin-bottom: 0;
  }
  
  .why-mikrotik h2 {
    font-size: 30px;
    text-align: center;
  }
  
  .why-mikrotik .lead {
    text-align: center;
  }
  
  .mikrotik-image {
    margin-bottom: 40px;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .mikrotik-info-section {
    padding: 40px 0;
  }
  
  .why-mikrotik h2 {
    font-size: 26px;
  }
  
  .why-mikrotik .row {
    flex-direction: column-reverse;
  }
  
  .mikrotik-image {
    margin-top: 30px;
    text-align: center;
  }
  
  .benefits-list li {
    padding: 12px;
    margin-bottom: 15px;
    gap: 12px;
  }
  
  .benefits-list i {
    font-size: 18px;
    min-width: 18px;
  }
  
  .benefits-list span {
    font-size: 15px;
  }
  
  .card-header {
    padding: 20px 15px;
  }
  
  .card-header h3 {
    font-size: 20px;
  }
  
  .card-body {
    padding: 20px 15px;
  }
  
  .price .amount {
    font-size: 28px;
  }
}

@media (max-width: 575px) {
  .why-mikrotik h2 {
    font-size: 24px;
  }
  
  .benefits-list li {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 12px;
  }
  
  .benefits-list i {
    font-size: 16px;
    min-width: 16px;
    margin-top: 3px;
    flex-shrink: 0;
  }
  
  .benefits-list span {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .card-header h3 {
    font-size: 18px;
  }
  
  .card-header .subtitle {
    font-size: 13px;
  }
}

/* Certificate Details Responsive */
@media (max-width: 991px) {
  .certificate-details .container {
    padding: 0 20px;
  }
  
  .course-details {
    gap: 20px;
    margin: 30px 0;
  }
  
  .course-modules h2 {
    font-size: 24px;
  }
  
  .price-large .amount {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .certificate-details {
    padding: 40px 0;
    text-align: left;
  }
  
  .certificate-info h1 {
    font-size: 28px;
    text-align: left;
  }
  
  .certificate-info h1::after {
    width: 50px;
    height: 2px;
  }
  
  .certificate-subtitle {
    font-size: 16px;
  }
  
  .instructor {
    margin: 20px 0;
    text-align: left;
  }
  
  .price-section {
    margin: 30px 0;
    text-align: left;
  }
  
  .price-large {
    justify-content: flex-start;
  }
  
  .course-details {
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
  }
  
  .detail-item {
    padding: 12px;
    gap: 10px;
    text-align: left;
  }
  
  .detail-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .btn-inscribirse {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .course-modules {
    margin-top: 40px;
    text-align: left;
  }
  
  .course-modules h2 {
    font-size: 22px;
    text-align: left;
  }
  
  .modules-list {
    text-align: left;
  }
}

/* Accordion Styles */
.accordion {
  margin-top: 40px;
}

.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 10px !important;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

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

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: none;
  padding: 20px 25px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  border-radius: 10px !important;
  box-shadow: none;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-primary);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(180deg);
}

.accordion-body {
  padding: 25px;
  background: white;
  color: #555;
  line-height: 1.6;
}

.accordion-body p {
  margin-bottom: 15px;
}

.accordion-body ul {
  margin: 0;
  padding-left: 20px;
}

.accordion-body li {
  margin-bottom: 8px;
  color: #666;
}

/* Responsive accordion */
@media (max-width: 767px) {
  .accordion {
    margin-top: 30px;
  }
  
  .accordion-button {
    padding: 15px 20px;
    font-size: 15px;
  }
  
  .accordion-body {
    padding: 20px;
  }
}

/* Unique Training Section */
.unique-training-section {
  background: var(--light-gray);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin: 0 -50vw;
  padding: 80px 0;
}

.unique-training-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.unique-header {
  text-align: center;
  margin-bottom: 60px;
}

.unique-header h2 {
  font-size: 42px;
  font-weight: 300;
  color: #666;
  margin-bottom: 20px;
  font-style: italic;
  font-family: 'Inter', sans-serif;
}

.unique-highlight {
  color: var(--secondary);
  font-weight: 600;
}

.unique-description {
  font-size: 18px;
  color: #777;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Benefit Circles */
.unique-benefits {
  margin-top: 60px;
}

.benefit-circle {
  position: relative;
  margin: 0 auto;
  max-width: 320px;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.benefit-circle.animate {
  animation: slideInUp 0.6s ease-out forwards;
}

.benefit-circle.animate:nth-child(1) { animation-delay: 0.1s; }
.benefit-circle.animate:nth-child(2) { animation-delay: 0.3s; }
.benefit-circle.animate:nth-child(3) { animation-delay: 0.5s; }

.benefit-circle:hover {
  transform: translateY(-5px);
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.circle-container {
  background: white;
  border-radius: 50%;
  width: 280px;
  height: 280px;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 10px;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.benefit-circle:hover .circle-container {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.circle-container::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 4px solid #ccc;
  border-radius: 50%;
  background: white;
  z-index: 1;
}

.circle-number {
  position: absolute;
  top: 5px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(7, 120, 165, 0.3);
  z-index: 10;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
}

.benefit-circle.animate .circle-number {
  animation: fadeInBounce 0.6s ease-out forwards;
}

.benefit-circle:hover .circle-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(7, 120, 165, 0.4);
}

@keyframes fadeInBounce {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-20px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.benefit-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 40px 30px;
  width: 100%;
  box-sizing: border-box;
  z-index: 2;
  transition: transform 0.3s ease;
  opacity: 0;
}

.benefit-circle.animate .benefit-content {
  animation: slideInContent 0.8s ease-out 0.3s forwards;
}

.benefit-circle:hover .benefit-content {
  transform: translate(-50%, -50%) scale(1.05);
}

@keyframes slideInContent {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

.benefit-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.benefit-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Responsive Unique Training */
@media (max-width: 991px) {
  .unique-training-section {
    padding: 60px 0;
    margin: 0 -50vw;
  }
  
  .unique-header h2 {
    font-size: 36px;
  }
  
  .unique-description {
    font-size: 16px;
  }
  
  .unique-header {
    margin-bottom: 50px;
  }
}

@media (max-width: 767px) {
  .unique-training-section {
    padding: 50px 0;
    margin: 0 -50vw;
  }
  
  .unique-header h2 {
    font-size: 28px;
  }
  
  .unique-description {
    font-size: 15px;
    padding: 0 10px;
  }
  
  .unique-header {
    margin-bottom: 40px;
  }
  
  .circle-container {
    width: 240px;
    height: 240px;
  }
  
  .circle-container::before {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  
  .circle-number {
    width: 50px;
    height: 50px;
    font-size: 16px;
    top: 10px;
    right: 5px;
  }
  
  .benefit-content {
    padding: 30px 25px;
  }
  
  .benefit-content h3 {
    font-size: 16px;
  }
  
  .benefit-content p {
    font-size: 13px;
  }
}
