body {
  background:#FAFAFA;
  color:#000000;
  line-height:1.4; /* ligeramente más compacto */
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 14px; /* tamaño base más pequeño */
}

a {
  text-decoration:none;
  color:inherit;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2rem; /* más compacto */
  position: sticky;
  top: 0;
  background: #FAFAFA;
  z-index: 10;
  border-bottom: none; /* sin borde por defecto */
}

header.scrolled {
  border-bottom: 0.5px solid rgba(136, 136, 136, 0.3);
}

header h1.logo-title {
  font-size: 1.2rem; /* más pequeño */
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  line-height: 1.1;
  font-family: "Lucida Console", Monaco, monospace;
  font: weight 50px;
}

header h1.logo-title svg {
  width: 1em;
  height: 1em;
}

nav a {
  margin-left: 1rem; /* menos separación */
  font-weight: 400;
  font-size: 0.85rem; /* más discreto */
  color: #000000;
  transition: color 0.3s;
}

nav a:hover {
  color:#888888;
}

/* HERO */
.hero {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:5rem 2rem;
  text-align:center;
}

.hero h2 {
  font-size: 2rem; /* más pequeño */
  margin-bottom: 0.8rem;
}

.hero p {
  font-size: 1rem; /* más pequeño */
  color: #888888;
  margin-bottom: 1.5rem;
}

/* ALT HERO */
.alt-hero {
  background:#f9f9f9;
}

/* BOTÓN PRINCIPAL */
.btn-primary {
  background:#000000;
  color:#ffffff;
  padding:0.6rem 1.5rem; /* más compacto */
  border-radius:4px;
  font-size:0.9rem; /* más pequeño */
  font-weight:500;
  transition:0.3s;
}

.btn-primary:hover {
  background:#888888;
}

/* FEATURES */
.features {
  display:flex;
  flex-direction:column;
  max-width:900px; /* un poco más compacto */
  margin:3rem auto;
  padding:0 1.5rem;
  gap:0.8rem;
}

.feature-card {
  border:1px solid #888888;
  border-radius:4px;
  padding:0.8rem;
  cursor:pointer;
  transition:0.3s;
  background:#ffffff;
}

.feature-card:hover {
  transform:translateY(-2px);
  box-shadow:0 3px 8px rgba(0,0,0,0.06);
}

.feature-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:600;
  color:#000000;
  font-size:0.9rem; /* más pequeño */
}

.feature-content {
  max-height:0;
  overflow:hidden;
  transition:max-height 0.3s ease;
  color:#888888;
  margin-top:0.3rem;
  font-size:0.85rem; /* más pequeño */
}

.feature-card.active .feature-content {
  max-height:500px;
}

.feature-card svg {
  width:20px;
  height:20px;
  color:#888888;
  transition:transform 0.3s;
}

.feature-card.active svg {
  transform:rotate(45deg);
}

/* Contenedor de características adicionales */
#more-features {
  display: none;
  flex-direction: column;
  gap: 1rem; /* igual que las principales */
  width: 100%; /* mismo ancho */
  box-sizing: border-box;
}

/* Cada tarjeta dentro de more-features toma el mismo estilo que las principales */
#more-features .feature-card {
  border:1px solid #888888;
  border-radius:4px;
  padding:0.8rem;
  background:#ffffff;
  cursor:pointer;
  transition:0.3s;
  width: 100%;
  box-sizing: border-box;
}

.show-more-text {
  margin-top: 1rem; /* separación del contenido superior */
  text-align: left;
  color: #000; /* color del texto */
  cursor: pointer; /* cambia el cursor al pasar el mouse */
  transition: color 0.3s;
  font-weight: normal;
}

.show-more-text:hover {
  color: #888888; /* cambio de color al pasar el mouse */
}

/* FOOTER */
footer {
  text-align:center;
  padding:2.5rem 1rem;
  color:#888888;
  font-size:0.85rem; /* más pequeño */
}

/* --- Snippet Demo --- */
.snippet-demo {
  margin-top: 40px;
  padding: 15px;
  background-color: #1e1e1e;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: left; /* alineación izquierda */
}

.snippet-desc {
  margin-bottom: 10px;
  font-size: 14px;
  color: #cccccc;
  text-align: left;
}

