/* =========================
   PALETA MYLO SOUL
========================= */
:root {
  --lavanda: #cabdff;
  --violeta: #7c6ee6;
  --gris-oscuro: #1e1e1e;
  --gris-claro: #f4f4f6;
  --blanco: #ffffff;
}

/* =========================
   BASE
========================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--gris-oscuro);
  background-color: var(--blanco);
}

/* =========================
   CONTENEDOR GLOBAL
========================= */
.mylo-container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* =========================
   NAVBAR
========================= */
.mylo-navbar {
  background-color: var(--blanco);
  border-bottom: 1px solid #eaeaea;
}

.logo-desktop {
  height: 42px;
}

.logo-mobile {
  height: 36px;
}

.mylo-navbar .nav-link {
  color: var(--gris-oscuro);
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.2s ease;
}

.mylo-navbar .nav-link:hover {
  color: var(--violeta);
}

.mylo-navbar .nav-cta {
  color: var(--violeta);
  font-weight: 600;
}

/* =========================
   HERO
========================= */
.mylo-hero {
  background: linear-gradient(
    135deg,
    var(--gris-claro) 0%,
    #ebe9ff 50%,
    var(--blanco) 100%
  );
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-title span {
  color: var(--violeta);
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  max-width: 520px;
  color: #444;
}

.hero-image {
    max-width: 520px;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.btn-whatsapp-violeta {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: linear-gradient(135deg, #7b6cf6, #9b8cff);
  color: #ffffff;

  padding: 14px 28px;
  border-radius: 999px;

  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;

  box-shadow: 0 8px 24px rgba(123, 108, 246, 0.35);
  transition: all 0.3s ease;
}

.btn-whatsapp-violeta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(123, 108, 246, 0.45);
  color: #ffffff;
}

.whatsapp-icon {
  display: flex;
  align-items: center;
}

/* =========================
   BOTONES
========================= */
.btn-mylo {
  background-color: var(--violeta);
  color: var(--blanco);
  padding: 0.7rem 2.2rem;
  border-radius: 999px;
  font-weight: 500;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-mylo:hover {
  background-color: var(--lavanda);
  color: var(--gris-oscuro);
}

.btn-mylo-outline {
  border: 1.5px solid var(--violeta);
  color: var(--violeta);
  background: transparent;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-mylo-outline:hover {
  background-color: var(--violeta);
  color: #fff;
}

/* =========================
   SECCIONES SUAVES
========================= */
.mylo-section-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f6f4ff 100%);
}

/* =========================
   SOBRE MYLO
========================= */
#sobremi h2 {
  line-height: 1.25;
}

#sobremi p {
  max-width: 720px;
  margin-inline: auto;
}

#sobremi strong,
.text-mylo {
  color: var(--violeta);
  font-weight: 600;
}

.about-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(124, 110, 230, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-icon i {
  font-size: 1.4rem;
  color: var(--violeta);
}

/* =========================
   ONEPAGES / SERVICIOS
========================= */
#onepage {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f6f4ff 45%,
    #ffffff 100%
  );
}

.section-divider {
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--lavanda),
    var(--violeta)
  );
}
 
/* =========================
   ICONOS SERVICIOS
========================= */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(124, 110, 230, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle i {
  font-size: 1.4rem;
  color: var(--violeta);
}

/* =========================
   CARDS / PLANES
========================= */
.project-card {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(124, 110, 230, 0.18);
}

.project-card .btn {
  min-height: 42px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.project-card-img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.project-card-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
  background: linear-gradient(
    180deg,
    rgba(245, 244, 250, 0.9),
    rgba(255, 255, 255, 1)
  );
}
.project-card-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}
.project-card-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}


/* =========================
   BADGES
========================= */
.badge-mylo {
  background-color: var(--violeta);
  color: #fff;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
}

/* =========================
   CONTACTO / FORMULARIO
========================= */
#contacto form {
  background: #f9f8ff;
  padding: 2rem;
  border-radius: 1.25rem;
}

#contacto .form-control {
  border-radius: 0.75rem;
  border: 1px solid #ddd;
}

#contacto .form-control:focus {
  border-color: var(--violeta);
  box-shadow: 0 0 0 0.15rem rgba(124, 110, 230, 0.2);
}

/* =========================
   VALIDACIONES
========================= */
.mylo-input.error {
  border: 2px solid var(--violeta);
}

.error-text {
  color: var(--violeta);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

/* =========================
   FOOTER
========================= */


.mylo-footer {
  background: linear-gradient(180deg, #dcd6fd 0%, #bdb3ff 100%);
  padding: 3rem 0 1.5rem;
  color: #ffffff;
}

/* Logo */
.footer-logo {
  max-width: 72px;
  margin-bottom: 0.8rem;
}

/* Títulos footer */
.footer-heading {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

/* Texto */
.footer-title {
  color: #ffffff;
  font-weight: 600;
}

.footer-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center; /* mobile */
}


.footer-social a {
  color: #ffffff;
  font-size: 1.4rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Línea divisoria */
.footer-divider {
  border-color: rgba(255, 255, 255, 0.25);
  margin: 2rem 0 1rem;
}

/* Copy */
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}
.footer-mail {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.footer-mail:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================
   UTILIDADES
========================= */
.bg-lavanda {
  background-color: var(--lavanda);
}

.whatsapp-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: 24px;
  right: 24px;
  background-color: #7c6ee6; /* violeta Mylo Soul */
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(124, 110, 230, 0.35);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(124, 110, 230, 0.45);
}

.whatsapp-float i {
  line-height: 1;
}


/* =========================
   RESPONSIVE
========================= */

@media (min-width: 1200px) {

  #hero .row {
    display: flex;
    align-items: center;
  }

  #hero .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Imagen a la derecha */
  #hero .hero-image {
    max-width: 420px;
    margin-left: auto;
    display: block;
  }

}

@media (min-width: 768px) {
  .footer-social {
    justify-content: flex-end;
  }
}


@media (max-width: 575px) {
  #sobremi h2,
  #onepage h2 {
    font-size: 1.6rem;
  }

  .project-card {
    box-shadow: 0 12px 30px rgba(124, 110, 230, 0.12);
  }
}
