/* RESET Y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.error-message {
  color: red;
  font-size: 0.85rem;
  margin: 4px 0 8px;
  display: block;
}

html, body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: #f5f7fa;
  color: #111;
  line-height: 1.6;
  height: 100%;
}

/* HERO HEADER */
.hero {
  background-color: black;
  color: white;
  text-align: center;
  padding: 60px 20px 40px;
}

.hero .logo {
  width: 500px;
  margin-bottom: 30px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 300;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* CONTENIDO PRINCIPAL */
.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

/* GRID DE VIDEO Y FORMULARIO */
.grid {
  display: flex;
  max-width: 1400px;
  width: 100%;
  height: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}


/* VIDEO ajustado completamente a su mitad */
.video {
  flex: 1;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}


.video video {
  width: 100%;
  height: 100%;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}



/* =============================
   FORMULARIO (Diseño general)
============================= */
.form {
  background-color: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 30px;
}

/* CONTENEDOR DE TEXTO + FORMULARIO */
.form-content {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

/* TÍTULO DEL FORMULARIO */
.form-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  line-height: 1.2;
}

/* DESCRIPCIÓN DEL FORMULARIO */
.form-content p {
  font-size: 1rem;
  color: #e0e0e0;
  margin-top: -4px;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* FORMULARIO */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =============================
   CAMPOS DE ENTRADA
============================= */
input,
textarea {
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: black;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(214, 214, 20, 0.3);
}

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

/* =============================
   CAMPOS OCULTOS (Honeypot + reCAPTCHA)
============================= */
input[name="hp_email"],
input[name="recaptcha_token"] {
  display: none !important;
}

/* =============================
   BOTÓN DE ENVÍO
============================= */
button {
  background-color: #5a14d6;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

button:hover {
  color: black;
  background-color: white;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* =============================
   RESPUESTA AJAX
============================= */
.response {
  margin-top: 6px;
  font-size: 0.95rem;
  min-height: 20px;
  transition: all 0.3s ease-in-out;
}

.response p {
  margin: 0;
  padding: 6px 0;
}

/* =============================
   RESPONSIVE (Pantallas < 900px)
============================= */
@media (max-width: 900px) {
  .grid {
    flex-direction: column;
    border-radius: 0; /* Opcional: más fluido en móviles */
  }
  .video {
    height: 250px;
  }

  .form {
    padding: 30px 20px;
  }

  .hero .logo {
    width: 240px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .video {
    height: 250px;
    flex: none;
  }

  .video video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .form {
    padding: 40px 20px;
  }

  .form-content {
    max-width: 100%;
  }

}

@media (max-width: 480px) {
  .grid {
    flex-direction: column;
    border-radius: 0;
  }

  .video {
    height: 220px;
    flex: none;
  }

  .video video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .form {
    padding: 30px 16px;
  }

  .form-content {
    max-width: 100%;
  }

  .form-content h2 {
    font-size: 1.4rem;
  }

  .form-content p {
    font-size: 0.95rem;
  }

  input,
  textarea,
  button {
    font-size: 1rem;
  }
}

@media (min-width: 481px) and (max-width: 900px) {
  .grid {
    flex-direction: column;
  }

  .video {
    height: 300px;
    flex: none;
  }

  .video video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .form {
    padding: 50px 24px;
  }

  .form-content {
    max-width: 90%;
  }

  .form-content h2 {
    font-size: 1.6rem;
  }

  .form-content p {
    font-size: 1rem;
  }

  input,
  textarea,
  button {
    font-size: 1rem;
  }
}
