/* ===============================
   RESET + VARIABLES + GENERALES
   =============================== */
html,
body {
  overflow-x: hidden !important;
  width: 100vw;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: var(--font-body);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --font-heading: "Poppins", "Montserrat", sans-serif;
  --font-body: "Roboto", "Open Sans", sans-serif;
  --color-bg: linear-gradient(180deg, #f7f9ff 0%, #e2e6f0 100%);
  --color-white: #fff;
  --color-black: #000;
  --color-primary: #6767ff;
  --color-secondary: #18e3e3;
  --color-text: #333;
  --color-text-alt: #666;
}

/* ==========================
        HEADER + NAV
        ========================== */
.header {
  position: fixed;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgb(0, 0, 0, 0.9); /* Fondo un poco más opaco para el menú */
  padding: 1rem 2rem;
  z-index: 2000;
  width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
  transition: background-color 0.3s ease; /* Transición suave para el fondo */
}
.header__logo {
  display: flex;
  align-items: center;
}
.header__logo-image {
  height: 4rem;
  width: auto;
}
.menu-icon {
  display: none;
  font-size: 2.2rem;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
  position: relative;
}
.header__nav {
  display: flex;
  position: static;
  flex-direction: row;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  max-width: none;
  min-width: 0;
  z-index: 2000;
}
.nav__list {
  font-family: var(--font-heading);
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav__link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transition: width 0.3s ease;
}
.nav__link:hover {
  color: var(--color-secondary);
}
.nav__link:hover::after {
  width: 100%;
}

/* ===================================================
        MODIFICACIONES PARA EL NUEVO MENÚ MÓVIL
      =================================================== */
@media (max-width: 768px) {
  .header {
    /* CAMBIO: Permite que el menú se coloque debajo */
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu-icon {
    display: block !important;
  }

  /* 1. Estilo base del menú (cuando está oculto) */
  .header__nav {
    /* CAMBIO: Ocupa todo el ancho disponible en una nueva línea */
    flex-basis: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;

    /* CAMBIO: Se oculta con max-height */
    max-height: 0;
    overflow: hidden;

    /* CAMBIO: Se elimina posicionamiento y transformaciones */
    position: static;
    width: 100%;
    height: auto;

    /* CAMBIO: Se anima la propiedad max-height */
    transition: max-height 0.1s ease-in-out;

    /* Se limpian estilos innecesarios */
    padding: 0 1rem;
    background: none;
    box-shadow: none;
  }

  /* 2. Estilo del menú cuando está activo */
  .header__nav.active {
    /* CAMBIO: Se expande a una altura suficiente y se añade padding */
    max-height: 500px; /* Un valor seguro para el contenido */
    padding: 2rem 1rem 1rem;
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
    margin: 0;
    text-align: center;
  }

  .nav__link {
    font-size: 1.8rem;
  }
}

/* OCULTAR HAMBURGUESA EN DESKTOP */
@media (min-width: 769px) {
  .menu-icon {
    display: none !important;
  }
  .header__nav {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    flex-basis: auto; /* Restaura el comportamiento en desktop */
    padding: 0 !important;
    width: auto !important;
    max-height: none; /* Elimina el límite de altura */
    overflow: visible; /* Asegura que sea visible */
  }
  .nav__list {
    flex-direction: row;
    gap: 1.5rem;
    text-align: left;
  }
  .nav__link {
    font-size: 1.2rem;
  }
}

/* HEADER FIJO Y MARGEN EN MOBILE */
@media (max-width: 600px) {
  .header {
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    box-sizing: border-box;
    z-index: 3000;
  }
  main {
    margin-top: 6rem;
  }
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 350px;
  overflow: hidden;
  max-width: 100vw;
}
.hero__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 6rem 1rem 0 1rem;
}
.hero__title {
  color: #fff;
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  max-width: 800px;
  margin: auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.hero__title--highlight {
  background: rgba(12, 12, 29, 0.6);
  color: var(--color-primary);
  padding: 0 0.3em;
  border-radius: 0.2em;
}

section,
.footer,
.hero,
.about,
.services,
.team,
.contact {
  box-sizing: border-box;
  max-width: 100vw;
  overflow-x: hidden;
}

.about {
  padding: 6rem 1rem;
  text-align: center;
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.65)
    ),
    url("./assets/images/wallpaper.jpg") no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  border-bottom: 1px solid #e5e5ef;
  min-height: 30vh;
}

.about__title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.about__text {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text-alt);
}

