/* Tipografía y colores base */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5em;
}


/* Header */
header {
  background: linear-gradient(135deg, #e8eaec 0%, #23374b 60%, #747f8a 100%);
  color: #fff;
  width: 100%;
  position: relative;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2em;
  height: 68px;
}

.header-accent {
  height: 2px;
  background: linear-gradient(to right, #185fa5, #378add, #5dcaa5);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
}

nav a {
  color: #b5d4f4;
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}

nav a:hover {
  background: rgba(55, 138, 221, 0.18);
  color: #fff;
}

nav a.nav-cta {
  background: #185fa5;
  color: #fff;
  border: 0.5px solid #378add;
  margin-left: 6px;
}

nav a.nav-cta:hover {
  background: #378add;
}

/* Logo */
.logo img {
  height: 100px;
  /* ajusta el valor que necesites */
  width: auto;
  display: block;
}

/* Hero */
.hero {
  background: linear-gradient(to right, #007bff, #00bcd4);
  color: #fff;
  text-align: center;
  padding: 4em 0;
}

.hero .btn {
  display: inline-block;
  margin-top: 1em;
  padding: 0.8em 1.5em;
  background-color: #fff;
  color: #007bff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.hero .btn:hover {
  background-color: #e0e0e0;
}

/* Features */
.features {
  background-color: #fff;
  text-align: center;
}

.features .grid {
  display: flex;
  gap: 2em;
  justify-content: center;
  flex-wrap: wrap;
}

.feature {
  flex: 1;
  min-width: 250px;
  background-color: #d8d8dd;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.footer-content {
  max-width: 900px;
  margin: auto;
}

.footer-top p {
  margin-bottom: 15px;
}

.footer a {
  color: #22c55e;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links {
  margin: 15px 0;
}

.footer-links a {
  margin: 0 10px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #64748b;
}

/* BOTÓN VOLVER ARRIBA */
.back-to-top {
  position: relative;
  right: 620px;
  bottom: 20px;
  background: #22c55e;
  color: white;
  padding: 10px 14px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.back-to-top:hover {
  background: #16a34a;
  transform: translateY(-3px);
}

/* Templates Section */
.templates {
  background-color: #e6e4e1;
  text-align: center;
  padding: 3em 0;
}

.templates h3 {
  font-size: 2rem;
  margin-bottom: 2em;
  font-family: 'Montserrat', sans-serif;
}


/* ==========================================================================
   TARJETAS DE PLANTILLAS MÁS PEQUEÑAS (COMPACTAS)
   ========================================================================== */

/* Cambiamos a un diseño automático que permite más tarjetas por fila (pasan de 3 a 4 o más en pantallas grandes) */
.templates .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5em;
  padding: 0 10px;
}

/* Reducimos el espaciado interno (padding) de la tarjeta */
.template-card {
  background-color: #f0efee;
  border-radius: 8px;
  padding: 1em;
  /* Antes 1.5em */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Reducimos considerablemente la altura de la imagen para que sea tipo "preview" compacta */
.template-card img {
  width: 100%;
  height: 150px;
  /* Antes 250px (¡Mucho más pequeña!) */
  border-radius: 6px;
  margin-bottom: 0.8em;
  object-fit: cover;
}

/* Ajustamos los textos para que vayan acorde al nuevo tamaño */
.template-card h4 {
  font-size: 1rem;
  /* Antes 1.2rem */
  margin-top: 0;
  margin-bottom: 0.4em;
  font-weight: bold;
  color: #111;
}

.template-card p {
  font-size: 0.85em;
  /* Antes 0.95em */
  margin-bottom: 0.8em;
  color: #555;
  line-height: 1.4;
}

/* Etiquetas técnicas un poco más discretas */
.tech-tags {
  font-size: 0.7rem;
  /* Antes 0.78rem */
  color: #777;
  margin: 2px 0 10px;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  align-self: center;
}

/* Hacemos el botón un poco más pequeño y estilizado */
.template-card .btn {
  background-color: #007bff;
  color: #fff;
  padding: 0.5em 1em;
  /* Un poco más estrecho */
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s ease;
  margin-top: auto;
  /* Empuja el botón siempre al fondo de la tarjeta */
}

/* Evitamos que en móviles se rompa el diseño compacto */
@media (max-width: 580px) {
  .templates .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1em;
  }
}




.template-card:hover {
  transform: translateY(-5px);
}


.template-card .btn:hover {
  background-color: #0056b3;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: var(--pastel-yellow);
  margin: 10% auto;
  padding: 2em;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--text-dark);
  font-size: 1rem;
}

.modal-content h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1em;
  font-size: 1.5rem;
}

.modal-content ul {
  list-style: none;
  padding-left: 0;
}

.modal-content li {
  margin-bottom: 0.8em;
  line-height: 1.4;
}

.close {
  color: #333;
  float: right;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

*******************************************
/* ==========================================================================
   BANNER DE ALTO IMPACTO VISUAL (DARK COUTURE STYLE)
   ========================================================================== */


/* ==========================================================================
   EFECTO INTERACTIVO DE ALTO IMPACTO (HOVER)
   ========================================================================== */

********************************************************** final

/* Banner */
.banner {
  position: relative;
  background-color: #0b0f19;
  /* Fondo ultra oscuro profundo */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
  color: #f8fafc;
  padding: 7rem 1.5rem;
  border-bottom: 1px solid #1e293b;
  overflow: hidden;
}

/* Contenedor con aislamiento z-index para que el texto flote sobre las luces */
.container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;

}

.container1 {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background-color: rgb(236, 233, 233);

}

.banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

/* Etiqueta superior con sutil animación de pulso */
.banner-tag {
  display: inline-block;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
  color: #f59e0b;
  /* Amber 500 */
  border: 1px solid rgba(217, 119, 6, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  /* Formato píldora de lujo */
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1);
}

/* Título Principal de Impacto: Texto en Degradado Metálico */
.banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  
}

