:root {
  --color-dark: #101723;
  --color-blue: #17324d;
  --color-red: #dc3545;
  --color-soft: #f4f6f8;
  --color-text: #253040;
  --shadow-soft: 0 18px 45px rgba(16, 23, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
  padding-top: 82px;
}

section {
  scroll-margin-top: 82px;
}

.navbar {
  min-height: 82px;
}

.navbar-brand img {
  height: 58px;
  width: 58px;
  object-fit: contain;
}

.navbar-brand span {
  color: var(--color-dark);
  font-weight: 800;
}

.nav-link {
  color: #405064;
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-red);
}

.btn {
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  min-height: calc(100vh - 82px);
  background:
    linear-gradient(90deg, rgba(16, 23, 35, 0.92), rgba(23, 50, 77, 0.72), rgba(23, 50, 77, 0.32)),
    url("img/hero.jpg") center/cover no-repeat;
  position: relative;
}

.badge-custom {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffd2d6;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 8px;
  padding: 8px 16px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  max-width: 760px;
}

.hero-text {
  color: #e6edf5;
  font-size: 1.12rem;
  line-height: 1.7;
  margin-top: 24px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-card {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  color: #fff;
  padding: 32px;
}

.hero-card strong {
  color: #fff;
  display: block;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
}

.hero-card span {
  color: #ffd2d6;
  display: block;
  font-weight: 800;
  margin: 8px 0 16px;
  text-transform: uppercase;
}

.hero-card p {
  color: #eef3f9;
  margin-bottom: 0;
}

.page-hero {
  background: var(--color-dark);
  color: #fff;
  padding: 92px 0 72px;
}

.page-hero span {
  color: #ffd2d6;
  display: block;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 18px;
}

.page-hero p {
  color: #e6edf5;
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 720px;
}

.section-pad {
  padding: 88px 0;
}

.section-heading {
  margin: 0 auto 44px;
  max-width: 780px;
}

.section-heading span {
  color: var(--color-red);
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-heading h2 {
  color: var(--color-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
}

.section-heading.text-white h2,
.section-heading.text-white span {
  color: #fff;
}

.info-panel,
.benefit-item,
.program-card,
.process-step,
.testimonial-card,
.contact-panel {
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 23, 35, 0.06);
  padding: 28px;
}

.info-panel i,
.benefit-item i,
.program-icon i {
  color: var(--color-red);
  font-size: 2rem;
}

.info-panel h3,
.benefit-item h3,
.program-card h3,
.process-step h3 {
  color: var(--color-dark);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 16px 0 12px;
}

.info-panel p,
.benefit-item p,
.program-card p,
.process-step p,
.testimonial-card p {
  line-height: 1.7;
  margin-bottom: 0;
}

.benefit-item {
  height: 100%;
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.program-card .btn {
  margin-top: auto;
}

.program-card.featured {
  border-color: rgba(220, 53, 69, 0.3);
  box-shadow: 0 18px 45px rgba(220, 53, 69, 0.12);
}

.program-icon {
  align-items: center;
  background: #fff2f3;
  border-radius: 8px;
  display: flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.program-photo {
  border-radius: 8px;
  height: 170px;
  margin: -10px -10px 4px;
  object-fit: cover;
  width: calc(100% + 20px);
}

.program-list {
  color: #536173;
  line-height: 1.7;
  margin: 0 0 10px;
  padding-left: 20px;
}

.program-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.program-actions .btn-link {
  color: var(--color-red);
  padding-left: 0;
  padding-right: 0;
  text-decoration: none;
}

.program-actions .btn-link:hover {
  color: var(--color-dark);
}

.service-card {
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 23, 35, 0.06);
  padding: 28px;
}

.service-card i {
  align-items: center;
  background: #fff2f3;
  border-radius: 8px;
  color: var(--color-red);
  display: inline-flex;
  font-size: 1.7rem;
  height: 54px;
  justify-content: center;
  margin-bottom: 18px;
  width: 54px;
}

.service-card h3 {
  color: var(--color-dark);
  font-size: 1.16rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.service-card p {
  line-height: 1.7;
  margin-bottom: 0;
}

.partner-card {
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 23, 35, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
}

.partner-mark {
  align-self: flex-start;
  background: var(--color-dark);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 12px;
}

.partner-card i {
  align-items: center;
  background: #fff2f3;
  border-radius: 8px;
  color: var(--color-red);
  display: inline-flex;
  font-size: 1.7rem;
  height: 54px;
  justify-content: center;
  margin-top: 8px;
  width: 54px;
}

.partner-card h3 {
  color: var(--color-dark);
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0;
}

.partner-card p {
  line-height: 1.7;
  margin-bottom: 0;
}

.partner-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.partner-note {
  color: #536173;
  font-size: 0.92rem;
  margin: 28px auto 0;
  max-width: 850px;
  text-align: center;
}

.route-card {
  background: #fff;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 23, 35, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px;
}

.route-card i {
  align-items: center;
  background: #fff2f3;
  border-radius: 8px;
  color: var(--color-red);
  display: inline-flex;
  font-size: 1.8rem;
  height: 58px;
  justify-content: center;
  margin-bottom: 20px;
  width: 58px;
}

.route-card h3 {
  color: var(--color-dark);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.route-card p {
  line-height: 1.7;
}

.route-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.cta-band {
  background: var(--color-dark);
  color: #fff;
  padding: 48px;
  border-radius: 8px;
}

.cta-band h2 {
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-band p {
  color: #e6edf5;
  line-height: 1.7;
  margin-bottom: 0;
}

.process-row {
  counter-reset: process;
}

.process-step {
  height: 100%;
  text-align: center;
}

.process-step span {
  align-items: center;
  background: var(--color-red);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.stars {
  color: #f4b400;
  margin-bottom: 16px;
}

.testimonial-card strong {
  color: var(--color-dark);
  display: block;
  margin-top: 16px;
}

.contacto-dark,
.footer {
  background: var(--color-dark);
}

.contact-panel {
  background: rgba(255, 255, 255, 0.96);
  height: 100%;
}

.form-label {
  color: var(--color-dark);
  font-weight: 800;
}

.form-control {
  border-radius: 8px;
  min-height: 48px;
}

.contact-data {
  border-top: 1px solid #e7ebf0;
  margin-top: 28px;
  padding-top: 22px;
}

.contact-data p {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-data i {
  color: var(--color-red);
}

.social-media a,
.social-button {
  align-items: center;
  background: var(--color-blue);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  text-decoration: none;
  width: 44px;
}

.social-media a:hover,
.social-button:hover {
  background: var(--color-red);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.location-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  padding: 30px;
}

.location-panel span {
  color: #ffd2d6;
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.location-panel h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.location-panel p {
  color: #e6edf5;
  line-height: 1.7;
  margin-bottom: 0;
}

.map-container {
  border-radius: 8px;
  min-height: 260px;
  overflow: hidden;
}

.map-container iframe {
  border: 0;
  height: 100%;
  min-height: 260px;
  width: 100%;
}

.btn-whatsapp {
  align-items: center;
  background-color: #25d366;
  border: none;
  border-radius: 50%;
  bottom: 20px;
  box-shadow: 0 12px 30px rgba(16, 23, 35, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 1.8rem;
  height: 62px;
  justify-content: center;
  position: fixed;
  right: 20px;
  width: 62px;
  z-index: 1040;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  color: #fff;
}

.btn-whatsapp i {
  color: #fff;
  font-size: 1.8rem;
}

.course-modal {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.course-modal .modal-header {
  background: var(--color-dark);
  color: #fff;
  padding: 26px 28px;
}

.course-modal .modal-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
}

.modal-kicker {
  color: #ffd2d6;
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.course-modal .modal-body {
  padding: 28px;
}

.course-modal .modal-body > p {
  color: #405064;
  font-size: 1.05rem;
  line-height: 1.7;
}

.modal-info-box {
  background: var(--color-soft);
  border-radius: 8px;
  height: 100%;
  padding: 20px;
}

.modal-info-box strong {
  color: var(--color-dark);
  display: block;
  margin-bottom: 10px;
}

.modal-info-box ul {
  line-height: 1.8;
  margin: 0;
  padding-left: 20px;
}

.modal-info-box p {
  line-height: 1.7;
  margin-bottom: 0;
}

.course-modal .modal-footer {
  padding: 18px 28px 26px;
}

@media (max-width: 991px) {
  body {
    padding-top: 74px;
  }

  .navbar {
    min-height: 74px;
  }

  .navbar-brand img {
    height: 50px;
    width: 50px;
  }

  .hero {
    min-height: auto;
    padding: 96px 0;
  }
}

@media (max-width: 575px) {
  .section-pad {
    padding: 64px 0;
  }

  .hero-actions .btn {
    width: 100%;
  }

}

/* Sobre nosotros — imágenes */
.about-sec {
  background: #fff;
  padding: 88px 40px;
}

.about-wrap {
  align-items: center;
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1100px;
}

.img-stack {
  padding-bottom: 28px;
  padding-left: 28px;
  position: relative;
}

.img-main {
  border-radius: 16px;
  display: block;
  height: 400px;
  object-fit: cover;
  width: 100%;
}

.img-sub {
  border: 4px solid #fff;
  border-radius: 12px;
  bottom: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  height: 160px;
  left: 0;
  object-fit: cover;
  position: absolute;
  width: 210px;
}

.about-content {
  padding-left: 10px;
}

.about-sec .label {
  color: var(--color-red);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.about-h {
  color: var(--color-dark);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.about-p {
  color: #555;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.checks {
  display: grid;
  gap: 10px 24px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 32px;
}

.check-item {
  align-items: flex-start;
  color: var(--color-dark);
  display: flex;
  font-size: 13.5px;
  font-weight: 700;
  gap: 9px;
  line-height: 1.45;
}

.check-item i {
  background: var(--color-red);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  font-size: 13px;
  margin-top: 2px;
  padding: 3px;
}

@media (max-width: 900px) {
  .about-wrap {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .img-sub {
    height: 120px;
    width: 160px;
  }
}

@media (max-width: 560px) {
  .about-sec {
    padding: 64px 20px;
  }

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

  .img-sub {
    display: none;
  }
}

/* Galería — carrusel */
.carousel-outer {
  overflow: hidden;
  padding: 0 0 1.5rem;
  width: 100%;
}

.carousel-track {
  animation: carousel-scroll 28s linear infinite;
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.carousel-outer:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.carousel-slide {
  display: flex;
  flex: 0 0 220px;
  flex-direction: column;
  gap: 12px;
  transition: flex-basis 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide:hover {
  flex-basis: 320px;
}

.carousel-img-wrap {
  background: #e7ebf0;
  border-radius: 12px;
  height: 260px;
  overflow: hidden;
}

.carousel-img-wrap img {
  display: block;
  filter: brightness(0.82);
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.carousel-slide:hover .carousel-img-wrap img {
  filter: brightness(1);
  transform: scale(1.07);
}

.carousel-label {
  padding: 0 4px;
}

.carousel-label strong {
  color: var(--color-dark);
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-slide:hover .carousel-label strong {
  white-space: normal;
}

.carousel-label span {
  color: #536173;
  display: block;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 4px;
}

@media (max-width: 575px) {
  .carousel-slide {
    flex: 0 0 180px;
  }

  .carousel-slide:hover {
    flex-basis: 260px;
  }

  .carousel-img-wrap {
    height: 200px;
  }
}

/* Asesoría (panel tipo chat) */
#chatContainer {
  background-color: #fff;
  background-image: url("./img/fondo-div-contacto.jpg");
  background-position: center;
  background-size: cover;
}

#contactForm input,
#contactForm textarea {
  background-color: #e1ffc7;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #075e54;
}

.chat-popup {
  animation: slideUp 0.4s ease-out;
  bottom: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  position: fixed;
  right: 20px;
  width: min(400px, calc(100vw - 40px));
  z-index: 1050;
}

.chat-header img {
  background-color: #fff;
  height: 50px;
  object-fit: contain;
  width: 50px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-media .social-button i {
  font-size: 1.6rem;
}


/* ============================================
   SECCIÓN PRECIOS — CEA Maserati
   ============================================ */

.precios-section {
  background: #f5f5f5;
}

.precio-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.precio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.precio-destacado {
  border: 2px solid #dc3545;
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(220,53,69,0.15);
}

.precio-destacado:hover {
  transform: translateY(-12px);
}

.precio-badge {
  display: inline-block;
  background: #dc3545;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-popular {
  background: #b02a37;
}

.precio-titulo {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  color: #111;
}

.precio-valor {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.precio-desde {
  font-size: 0.85rem;
  color: #999;
}

.precio-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #dc3545;
}

.precio-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: #444;
  flex: 1;
}

.precio-lista li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-precio {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px;
}

@media (max-width: 768px) {
  .precio-destacado {
    transform: none;
  }
  .precio-destacado:hover {
    transform: translateY(-4px);
  }
}

/* ── Precios en tarjetas de cursos ── */
.curso-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.02em;
}

.curso-precio {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
}

.curso-precio-desde {
  font-size: 0.8rem;
  color: #999;
}

.curso-precio-valor {
  font-size: 1.4rem;
  font-weight: 800;
  color: #dc3545;
}

.curso-precio-nota {
  font-size: 0.72rem;
  color: #aaa;
  font-style: italic;
  width: 100%;
  margin-top: -4px;
}

/* ── Combos ── */
.combo-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.combo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.combo-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  border: 1px solid #ffc107;
}

.combo-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.combo-desc {
  color: #555;
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ── Links de servicios y convenios ── */
.link-servicio,
.link-convenio {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #dc3545;
  text-decoration: none;
  margin-top: auto;
  padding-top: 8px;
  transition: color 0.2s;
}

.link-servicio:hover,
.link-convenio:hover {
  color: #a71d2a;
  text-decoration: underline;
}

/* ── Alineación botones en service-card ── */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card p {
  flex: 1;
}

.service-card .btn,
.service-card .link-servicio {
  align-self: flex-start;
  font-size: 0.8rem;
  padding: 4px 10px;
}