.services {
  padding: 4rem 1rem;
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.65)
    ),
    url("./assets/images/wallpaper.jpg") no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
}
.services_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.service {
  background: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.service__icon {
  width: 130px;
  height: 130px;
  display: block;
  margin: 0 auto 1rem;
  padding: 1rem;
  background: rgba(103, 103, 255, 0.1);
  border-radius: 50%;
  object-fit: contain;
}
.service__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}
.service__title::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 0.25rem;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 2px;
  margin-top: 0.5rem;
}
.service__description {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-alt);
  margin: 1rem 0;
  line-height: 1.4;
}
.service__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
}
.service__feature {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text);
}
.service__feature::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
}
@media (max-width: 1024px) {
  .services_container {
    grid-template-columns: 1fr;
  }
}

.approach {
  padding: 4rem 1rem;
  background: var(--color-white);
  text-align: center;
}
.approach__title {
  display: inline-block;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}
.approach__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  max-width: 800px;
  text-align: left;
}
.approach__item {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.approach__item::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-size: 1.25rem;
}
.approach__contact {
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 1rem;
}

.team {
  padding: 7rem 1rem 4rem;
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.9)
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),
    url("./assets/images/wallpaper.jpg") no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  text-align: center;
}
.team__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.team__description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: #222;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

.contact {
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #ffffff, #f9f9ff);
  text-align: center;
}
.contact__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.contact__form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.form__group {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.form__group label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.form__group input,
.form__group textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  resize: none;
}
.form__group input:invalid,
.form__group textarea:invalid {
  border-color: #e74c3c;
}
.contact__btn {
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.contact__btn:hover {
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
@media (max-width: 600px) {
  .contact__form {
    max-width: 96vw;
    padding: 1rem;
    border-radius: 0.7rem;
    box-sizing: border-box;
  }
  .contact {
    padding: 2rem 0.3rem;
  }
}

section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.035);
  max-width: 100vw;
  overflow-x: hidden;
}

.plantillas-carousel {
  padding: 50px 20px;
  text-align: center;
  background-color: #f9f9f9;
}

.plantillas-carousel__title {
  color: var(--color-text);
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  margin: 0 auto;
  margin-bottom: 40px;
}

.swiper {
  width: 100%;
  max-width: 375px;
  height: 667px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  background: url("./assets/images/bg-carrusel.jpg");
}

@media (min-width: 600px) {
  .swiper {
    width: 100%;
    max-width: 1200px;
    height: 700px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: url("./assets/images/bg-carrusel.jpg");
  }
}

.swiper-slide {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-hero__image {
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: scale-down;
  display: block;
  object-position: top;
}

.slide-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 10px 20px 40px;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.slide-hero__title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--color-secondary);
}

.slide-hero__subtitle {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 500;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-white);
}

.slide-btn {
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.slide-btn:hover {
  background-color: #0056b3;
}

.slide-btn.disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
}

.swiper-pagination-bullet {
  background: #fff;
}

.swiper-pagination-bullet-active {
  background: #fff;
}

.footer {
  background: #161623;
  padding: 2.2rem 0 1.2rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}
.footer__copy {
  color: #c4c8ee;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: 0.5px;
  text-align: center;
}
.footer__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}
.footer__link {
  color: #b9bcff;
  text-decoration: none;
  font-size: 1.13rem;
  font-weight: 500;
  transition: color 0.25s;
}
.footer__link:hover {
  color: #18e3e3;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .footer__copy {
    font-size: 1rem;
  }
  .footer__list {
    gap: 1.2rem;
    flex-wrap: wrap;
  }
}

#admin {
  color: #b9bcff;
}
#admin:hover {
  color: #18e3e3;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.18s;
  animation: wsp-bounce-in 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55) 1;
  padding: 0;
}
.whatsapp-float img {
  width: 57px;
  height: 57px;
  display: block;
  filter: drop-shadow(0 2px 6px #1118);
  background: none;
  border-radius: 50%;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
@keyframes wsp-bounce-in {
  0% {
    transform: scale(0.2) translateY(40px);
    opacity: 0;
  }
  60% {
    transform: scale(1.15) translateY(-6px);
    opacity: 0.7;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .whatsapp-float {
    right: 12px;
    bottom: 12px;
  }
  .whatsapp-float img {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .service {
    text-align: center;
  }
  .service__title::after {
    margin: 0 auto;
  }
  .service__features {
    align-items: center;
  }
  .service__features li {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .service {
    text-align: center;
    padding: 1rem;
  }
  .service__title {
    font-size: 1.3rem;
  }
  .service__features {
    align-items: center;
    font-size: 0.95rem;
    gap: 0.3rem;
  }
  .service__features li {
    justify-content: center;
  }
}

main,
.about,
.services,
.team,
.contact,
.plantillas-carousel,
.carousel-hero,
.carousel-hero__slides {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