.snippet-code {
  background-color: #2d2d2d;
  padding: 12px;
  border-radius: 5px;
  min-height: 100px;
  overflow-x: auto;
  outline: none;
  white-space: pre;
  font-size: 14px;
  color: #f8f8f2;
  line-height: 1.5;
  border: 1px solid #444;
  transition: border-color 0.2s;
  text-align: left;
}

.snippet-code:focus {
  border-color: #f8f8f2;
}

/* --- Páginas internas (Privacidad / Cookies) --- */
.page-content {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  line-height: 1.6;
  color: #333;
}

.page-content h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #000;
}

.page-content p, 
.page-content ul {
  font-size: 0.9rem;
  color: #555;
}

.page-content ul {
  margin-left: 1.5rem;
  list-style: disc;
}

footer a {
  color: #333333; /* mismo tono que el texto del footer */
  transition: color 0.3s;
}

footer a:hover {
  color: #1f1f1f; /* aquí eliges el color que prefieras */
}

/* --- FORMULARIO PASO A PASO --- */
.contact-form {
  flex: 1;
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  box-sizing: border-box; /* Asegura que padding no afecte ancho total */
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
}
.form-step.active {
  display: flex;
}

.form-step label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.form-step input,
.form-step textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
  margin-right: 10px; /* margen derecho añadido */
  box-sizing: border-box; /* evita que margen/padding aumente ancho total */
}
.form-step input:focus,
.form-step textarea:focus {
  border-color: #333;
  outline: none;
}

/* Navegación */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap; /* evita que botones se salgan en móviles */
}

/* Botón siguiente (sólido) */
.btn-next {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  font-size: 12px;
  flex: 1;
  transition: background 0.3s;
}
.btn-next:hover {
  background: #555;
}

/* Botón anterior (outline) */
.btn-previous {
  background: transparent;
  border: 1px solid #333;
  color: #333;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  font-size: 12px;
  flex: 1;
  transition: background 0.3s, color 0.3s;
}
.btn-previous:hover {
  background: #333;
  color: #fff;
}

/* Indicador de progreso */
.progress {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 1.5rem;
}
.progress span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
}
.progress span.active {
  background: #333;
}

/* Ajustes para contenedor general */
.contact-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  margin: 40px auto 80px auto;
  max-width: 800px; /* más compacto */
  padding:5rem 2rem;
}

.contact-info {
  flex: 1;
  max-width: 400px; /* más pequeño para centrar */
}

.contact-info svg {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: #333;
}

.contact-info h3 {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  color: #333;
}

.contact-info p {
  color: #555;
  line-height: 1.6;
}

.input-error {
  border-color: #d93025;
  background-color: #fdd;
}

.error-message {
  color: #d93025;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Nota de políticas */
.form-note {
  margin-top: 1rem;
  font-size: 13px;
  color: #666;
}

.form-note a {
  color: #333;
  text-decoration: none;
}

.form-note a:hover {
  text-decoration: underline;
}

.form-note {
      font-size: 0.8rem;
      color: #888888;
      margin-top: 10px;
}

.form-note a {
      color: #888888;
      text-decoration: underline;
      transition: color 0.3s;
}

.form-note a:hover {
      color: #000000;
}

.btn-verde {
  margin-top: 1.5rem;
  background: #000000;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-verde:hover {
  background: #000000;
}

.link-contacto {
  color: #000000; /* negro por defecto */
  text-decoration: none; /* opcional, quita el subrayado */
  transition: color 0.3s ease;
}

.link-contacto:hover {
  color: #555555; /* gris más claro al pasar el mouse */
}

.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.advantage {
  border: 1px solid #ddd; /* borde sutil de 1px */
  border-radius: 4px;      /* esquinas redondeadas */
  padding: 1.5rem;           /* espacio interno */
  background: #fafafa;        /* fondo blanco para que destaque */
}

.advantage h3 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.5rem;
}

.advantage svg {
  flex-shrink: 0;
  margin: 0;
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: none; /* se muestra al hacer scroll */
  z-index: 1000;
  padding: 0;
}

#back-to-top svg {
  width: 100%;
  height: 100%;
}

.snippet-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #f0f4ff;
  border: 1px solid #4285F4;
  padding: 12px 15px;
  border-radius: 4px;
  margin: 20px auto 0; /* centrado horizontal con auto y margen superior */
  margin-bottom: 30px;
  font-size: 0.90rem;
  color: #4285F4;
  max-width: 480px; /* ancho máximo */
  text-align: left; /* contenido alineado a la izquierda */
}

