:root {
  --naranja: #F59E0B;
  --oscuro: #111;
  --gris: #f7f7f7;
  --borde: #ddd;
  --sombra: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--gris);
  margin: 0;
  padding: 20px;
  color: var(--oscuro);
}

form {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 10px var(--sombra);
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--oscuro);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid var(--borde);
  border-radius: 5px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  background-color: var(--naranja);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: #d97706;
}

.cf-turnstile {
  margin-top: 15px;
  margin-bottom: 15px;
}

p {
  max-width: 600px;
  margin: 20px auto;
  font-size: 14px;
  line-height: 1.5;
}


.encabezado-formulario {
  max-width: 800px;
  margin: 40px auto 2rem auto;
  text-align: center;
}

.titulo-centrado {
  font-size: 2.8rem;
  color: var(--naranja);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
}

.descripcion {
  font-size: 1.1rem;
  color: var(--oscuro);
  line-height: 1.6;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ===== VISTA TABLET ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  body {
    font-size: 16px;
    padding: 20px;
  }

  .titulo-centrado {
    font-size: 28px;
    text-align: center;
  }

  .descripcion {
    font-size: 16px;
    text-align: center;
    margin-bottom: 25px;
  }

  form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
  }

  label {
    display: block;
    font-size: 15px;
    margin-bottom: 10px;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    width: 100%;
    font-size: 15px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 5px;
  }

  button[type="submit"] {
    font-size: 16px;
    padding: 12px 24px;
    margin-top: 15px;
    background-color: #f9a825;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
  }

  button[type="submit"]:hover {
    background-color: #f57f17;
  }

  .cf-turnstile {
    margin-top: 15px;
  }

  p {
    font-size: 14px;
  }
}

/* ===== VISTA MÓVIL MEJORADA ===== */
@media screen and (max-width: 767px) {
  body {
    font-size: 16px;
    padding: 15px;
  }

  .titulo-centrado {
    font-size: 1.9rem; /* Aumentado para mejor presencia */
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
  }

  .descripcion {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    text-align: center;
    padding: 0 10px;
  }

  form {
    padding: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  label {
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 15px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 5px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  textarea {
    min-height: 80px;
    resize: vertical;
  }

  button[type="submit"] {
    width: 100%;
    font-size: 17px;
    padding: 14px;
    margin-top: 20px;
    background-color: var(--naranja);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
  }

  button[type="submit"]:hover {
    background-color: #d97706;
  }

  .cf-turnstile {
    margin-top: 20px;
    margin-bottom: 10px;
    transform: scale(0.95);
    transform-origin: left top;
  }

  p {
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    padding: 0 10px;
  }

  /* Texto final importante */
  p.importante {
    background: #fff3cd;
    border-left: 5px solid var(--naranja);
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 6px;
    line-height: 1.5;
    color: #4b4b4b;
    margin-top: 25px;
    text-align: left;
  }

  p.importante strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
  }

  p.importante::before {
    content: "🔒 ";
    display: inline;
  }
}
