:root {
  --color-primary-dark: #0D1B2A;
  /* Fondo header, modal, destacados */
  --color-primary: #1B263B;
  /* Fondo general de secciones */
  --color-secondary: #415A77;
  /* Botones y links */
  --color-accent: #E0AA3E;
  /* Hover, detalles */
  --color-text: #F0F0F0;
  /* Texto principal */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Segoe UI", sans-serif;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-primary);
  scroll-behavior: smooth;
}

/* TITULOS */
h1,
h2,
h3 {
  font-family: var(--font-heading);
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text);
}

section {
  padding: 80px 0;
  width: 100vw;
}

/* HEADER */
header {
  background: var(--color-primary-dark);
  padding: 15px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  transition: 0.3s;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* MENU HAMBURGUESA */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

/* LANDING */
.landing {
  height: 100vh;
  width: 100vw;
  background: linear-gradient(rgba(13, 27, 42, 0.6), rgba(27, 38, 59, 0.6)),
    url("../img/landing.png") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-text);
  position: relative;
  background-attachment: fixed;
  /* Parallax */
}

.landing-text {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.landing h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

.landing p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--color-text);
}

/* BOTONES */
.btn,
.btn-whatsapp {
  display: inline-block;
  padding: 12px 30px;
  background: var(--color-secondary);
  color: var(--color-text);
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}

.btn:hover {
  background: var(--color-accent);
  transform: scale(1.05);
}

.btn-whatsapp {
  background: #25D366;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  transform: scale(1.05);
}

.btn-whatsapp i {
  margin-right: 10px;
}

/* CONTENEDORES */
.section-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* SERVICIOS */
.services {
  background: linear-gradient(to bottom, var(--color-primary-dark), var(--color-primary));
  padding-top: 120px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  color: var(--color-text);
  height: 350px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.card img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.card h3 {
  margin: 10px 0;
  font-size: 1.6rem;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  color: var(--color-text);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* PLANES */
.pricing {
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-dark));
  padding-top: 120px;
  padding-bottom: 80px;
  margin-top: 40px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.plan {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  color: var(--color-text);
  transition: transform 0.3s, box-shadow 0.3s;
}

.plan.destacado {
  border: 3px solid var(--color-accent);
  background: var(--color-primary-dark);
  color: var(--color-text);
}

.plan button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background: var(--color-secondary);
  color: var(--color-text);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.plan button:hover {
  background: var(--color-accent);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--color-primary-dark);
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
  color: var(--color-text);
  transform: scale(0.8);
  transition: transform 0.3s;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-content h3,
.modal-content p {
  color: var(--color-text);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

/* UBICACIÓN */
.location {
  background: linear-gradient(to bottom, var(--color-primary-dark), var(--color-primary));
  padding-top: 120px;
  padding-bottom: 80px;
}

.location iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 12px;
  margin-top: 20px;
}

/* CONTACTO */
.contacto {
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-dark));
  text-align: center;
  padding: 120px 20px;
}

.contacto h2 {
  margin-bottom: 20px;
}

.contacto p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contacto form {
  display: grid;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

.contacto input,
.contacto textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

.contacto button {
  border: none;
  cursor: pointer;
  padding: 12px 25px;
  border-radius: 30px;
  background: var(--color-secondary);
  color: var(--color-text);
  font-weight: bold;
  transition: 0.3s;
}

.contacto button:hover {
  background: var(--color-accent);
}

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.whatsapp-float:hover {
  background: #1ebe57;
  transform: scale(1.1);
}

/* EFECTO BRILLO HORIZONTAL */
.card:hover::before,
.plan:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.card:hover::before,
.plan:hover::before {
  opacity: 1;
  animation: shine-horizontal 1s forwards;
}

@keyframes shine-horizontal {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* MEDIA QUERIES */
@media (max-width:480px) {
  .landing {
    background-image: url("../img/landing-mobile.png");
    background-size: cover;
    background-position: top center;
    background-attachment: scroll;
  }

  .landing h1 {
    font-size: 2.2rem;
  }

  .landing p {
    font-size: 1rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 200px;
  }

  .card h3 {
    font-size: 1.4rem;
  }
}

@media (max-width:768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--color-primary-dark);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    gap: 10px;
    padding: 20px;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}