.snippet-tip p {
  margin: 0; /* elimina márgenes automáticos del párrafo */
}

/*  COOKIES */
/* BANNER DE COOKIES */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1c1c1c;
  color: #fdfdfd;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1 1 60%;
  margin: 0;
}

.cookie-banner a {
  color: #00bfff;
  text-decoration: underline;
}

/* BOTONES */
.cookie-buttons button{
  background: #fdfdfd;
  color: #1c1c1c;
  border: 1px solid #ccc;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 8px;
  transition: background 0.3s, color 0.3s;
}

#save-cookies {
  background: #fdfdfd;
  color: #1c1c1c;
  border: 1px solid #ccc;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 4px;
  margin-top: 12px;
  transition: background 0.3s, color 0.3s;
}
.cookie-buttons button:hover,
#save-cookies:hover {
  background: #f0f0f0;
  color: #000000;
}

/* CONFIGURACIÓN DE COOKIES */
/* Banner general */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1c1c1c;
  color: #fdfdfd;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1 1 60%;
  margin: 0;
}

/* Botones del banner por ID */
#accept-all {
  background: #fdfdfd;
  border: none;
  color: #1c1c1c;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 8px;
}

#accept-all:hover {
  background: #e0e0e0;
}

#reject-all {
  background: transparent;       /* fondo transparente */
  color: #fdfdfd;                /* color del texto */
  border: 1px solid #fdfdfd;     /* borde visible */
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

#reject-all:hover {
  background: #00000036; /* fondo al pasar el mouse */
  color: #fafafa;          /* texto al pasar el mouse */
  border: 1px solid #fafafa;
}

/* Botón de configuración (icono) */  
.cookie-buttons {
  display: flex;
  align-items: center; /* centra verticalmente */
  justify-content: flex-end; /* lo orienta a la derecha */
  gap: 8px; /* separa los botones entre sí */
}

#configure-cookies {
  all: unset; /* elimina todos los estilos del botón */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
}

#configure-cookies svg {
  transition: transform 0.4s ease; /* animación suave */
}

#configure-cookies:hover svg {
  transform: rotate(90deg); /* gira 90 grados al hacer hover */
}

/* Ventana de configuración */
.cookie-settings {
  position: fixed;
  bottom: 0;
  right: 20px;
  background: #1E1E1E;
  color: #f9f9f9;
  padding: 20px;
  border: 1px solid #1E1E1E;
  border-radius: 4px;
  z-index: 10000;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 8px;
  background: transparent;
  border: none;
  color: #f9f9f9;
  font-size: 18px;
  cursor: pointer;
}

.close-btn:hover {
  color: #f9f9f9;
}

#close-cookies{
  margin-top: 5px;
}

/* grid cookies*/
.cookies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cookie-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-card h4 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #333;
}

.cookie-card p {
  font-size: 0.95rem;
  color: #555;
}

/*Browers navegacion */
.browsers-box {
  border: 1px solid #333; /* borde sólido de 4px */
  border-radius: 12px; /* un poco más redondeado */
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  text-align: center;
  background: #fff; /* fondo blanco */
}

.browsers-box h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-family: sans-serif;
  color: #333;
}

.browsers-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.browsers-icons img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.browsers-icons img:hover {
  transform: scale(1.15);
}


