* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: white;
  min-height: 100vh;
  background: #000;
  position: relative;
}

/* FONDO GLOBAL */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0.68)),
    url("fondoweb.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

/* MENU */
header,
.page-nav,
.marketing-nav,
.planes-nav {
  background: rgba(0,0,0,0.85);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar,
.page-nav,
.marketing-nav,
.planes-nav {
  max-width: 1200px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #ffd000;
  font-size: 24px;
  font-weight: bold;
}

.menu {
  display: flex;
  gap: 20px;
  align-items: center;
  list-style: none;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu a:hover {
  color: #ffd000;
}

/* HERO */
.hero {
  min-height: 88vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-content {
  max-width: 900px;
  background: rgba(0,0,0,0.65);
  padding: 35px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero h1,
.hero h2 {
  color: #ffd000;
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 25px;
}

/* SECCIONES SIN RECUADRO GRANDE */
.seccion,
.pagina,
.page-section {
  max-width: 1250px;
  margin: auto;
  padding: 70px 20px;
  text-align: center;
  background: transparent !important;
}

.seccion h2,
.pagina h2,
.page-section h1 {
  color: #ffd000;
  margin-bottom: 25px;
  font-size: 36px;
}

.texto-centro,
.page-section p {
  max-width: 850px;
  margin: 0 auto 30px;
  font-size: 18px;
  text-align: center;
}

/* BOTONES */
.botones,
.contacto-box {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.btn,
.btn-card,
.back-home {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.amarillo,
.btn-card,
.back-home {
  background: #ffd000;
  color: black !important;
}

.verde {
  background: #25d366;
  color: black !important;
}

.negro {
  background: black;
  color: #ffd000 !important;
  border: 1px solid #ffd000;
}

.btn-card {
  margin-top: 15px;
}

.btn-card:hover,
.back-home:hover {
  background: #e6bb00;
}

/* RECUADROS INDEPENDIENTES - QUE HACEMOS */
.cards {
  max-width: 1200px;
  margin: 40px auto 0;

  display: flex;
  justify-content: center;
 gap: 25px;
  flex-wrap: wrap;
}

.card {
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  width: 260;
  height: 260;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #ffd000;
  transition: 0.3s;
}

.card h3 {
  color: #ffd000;
  margin-bottom: 15px;
  font-size: 22px;
}

.card p {
  font-size: 16px;
  margin-bottom: 15px;
}

/* PLANES WEB Y MARKETING - RECUADROS INDEPENDIENTES */
.marketing-container {
  max-width: 1200px;
  margin: 40px auto 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.marketing-box {
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 30px 24px;
  min-height: 330px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.marketing-box h2 {
  color: #ffd000;
  margin-bottom: 20px;
  font-size: 28px;
}

.marketing-box ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.marketing-box ul li {
  margin-bottom: 12px;
  font-size: 17px;
  color: white;
}

/* GALERIA */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.foto {
  height: 250px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FORMULARIO */
.formulario {
  max-width: 600px;
  margin: 40px auto 0;
  background: rgba(0,0,0,0.78);
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario input,
.formulario textarea,
.formulario select {
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
}

.formulario textarea {
  min-height: 120px;
  resize: vertical;
}

/* CONTACTO */
.contacto-box {
  max-width: 600px;
  margin: 40px auto 0;
  flex-direction: column;
}

.contacto-box .btn {
  text-align: center;
}

/* REDES */
.redes {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.redes a {
  background: #ffd000;
  color: black;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.redes a:hover {
  background: white;
  color: black;
}

/* FOOTER */
footer {
  background: rgba(0,0,0,0.88);
  text-align: center;
  padding: 20px;
  color: white;
}

/* TABLET */
@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .marketing-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* TELEFONO */
@media (max-width: 700px) {
  .navbar,
  .page-nav,
  .marketing-nav,
  .planes-nav {
    flex-direction: column;
    gap: 15px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  .hero h1,
  .hero h2 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-content {
    padding: 25px;
  }

  .cards,
  .marketing-container,
  .galeria {
    grid-template-columns: 1fr;
  }

  .card,
  .marketing-box {
    width: 100%;
    max-width: 320px;
    margin: auto;
  }

  .btn,
  .btn-card,
  .back-home {
    width: 100%;
    text-align: center;
  }
}
/* FORZAR RECUADROS CUADRADOS */
.cards .card {
    width: 300px !important;
    height: 300px !important;
    min-height: 300px !important;
    max-width: 300px !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: center !important;

    overflow: hidden !important;
}

/* evitar que el texto los deforme */
.cards .card p {
    width: 100%;
    word-wrap: break-word;
}

/* botón más pequeño */
.cards .btn-card {
    width: auto !important;
    padding: 10px 20px !important;
}
/* ALINEAR TODOS LOS RECUADROS DE QUE HACEMOS */

.cards {
  align-items: stretch !important;
}

.card {
  height: 280px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
/* CUADRAR PLANES WEB */

.marketing-container {
  align-items: flex-start !important;
}

.marketing-box {
  width: 280px !important;
  height: 300px !important;
  margin-top: 0 !important;
  align-self: flex-start !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}/* PLANES WEB HORIZONTALES */

.marketing-container {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 25px !important;
  flex-wrap: nowrap !important;
}
/* FORZAR PLANES WEB HORIZONTALES */

.page-section .marketing-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 25px !important;
    flex-wrap: nowrap !important;
}

.page-section .marketing-box {
    width: 280px !important;
    height: 300px !important;
}/* FORZAR PLANES WEB HORIZONTALES */

.page-section .marketing-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 25px !important;
    flex-wrap: nowrap !important;
}

.page-section .marketing-box {
    width: 280px !important;
    height: 300px !important;
}
.marketing-box {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.marketing-box .btn-card {
  margin-top: auto !important;
}
/* ARREGLO REAL PLANES MARKETING MOVIL */
@media (max-width: 768px){

  .marketing-plans,
  .planes-container,
  .plans-container,
  .cards {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .marketing-box,
  .plan-card,
  .card {
    width: 90% !important;
    max-width: 340px !important;
    min-width: unset !important;
    height: auto !important;
    min-height: auto !important;
    margin-bottom: 30px !important;
    overflow: visible !important;
  }

  .marketing-box a,
  .plan-card a,
  .card a,
  .btn {
    display: block !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 20px auto !important;
    position: static !important;
  }

  body,
  html {
    overflow-x: hidden !important;
  }
}