* {
    box-sizing: border-box;
  }

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0fdf4;
    display: flex;
    justify-content: center;
    align-items: start;
    padding-top: 50px;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 128, 0, 0.15);
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 20px;
}

h2 {
    text-align: center;
    color: #2e7d32;
}

label {
    display: block;
    margin-top: 1rem;
    color: #2e7d32;
    font-weight: 500;
}

input[type="text"], input[type="tel"] {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.5rem;
    border: 2px solid #a5d6a7;
    border-radius: 8px;
    font-size: 1rem;
}

button {
    width: 100%;
    margin-top: 1.5rem;
    background-color: #66bb6a;
    border: none;
    padding: 0.75rem;
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #43a047;
}

.mensaje {
    margin-top: 2rem;
    text-align: center;
    color: #d32f2f;
    font-weight: bold;
}

.pdf-simulado {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #e8f5e9;
    border: 2px dashed #66bb6a;
    border-radius: 8px;
    color: #2e7d32;
    text-align: center;
    font-weight: bold;
}


/* Responsive: hasta 480px */
@media (max-width: 480px) {
    .container {
        max-width: inherit;
        margin: 0 20px;
        padding: 1.5rem;
    }

    .pdf-simulado {
        font-size: 0.95rem;
    }
}

/* 
@media print {
    body {
      background: white;
      margin: 0;
      padding: 0;
    }
  
    .container {
      box-shadow: none;
      border-radius: 0;
      padding: 0;
      margin: 0;
      max-width: 100%;
      width: 100%;
    }
  
    .pdf-simulado {
      margin: 0 auto;
      padding: 0;
      page-break-inside: avoid;
      transform-origin: top center;
  
      /* A4 size: 297mm x 210mm — convert to px for 96dpi (~1122 x 794) */
      max-height: 100vh;
      height: 100vh;
  
      /* Escalado automático para que quepa todo */
      zoom: 0.75; /* Puedes ajustar este valor según necesites */
    }
  
    /* Oculta todo lo que no sea necesario imprimir */
    button,
    .no-print,
    .mensaje {
      display: none !important;
    }
  }
   */