/* ========================================
   ESTILOS PERSONALIZADOS MÍNIMOS
   ======================================== */

:root {
  --primary: #6b00d6;
  --primary-dark: #4a0099;
  --primary-dark-hover: rgba(74, 0, 153, 1);
  --bs-modal-header-border-color: var(--primary);
  --dark: #1b1f24;
  --light: #f8f9fa;
  --bg-alt: #22282f;
  --bg-transparencia: #949494;
  --font-size: 1.2rem;
}

/* TIPOGRAFÍA */
body,
.modal-content {
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  line-height: 1.6;
  background-color: var(--dark);
  /* color: #ffffff; */
  color: var(--light);
  font-size: var(--font-size);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--light);
}

/* COLORES PERSONALIZADOS */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

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

.span-button-home:hover {
  text-shadow: 0 0 0.5rem var(--primary-dark-hover);
}

.text-primary {
  color: var(--primary) !important;
}

.border-bottom-primary {
  border-bottom-color: var(--primary) !important;
  border-bottom-style: solid;
}

.border-top-primary {
  border-top-color: var(--primary) !important;
  border-top-style: solid;
}

/* NAVBAR */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  color: white !important;
  letter-spacing: 1px;
}

/* REDES SOCIALES */

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 20%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.social-link:hover {
  background-color: var(--primary-dark-hover);
  color: var(--light);
  transform: translateY(-0.18rem);
}

/* FLEXBOX RESPONSIVE */
.flex-portada-img {
  flex: 1 1 45%;
  min-width: 0;
}

.flex-portada-content {
  flex: 1 1 55%;
  min-width: 0;
}

.flex-historia-img {
  flex: 1 1 45%;
  min-width: 0;
}

.flex-historia-text {
  flex: 1 1 55%;
  min-width: 0;
}

.flex-servicios-img {
  flex: 1 1 45%;
  min-width: 0;
}

.flex-servicios-text {
  flex: 1 1 55%;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .flex-portada-img,
  .flex-portada-content,
  .flex-historia-img,
  .flex-historia-text,
  .flex-servicios-img,
  .flex-servicios-text {
    flex: 1 1 100% !important;
  }
}

section h2 {
  position: relative;
}

/* FEATURES */
.feature {
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.feature i {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* FORMULARIO */
.newsletter-form .form-control {
  border: 0.3rem solid #444;
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  transition: border-color 0.3s ease;
  background-color: #2d343f;
  color: #ffffff;
}

.newsletter-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(107, 0, 214, 0.3);
  background-color: #2d343f;
  color: #ffffff;
}

.form-check-label a {
  color: var(--primary);
  text-decoration: none;
}

.form-check-label {
  color: #ffffff;
}

.form-check-label a:hover {
  text-decoration: underline;
}

#formMessage {
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  font-weight: 500;
  display: none;
}

#formMessage.success {
  background-color: #d4edda;
  color: #155724;
  border: 0.18rem solid #c3e6cb;
  display: block;
}

#formMessage.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 0.18rem solid #f5c6cb;
  display: block;
}

/* HERO CTA FINAL */
.hero-section-cta {
  position: relative;
  background-attachment: fixed;
}

.hero-section-cta .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

/* IMAGEN RESPONSIVA */
.div-foto-aviso {
  height: auto;
  object-fit: cover;
  box-shadow: 0 0.18rem 1.1rem rgba(107, 0, 214, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* IMAGEN DE HISTORIA */
.div-historia-foto {
  position: relative;
  min-height: 25rem;
  border-radius: 1rem;
  overflow: hidden;
}

.img-clon-historia {
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 25px rgba(107, 0, 214, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* FOOTER */
footer {
  margin-top: 80px;
  border-top: 1px solid #333;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary) !important;
}

/* ANIMACIONES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-section {
    padding: 50px 0;
  }

  h1.display-4 {
    font-size: 2rem;
  }

  h2.display-5 {
    font-size: 1.8rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .hero-section-cta {
    min-height: 40vh !important;
  }

  .hero-section-cta h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .social-links {
    justify-content: center !important;
  }

  .span-button-home,#popupModalLabel {
    font-size: 1rem;
  }

  .feature {
    font-size: 0.95rem;
  }

  .feature i {
    font-size: 1.1rem;
  }

  h1.display-4 {
    font-size: 1.5rem;
  }

  .btn-lg {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
}

/* SCROLL SUAVE */
html {
  scroll-behavior: smooth;
}

.has-text-align-right {
  text-align: right;
}
/*DIV PORTADA*/
.div-portada-foto {
  padding-right: 0;
  padding-left: 0;
  /* min-height: 313px; */
  aspect-ratio: unset;
}

#div-portada-titulacion {
  color: #5d6c83 !important;
}

#div-servicios-texto {
  font-style: italic;
  font-weight: 200;
  line-height: 1.7;
}

.hr {
  margin-left: 25%;
  margin-right: 25%;
  border-color: var(--primary) !important;
  border-style: solid;
}

.img-clon-portada2 {
  align-items: center;
  background-position: 50%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: 22rem;
  overflow: hidden;
  overflow: clip;
  padding: 1em;
  position: relative;
}

.div-historia-foto {
  padding-right: 0;
  padding-left: 0;
  /* min-height: 313px; */
  aspect-ratio: unset;
}
.img-clon-portada,
.img-clon-historia {
  border: none;
  bottom: 0;
  box-shadow: none;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  outline: none;
  padding: 0;
  position: absolute;
  width: 100%;
}

.img-clon-portada {
  object-position: 0% 34%;
}
.img-clon-entrenamiento {
  max-width: 88%;
}

.has-background-dim {
  bottom: 0;
  opacity: 0.5;
  position: absolute;
  top: 0;
  background-color: var(--bg-transparencia);
}

.popupModalClass {
  display: inline-grid;
  text-align: center;
}

.btn-close:focus,
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler {
  border-color: var(--light);
}
.navbar-toggler:hover {
  box-shadow: 0 0 0.5rem var(--primary-dark-hover) !important;
  border-color: 0 0 0.5rem var(--primary-dark-hover);
}

.social-link-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  color: var(--light);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.social-link-footer:hover {
  text-shadow: 0 0 0.5rem var(--primary-dark-hover);
}


.social-link-index a {
  
  transition: color 0.3s ease;
}

.social-link-index a:hover {
  color: var(--primary) !important;
}
