@import url("https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700;800;900&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

:root {
  --primary-green: #00a859;
  --primary-green-dark: #008a47;
  --primary-green-light: #e8f5e9;
  --accent-teal: #007e6b;
  --text-dark: #1a1a2e;
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --border-focus: #00a859;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html {
  overflow-x: hidden;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-family: "Exo";
  vertical-align: baseline;
  box-sizing: content-box;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1.6;
  background: #e2e8f0;
  color: var(--text-dark);
  font-family: "Inter";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

select {
  border: 2px solid var(--border-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
  padding-right: 32px !important;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

select:hover {
  border-color: var(--primary-green);
}

select:focus {
  border-radius: var(--radius-md);
  border-color: var(--border-focus);
  background-color: var(--bg-white);
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.1);
}

select:focus-visible {
  outline: none !important;
}

select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--bg-light);
}

input:focus-visible {
  outline: none !important;
}

.center {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 24px;
}

.alertMessage {
  display: none;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: "Inter";
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alertMessage-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #6ee7b7;
  color: #065f46;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
}

.alertMessage-success::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.alertMessage-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
  color: #991b1b;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.1);
}

.alertMessage-error::before {
  content: "✕";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.ajustLine {
  margin-top: 0;
  margin-bottom: 24px;
}

.header .logo {
  max-width: 200px;
  margin: 20px auto;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.header .logo:hover {
  transform: scale(1.05);
}

.header .section {
  width: 100%;
  background: linear-gradient(135deg, #006b3a 0%, #004d2a 100%);
  height: 240px;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.header .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 107, 58, 0.95) 0%, rgba(0, 77, 42, 0.95) 100%);
  top: 0;
  backdrop-filter: blur(4px);
}
.header .section h2 {
  font-family: "Exo";
  font-weight: 700;
  font-size: 42px;
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
  z-index: 9;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.5px;
}

.header .section p {
  font-family: "Inter";
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  z-index: 9;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  align-items: center;
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
}

.footer p,
.footer a {
  font-family: "Inter";
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  transition: var(--transition);
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.h2-title {
  font-family: "Exo";
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  text-align: left;
  color: var(--primary-green);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  padding-left: 40px;
}

.h2-title:before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 168, 89, 0.3);
}

.form-Content {
  display: flex;
  flex-direction: column;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 24px;
  gap: 32px;
}

.form-section {
  display: flex;
  flex-direction: row;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.form-section:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 168, 89, 0.2);
}

.form-section-left {
  flex: 0 0 280px;
  padding-right: 32px;
  border-right: 1px solid var(--border-color);
}

.form-section-right {
  flex: 1;
  padding-left: 32px;
}
.form-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 24px;
}

.form-row.sep {
  gap: 24px;
}

.form-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-control {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 24px;
}

.form-control > input,
.form-control > select {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  height: 52px;
  width: 100%;
  box-sizing: border-box;
  color: var(--text-dark);
  padding: 0 16px;
  font-family: "Inter";
  font-size: 15px;
  transition: var(--transition);
}

.form-control > input:focus,
.form-control > select:focus {
  border-color: var(--border-focus);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.1);
  outline: none;
}

.form-control > input::placeholder {
  color: var(--text-light);
}

.form-control > label {
  font-size: 14px;
  color: var(--text-dark);
  font-family: "Inter";
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-control > textarea {
  padding: 14px 16px;
  min-height: 120px;
  height: auto;
  outline: none;
  resize: vertical;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  color: var(--text-dark);
  font-family: "Inter";
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  transition: var(--transition);
}

.form-control > textarea:focus {
  border-color: var(--border-focus);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.1);
}

.form-control > textarea::placeholder {
  color: var(--text-light);
}

input {
  padding-left: 1rem;
}

.label {
  font-size: 14px;
  color: var(--text-dark);
  font-family: "Inter";
  font-weight: 600;
  margin-bottom: 8px;
}

.label-title {
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
  padding: 12px 16px;
  background: var(--primary-green-light);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-green);
}