@media (min-width: 768px) {
  .banner h1 {
    font-size: 4.5rem;
    /* Tamaño gigante en pantallas grandes */
  }
}

/* Párrafo descriptivo cinematográfico */
.banner p {
  color: #0c0e0f;
  max-width: 46rem;
  margin: 0 auto 4rem auto;
  font-size: 1.125rem;
  line-height: 1.75;
  font-weight: 400;
}


/* Grid de las tarjetas */
.banner-cards {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .banner-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Tarjetas Premium Asimétricas con Cristal esmerilado (Glassmorphism) */
.banner-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  padding: 2.25rem 1.75rem;
  border-radius: 1.5rem;
  text-align: left;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.5);
  /* Borde Ámbar brillante */
  /* Sombra de neón ambiental */
  box-shadow:
    0 20px 40px -15px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(217, 119, 6, 0.05);
}



/* Al pasar el ratón, el título de la tarjeta se ilumina en oro */
.banner-card:hover h2 {
  color: #f59e0b;
}


/* Título interno de la tarjeta */
.banner-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

/* Texto de la descripción de la tarjeta */
.banner-card p {
  color: #f59e0b;
  /* Slate 500 para contraste jerárquico */
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* Al pasar el ratón, el texto descriptivo se vuelve más legible */
.banner-card:hover p {
  color: #cbd5e1;
  /* Slate 300 */
}

.banner .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.8rem;
  background: #fff;
  color: #185fa5;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.banner .btn:hover {
  background-color: #e0e9f7;
}

/* Quita la animación pulse del banner */
/* animation: pulse 3s infinite; ← eliminado */

/* Cookies banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #e7ebb1;
  color: #3e2f1c;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
}

.cookie-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.cookie-content a {
  color: #7b4e2d;
  text-decoration: underline;
}

.cookie-buttons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.cookie-buttons button:first-child {
  background: #7b4e2d;
  color: white;
  border: none;
}

.cookie-buttons button:last-child {
  background: transparent;
  border: 2px solid #7b4e2d;
  color: #7b4e2d;
}

.cookie-settings {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff8ed;
  border: 2px solid #7b4e2d;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  z-index: 10000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.cookie-settings label {
  display: block;
  margin: 10px 0;
}

/* Títulos */
h1 {
  font-size: 50px;
  font-family: 'Arial Black', sans-serif;
  color: #130101;
  text-shadow:
    1px 1px 0 #999,
    2px 2px 0 #888,
    3px 3px 0 #777,
    4px 4px 0 #666,
    5px 5px 0 #555;
}

/* Quiénes somos */
.quienes-somos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 50px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.quienes-somos img {
  flex: 1 1 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
}

.quienes-somos .contenido {
  flex: 2 1 400px;
  padding: 20px;
}

.quienes-somos h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.quienes-somos p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
}

/* Tech tags */
.tech-tags {
  font-size: 0.78rem;
  color: #888;
  margin: 4px 0 8px;
  letter-spacing: 0.3px;
}

/* Hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburguesa animada al abrir */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive general */
@media (max-width: 900px) {
  .templates .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .features .grid,
  .pricing .grid {
    flex-direction: column;
  }

  .quienes-somos {
    flex-direction: column;
    text-align: center;
  }

  .quienes-somos .contenido {
    padding: 20px 0;
  }

  .hamburger {
    display: flex;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #111;
    z-index: 999;
  }

  #nav-menu.open {
    display: block;
  }

  @media (max-width: 768px) {
    /* O el breakpoint que uses para el móvil */

    #nav-menu {
      position: absolute;
      /* Permite posicionarlo libremente respecto a la cabecera */
      top: 100%;
      /* ¡CLAVE! Empuja el menú justo debajo del límite inferior del header */
      left: 0;
      width: 100%;

      z-index: 999;
      /* ¡CLAVE! Asegura que el menú flote por encima de cualquier otro elemento de la web */

      background-color: #110e0e;
      /* Pon el color de fondo que use tu diseño para que no sea transparente */

      /* ... el resto de tus estilos actuales (display, padding, etc.) ... */
    }

    header {
      position: relative;
      z-index: 1000;
      /* El header base siempre debe estar bien arriba */
    }
  }

  #nav-menu ul {
    flex-direction: column;
    padding: 10px 0;
  }

  #nav-menu ul li {
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 600px) {
  .cookie-buttons {
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .templates .grid {
    grid-template-columns: 1fr;
  }

  .template-card {
    margin-bottom: 2em;
  }
}