/* Detecta si el usuario tiene el modo oscuro */
@media (prefers-color-scheme: dark) {
  body {
    background: #121212;
    color: #e0e0e0;
  }

  a {
    color: #ffffff;
  }

  header {
    background: #1c1c1c;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
  }

  nav a {
    color: #e0e0e0;
  }

  nav a:hover {
    color: #bbbbbb;
  }

  .hero {
    background: #1a1a1a;
  }

  .hero h2 {
    color: #ffffff;
  }

  .hero p {
    color: #cccccc;
  }

  .alt-hero {
    background: #1a1a1a;
  }

  .btn-primary {
    background: #ffffff;
    color: #000000;
  }

  .btn-primary:hover {
    background: #cccccc;
  }

  .features .feature-card {
    background: #1e1e1e;
    border: 1px solid #555555;
    color: #e0e0e0;
  }

  .feature-card svg {
    color: #bbbbbb;
  }

  .feature-card.active svg {
    color: #ffffff;
  }

  .feature-title span {
    color: #e0e0e0;
  }

  .feature-content p {
    color: #cccccc;
  }

  /* --- Sección de características adicionales --- */
  #more-features {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  #more-features .feature-card {
    border: 1px solid #555555;
    border-radius: 4px;
    padding: 0.8rem;
    background: #1e1e1e;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
    color: #e0e0e0;
  }

  .show-more-text {
    margin-top: 1rem;
    text-align: left;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: normal;
  }

  .show-more-text:hover {
    color: #888888;
  }

  .snippet-demo {
    background-color: #1e1e1e;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
  }

  .snippet-code {
    background-color: #2b2b2b;
    color: #f8f8f2;
    border: 1px solid #555555;
  }

  .page-content {
    color: #ddd;
  }

  .page-content h3 {
    color: #fff;
  }

  .page-content p,
  .page-content ul {
    color: #ccc;
  }

  footer {
    color: #aaa;
  }

  footer a {
    color: #ccc;
  }

  footer a:hover {
    color: #fff;
  }

  .contact-form {
    background: #1e1e1e;
    color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .contact-form input,
  .contact-form textarea {
    background: #2b2b2b;
    color: #e0e0e0;
    border: 1px solid #555555;
  }

  .btn-verde {
    background: #ffffff;
    color: #000000;
  }

  .btn-verde:hover {
    background: #cccccc;
  }

  .link-contacto {
    color: #e0e0e0;
  }

  .link-contacto:hover {
    color: #bbbbbb;
  }

  .advantages .advantage {
    background: #1e1e1e;
    border: 1px solid #555555;
    color: #e0e0e0;
  }

  .advantages .advantage svg {
    color: #cccccc;
  }

  .advantages .advantage h3 {
    color: #ffffff;
    font-weight: 600;
  }

  .advantages .advantage p {
    color: #cccccc;
  }

  .snippet-tip {
    background-color: #1a1a2e;
    border-color: #4285F4;
    color: #a0c4ff;
  }

  /* --- Cookies grid en modo oscuro --- */
  .cookies-grid {
    gap: 1rem;
  }

  .cookie-card {
    background: #1e1e1e;
    border: 1px solid #444;
    color: #e0e0e0;
  }

  .cookie-card h4 {
    color: #fff;
  }

  .cookie-card p {
    color: #ccc;
  }

  /* --- Sección navegadores compatibles en modo oscuro --- */
  .browsers-box {
    background: #1e1e1e;
    color: #e0e0e0;
  }

  .browsers-box h3 {
    color: #fff;
  }

  .browsers-icons img {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
  }
}


/* RESPONSIVE */
@media (max-width:768px){
  /* Hero */
  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  /* Header */
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 0.5rem;
  }

  /* Ajuste de la sección de ventajas en móviles */
  .advantages {
    grid-template-columns: 1fr; /* una columna */
    gap: 0.8rem;
  }

  .advantage {
    padding: 0.8rem;
  }

  .advantage h3 {
    font-size: 0.95rem;
  }

  .advantage p {
    font-size: 0.85rem;
  }

  /* Ajustes formulario y contacto */
  .contact-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 5rem 2rem;
    margin: 20px auto 50px auto; /* centrado y más compacto */
    align-items: center;
    justify-content: center;
  }

  .contact-info {
    max-width: 90%;
    text-align: center;
  }

  .contact-form {
    max-width: 90%;
    padding: 1.5rem; /* menos padding */
  }

  .form-step {
    gap: 0.8rem;
  }

  .form-step input,
  .form-step textarea {
    padding: 8px; /* menos padding interno */
    font-size: 13px;
  }

  .form-navigation {
    flex-direction: column;
    gap: 0.6rem;
  }

  .btn-next, .btn-previous {
    flex: 1 1 100%;
    padding: 10px;
    font-size: 14px;
  }

  .progress {
    justify-content: center;
    gap: 5px;
  }

  .progress span {
    width: 8px;
    height: 8px;
  }

  /* Ajustes sección navegadores compatibles en móviles */
  .browsers-box {
    padding: 1rem;
    margin: 1rem auto;
    max-width: 90%;
  }

  .browsers-box h3 {
    font-size: 1rem;
  }

  .browsers-icons {
    flex-wrap: wrap;
    gap: 15px;
  }

  .browsers-icons img {
    width: 50px;
    height: 50px;
  }
}