.input-radio {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 2px solid var(--border-color);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  margin-top: 2px;
  margin-right: 12px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.input-radio + label {
  margin-right: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.input-radio:hover {
  border-color: var(--primary-green);
}

.input-radio:checked {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

.input-radio:checked:after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 50%;
}

label {
  font-family: "Inter";
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-gray);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.file-upload {
  visibility: hidden;
}

.select-file {
  display: flex;
  justify-content: space-between;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-color);
  transition: var(--transition);
}

.select-file:hover {
  border-color: var(--primary-green);
  background: var(--primary-green-light);
}

.select-file > label:first-child {
  width: 100%;
  cursor: pointer;
  padding: 16px;
  text-align: center;
  color: var(--text-gray);
}

.select-file .btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--accent-teal) 0%, #00695c 100%);
  border-radius: var(--radius-sm);
  font-family: "Inter";
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.select-file .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.select-file .btn::before {
  content: "+";
  font-size: 18px;
  font-weight: 700;
}

.btn-success {
  padding: 16px 48px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  font-family: "Inter";
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px 0 rgba(0, 168, 89, 0.4);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 320px;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(0, 168, 89, 0.5);
}

.btn-success:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px 0 rgba(0, 168, 89, 0.4);
}

.errorField {
  border: 2px solid #ef4444 !important;
  background-color: #fef2f2 !important;
}

.errorField:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
  border-color: #ef4444 !important;
}

.errorFieldFile {
  background-color: #fef2f2 !important;
  border-radius: var(--radius-md);
  border: 2px solid #ef4444 !important;
}

.errorFieldFile:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.error-text {
  font-family: "Inter";
  font-size: 13px;
  line-height: 1.5;
  color: #ef4444;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.error-text::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

#nrodocIndicator {
  display: none;
}

.text-disclaimer {
  font-family: "Inter";
  font-weight: 400;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-gray);
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-green);
}

.text-disclaimer.withoutsep {
  margin-top: 0;
}

/* Animaciones y transiciones suaves */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section {
  animation: fadeIn 0.5s ease-out;
}

.form-section:nth-child(1) {
  animation-delay: 0.1s;
}

.form-section:nth-child(2) {
  animation-delay: 0.2s;
}

.form-section:nth-child(3) {
  animation-delay: 0.3s;
}

/* Estilos para checkbox personalizado */
input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
}

input[type="checkbox"]:hover {
  border-color: var(--primary-green);
}

input[type="checkbox"]:checked {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

input[type="checkbox"]:focus {
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.1);
  outline: none;
}

/* Estilos para el contenedor principal */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Mejoras en la tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: "Exo";
  font-weight: 700;
}

/* Estilos para el botón cuando está deshabilitado */
.btn-success:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Estilos para el estado de carga del botón */
.btn-success.loading {
  position: relative;
  color: transparent;
}

.btn-success.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .form-section {
    flex-direction: column;
    gap: 24px;
  }

  .form-section-left {
    flex: none;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    text-align: center;
  }

  .form-section-right {
    padding-left: 0;
  }

  .h2-title {
    justify-content: center;
    padding-left: 40px;
  }
}

@media (max-width: 768px) {
  .form-row.sep {
    flex-direction: column;
    gap: 0;
  }

  .select-file {
    width: 100%;
  }

  .input-radio {
    flex-shrink: 0;
  }

  .header .section {
    height: 280px;
    padding: 20px 16px;
  }

  .header .section p,
  .header .section h2 {
    padding: 10px !important;
  }

  .header .section h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  .header .section p {
    font-size: 14px;
    line-height: 1.6;
  }

  .logo {
    max-width: 140px !important;
  }

  .logo img {
    height: 80px !important;
  }

  .text-disclaimer {
    margin-left: 0;
  }

  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
  }

  .form-Content {
    margin: 24px auto;
    padding: 0 16px;
  }

  .form-section {
    padding: 24px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .h2-title {
    font-size: 20px;
    padding-left: 32px;
  }

  .h2-title:before {
    width: 24px;
    height: 24px;
  }

  .btn-success {
    max-width: 100%;
    padding: 14px 32px;
  }
}

@media (max-width: 480px) {
  .header .section h2 {
    font-size: 24px;
  }

  .header .section {
    height: 240px;
  }

  .form-section {
    padding: 20px 16px;
  }

  .form-control > input,
  .form-control > select {
    height: 48px;
    font-size: 14px;
  }

  .form-control > textarea {
    min-height: 100px;
    font-size: 14px;
    padding: 12px 14px;
  }

  .label-title {
    font-size: 14px;
    padding: 10px 12px;
  }
} 