/* ---------- RESET SENCILLO ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #101010;
  color: #fff;
  line-height: 1.5;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
}


/* ===========================
   PRELOADER (apagado por defecto)
   =========================== */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* APAGADO POR DEFECTO */
  display: none;
  opacity: 0;
  visibility: hidden;

  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #111 0%, #000 60%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* cuando se activa desde JS */
body.preloader-active #preloader {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* cuando se apaga */
#preloader.preloader-fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
}


/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 219, 148, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 181, 67, 0.5);
  background: #000;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}
.brand-name {
  font-weight: 700;
  font-size: 0.96rem;
}
.brand-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.5rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffb020 0%, #ffdf7c 100%);
  transition: width 0.25s ease;
  border-radius: 999px;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-cta a {
  background: linear-gradient(130deg, #ffb020 0%, #ffd569 100%);
  color: #111;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(255, 198, 103, 0.28);
  font-weight: 600;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  width: 38px;
  height: 30px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  background: #fff1d3;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/Hotel del bono 3.jpeg") center/cover no-repeat;
  filter: brightness(0.45);
  transform: scale(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 40% 30%,
    rgba(0, 0, 0, 0) 0%,
    #101010 68%
  );
  pointer-events: none;
}
.electric-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.electric-line {
  position: absolute;
  width: 1.8px;
  height: 310px;
  background: linear-gradient(
    180deg,
    rgba(255, 154, 41, 0) 0%,
    rgba(255, 169, 66, 0.6) 45%,
    rgba(255, 154, 41, 0) 100%
  );
  filter: drop-shadow(0 0 6px rgba(255, 150, 42, 0.25));
  animation: float-line 11s ease-in-out infinite;
  opacity: 0.6;
}
.electric-line.l1 {
  top: 8%;
  left: 14%;
  animation-delay: 0s;
}
.electric-line.l2 {
  top: 16%;
  right: 12%;
  height: 260px;
  animation-delay: 1.4s;
}
.electric-line.l3 {
  top: 52%;
  left: 33%;
  height: 330px;
  animation-delay: 2.3s;
}
.electric-line.l4 {
  top: 30%;
  right: 34%;
  height: 280px;
  animation-delay: 3.2s;
}
.electric-line.l5 {
  top: 60%;
  right: 4%;
  height: 230px;
  animation-delay: 4.1s;
}
@keyframes float-line {
  0% {
    transform: translateY(16px);
    opacity: 0.1;
  }
  30% {
    opacity: 0.75;
  }
  50% {
    transform: translateY(-16px);
  }
  100% {
    transform: translateY(16px);
    opacity: 0.12;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding-inline: 1rem;
}
.hero h1 {
  font-size: clamp(2.75rem, 4vw, 3.4rem);
  text-shadow: 0 0 28px rgba(255, 188, 76, 0.25);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.hero-sub {
  font-size: 1.12rem;
  color: #fff7e2;
  margin-bottom: 0.35rem;
}
.hero-small {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(140deg, #ffb020 0%, #ffdf99 100%);
  color: #1a1a1a;
  padding: 0.65rem 1.4rem;
  box-shadow: 0 12px 28px rgba(255, 173, 57, 0.3);
}
.btn-outline {
  background: rgba(15, 15, 15, 0.35);
  border: 1px solid rgba(255, 212, 117, 0.25);
  color: #fff2d6;
  padding: 0.6rem 1.2rem;
}

/* ---------- SECCIONES GENERALES ---------- */
.section {
  padding: clamp(3.2rem, 6vw, 4.2rem) 0;
}
.section h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  align-items: center;
}
.about-text h2 {
  text-align: left;
  margin-bottom: 1rem;
}
.about-text p {
  margin-bottom: 0.75rem;
}
.about-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.about-media img {
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 190, 73, 0.15);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.35);
}

/* ---------- WORKS ---------- */
.works .works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.6rem;
}
.work-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 209, 120, 0.04);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.15s ease, border 0.15s ease;
  height: 100%;
}
.work-card:hover {
  transform: translateY(-3px);
  border: 1px solid rgba(255, 189, 83, 0.35);
}
.work-img {
  height: 180px;
  overflow: hidden;
}
.work-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.work-body {
  padding: 1rem 1rem 1.3rem;
}
.work-body h3 {
  margin: 0 0 0.4rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.badge {
  font-size: 0.65rem;
  background: rgba(255, 185, 55, 0.16);
  border: 1px solid rgba(255, 185, 55, 0.78);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* ---------- SERVICES ---------- */
.services .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: rgba(255, 255, 255, 0.014);
  border: 1px solid rgba(255, 191, 76, 0.1);
  border-radius: 1rem;
  padding: 1.3rem 1.25rem 1.05rem;
  text-align: left;
  transition: transform 0.12s ease, border 0.12s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border: 1px solid rgba(255, 191, 76, 0.6);
}
.service-card .icon {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.service-card h3 {
  margin-bottom: 0.35rem;
}

/* ---------- CONTACT ---------- */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.contact-btn {
  padding: 0.6rem 1.3rem;
  border-radius: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.contact-btn.whatsapp {
  background: #25d366;
  color: #071b0f;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.2);
}
.contact-btn.mail {
  background: rgba(255, 175, 54, 0.07);
  border-color: rgba(255, 202, 113, 0.25);
}
.contact-btn.instagram {
  background: rgba(255, 122, 67, 0.08);
  border-color: rgba(255, 217, 179, 0.25);
}

.contact-form {
  max-width: 540px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 184, 69, 0.05);
  border-radius: 1.25rem;
  padding: 1.4rem 1.1rem 1.4rem;
  display: grid;
  gap: 1rem;
}
.contact-form label {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
  display: inline-block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 173, 63, 0.08);
  border-radius: 0.6rem;
  padding: 0.5rem 0.55rem;
  color: #fff;
}
.submit-btn {
  width: fit-content;
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 223, 140, 0.04);
  padding: 1.15rem 0;
  background: rgba(0, 0, 0, 0.35);
}
.footer-inner {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.34);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 72vh;
  }
}
@media (max-width: 780px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    inset: 62px 0 auto 0;
    background: rgba(4, 4, 4, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.7rem;
    transform: translateY(-140%);
    transition: transform 0.2s ease-out;
  }
  .nav-links.show {
    transform: translateY(0);
  }
  .nav-cta {
    width: 100%;
  }
  .nav-cta a {
    width: 100%;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .works .works-grid {
    grid-template-columns: 1fr 1fr;
  }
  .services .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  .contact-btn {
    width: min(260px, 100%);
    text-align: center;
  }
}
@media (max-width: 520px) {
  .works .works-grid {
    grid-template-columns: 1fr;
  }
  .services .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-bg {
    background-position: 55% 20%;
  }
}

/* Páginas internas */
.page-hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 176, 32, 0.08),
    rgba(0, 0, 0, 0)
  );
  border-bottom: 1px solid rgba(255, 209, 120, 0.06);
}
.page-hero h1 {
  text-align: center;
  margin: 0 0 0.25rem;
}
.page-hero .section-sub {
  text-align: center;
  margin-bottom: 0;
}

.course-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 209, 120, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
}
.course-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.1rem;
}
.course-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #25d366;
  color: #07210f;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 1000;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.45);
}
@media (max-width: 520px) {
  .whatsapp-fab {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }
}
