/* MONTSERRAT REGULAR */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* POPPINS REGULAR */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* POPPINS BOLD */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --color-primary: #4A6DA7;
  --color-primary-dark: #545454;
  --color-primary-black: #000000;
  --color-primary-light-gray: #dddddd;
  --color-primary-white: #ffffff;
  --font-title: 'Frutiger', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 0px 5px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 0px 10px rgba(0,0,0,0.05);
}

/* Breakpoints (sin cambios) */
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}
body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

body {
  font-family: var(--font-body);
  color: var(--color-primary-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #f0f2f5;
  padding: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.formulario {
  background: #fff;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.formulario__titulo {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  color: #1a1a1a;
}

.formulario__grupo {
  margin-bottom: 15px;
}

.formulario__etiqueta {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.formulario__entrada, .formulario__comentarios {
  width: 100%;
  padding: 12px;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.formulario__entrada:focus {
  border-color: #4a90e2;
  outline: none;
  -webkit-box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
          box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.formulario__casilla {
  -webkit-transform: scale(2);
          transform: scale(2);
}

.formulario__casilla-grupo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.formulario__casilla-texto {
  font-size: 1.3rem;
}

.formulario__boton {
  width: 100%;
  padding: 14px;
  background-color: #0056b3;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.formulario__boton:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.mensaje {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}

.mensaje--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.formulario__legal {
  font-size: 0.75rem;
  color: #666;
  margin-top: 20px;
  line-height: 1.4;
  text-align: justify;
}

@media (min-width: 768px) {
  .formulario {
    padding: 40px;
  }
  .formulario__contenedor-campos {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 20px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .formulario__grupo--ancho-completo {
    -ms-grid-column-span: 2;
    grid-column: span 2;
  }
  .formulario__boton {
    width: auto;
    min-width: 200px;
    display: block;
    margin: 20px auto 0;
  }
}
.contenedor-gracias {
  max-width: 500px;
  margin: 50px auto;
  text-align: center;
}

.icono-check {
  font-size: 60px;
  color: #2ecc71;
  margin-bottom: 10px;
}

.gracias__acciones {
  margin-top: 30px;
}

.boton-retorno {
  text-decoration: none;
  display: inline-block;
}

.mensaje--exito {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}