body {
  font-family: 'Arial', sans-serif;
  max-width: 900px;
  margin: auto;
  padding: 2rem;
  line-height: 1.6;
  background-color: #ffffff;
  color: #222;
}

h1, h2 {
  font-family: 'Brush Script MT', cursive;
  color: #000;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

strong {
  font-weight: bold;
}

a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

input, textarea {
  padding: 0.5rem;
  margin: 0.3rem 0;
  width: 100%;
  max-width: 500px;
}

/* ======================================= */
/* RESPONSIVE DESIGN PARA MÓVIL */
/* ======================================= */

@media (max-width: 768px) {
  /* Contenedor principal más compacto */
  body {
    padding: 1rem;
    font-size: 16px;
  }
  
  /* Títulos más pequeños en móvil */
  h1 {
    font-size: 1.8rem;
    text-align: center;
  }
  
  h2 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
  }
  
  /* Formularios optimizados para touch */
  input[type="text"], 
  input[type="email"], 
  input[type="tel"], 
  input[type="date"],
  select {
    width: 100% !important;
    max-width: none !important;
    padding: 12px !important;
    font-size: 16px !important; /* Evita zoom en iOS */
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    margin: 8px 0 15px 0 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none; /* Quita estilos por defecto en iOS */
    appearance: none;
  }
  
  /* Textarea más usable */
  textarea {
    width: 100% !important;
    max-width: none !important;
    min-height: 120px !important;
    padding: 12px !important;
    font-size: 16px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    margin: 8px 0 15px 0 !important;
    box-sizing: border-box !important;
    resize: vertical !important;
    font-family: Arial, sans-serif !important;
  }
  
  /* Labels más legibles */
  label {
    font-size: 16px !important;
    font-weight: bold !important;
    margin-bottom: 5px !important;
    display: block !important;
    color: #333 !important;
  }
  
  /* Select dropdown mejorado */
  select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23333" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px !important;
  }
  
  /* Botón de envío optimizado */
  input[type="submit"] {
    width: 100% !important;
    max-width: none !important;
    padding: 15px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    background-color: #4CAF50 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-top: 20px !important;
    transition: background-color 0.3s ease !important;
  }
  
  /* Efecto hover/touch en botón */
  input[type="submit"]:hover,
  input[type="submit"]:active {
    background-color: #45a049 !important;
  }
  
  /* Focus mejorado para accesibilidad */
  input:focus, 
  textarea:focus, 
  select:focus {
    outline: none !important;
    border-color: #4CAF50 !important;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3) !important;
  }
  
  /* Espaciado entre secciones */
  form > label {
    margin-top: 20px !important;
  }
  
  /* Tabla responsive si existe */
  table {
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
    white-space: nowrap !important;
  }
}

/* ======================================= */
/* AJUSTES PARA PANTALLAS MUY PEQUEÑAS */
/* ======================================= */

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  /* Campos aún más grandes para dedos */
  input[type="text"], 
  input[type="email"], 
  input[type="tel"], 
  input[type="date"],
  select,
  textarea {
    padding: 15px !important;
    font-size: 17px !important; /* 17px es óptimo para móvil */
    margin: 10px 0 20px 0 !important;
  }
  
  input[type="submit"] {
    padding: 18px !important;
    font-size: 19px !important;
  }
}