/* ==================== ESTILOS FORMULARIO DE CONTACTO ==================== */
/* Diseño PREMIUM - Mejores prácticas UI/UX */

/* Hero Section - Espectacular */
.hero-formulario {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 7rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-formulario::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-formulario::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(30px, 30px) rotate(180deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-formulario h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-formulario p {
  font-size: 1.75rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sección de Contenido */
.seccion-contenido {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.formulario-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Intro Section Premium */
.intro-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  padding: 3rem;
  border-radius: 2rem;
  margin-bottom: 4rem;
  border-left: 6px solid var(--primary);
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.05) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite;
}

.intro-section p {
  font-size: 1.375rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Formulario Section Premium */
.formulario-section {
  background: white;
  padding: 4rem;
  border-radius: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 5rem;
  border-top: 5px solid var(--primary);
}

.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.formulario-grupo {
  border: none;
  padding: 0;
  margin: 0;
}

.formulario-grupo legend {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  padding: 0 1rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 100%;
  text-align: left;
  position: relative;
  padding-bottom: 1rem;
}

.formulario-grupo legend::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
}

.campo {
  margin-bottom: 2rem;
}

.campo label {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.campo label:has(+ input[required]),
.campo label:has(+ select[required]),
.campo label:has(+ textarea[required]) {
  position: relative;
}

.campo input[type="text"],
.campo input[type="email"],
.campo input[type="tel"],
.campo select,
.campo textarea {
  width: 100%;
  padding: 1.125rem 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--gray-900);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  transition: all 0.3s ease;
}

.campo input[type="text"]:focus,
.campo input[type="email"]:focus,
.campo input[type="tel"]:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.15);
  background: white;
  transform: translateY(-2px);
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: var(--gray-500);
}

.campo select {
  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='%232e7d32' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  padding-right: 3rem;
  cursor: pointer;
}

.campo select:focus {
  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='%232e7d32' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.campo textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.7;
  font-family: var(--font-primary);
}

.campo-doble {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.campo-archivo {
  margin-bottom: 2rem;
}

.campo-archivo label {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.campo-archivo input[type="file"] {
  width: 100%;
  padding: 1.125rem 1.5rem;
  border: 2px dashed var(--gray-300);
  border-radius: 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--gray-700);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  transition: all 0.3s ease;
  cursor: pointer;
}

.campo-archivo input[type="file"]:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
}

.campo-archivo small {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

.campo-grupo {
  margin-bottom: 2rem;
}

.campo-grupo > label {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.opciones {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.opcion-radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid var(--gray-200);
  border-radius: 1rem;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 150px;
}

.opcion-radio:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  transform: translateY(-2px);
}

.opcion-radio input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
  margin-right: 0.5rem;
}

.opcion-radio input[type="radio"]:checked ~ span {
  color: var(--primary);
  font-weight: 700;
}

.opcion-radio:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.15);
}

.opcion-radio {
  display: flex;
  align-items: center;
}

.campo-checkbox {
  margin-bottom: 1.5rem;
}

.campo-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid var(--gray-200);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.campo-checkbox label:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  transform: translateX(5px);
}

.campo-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
  margin-top: 0.125rem;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.campo-checkbox input[type="checkbox"]:checked ~ span {
  color: var(--primary);
  font-weight: 600;
}

.campo-checkbox:has(input[type="checkbox"]:checked) label {
  border-color: var(--primary);
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.15);
}

.campo-checkbox label {
  display: flex;
  align-items: flex-start;
}

/* Botones Formulario Premium */
.botones-formulario {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn-enviar {
  flex: 1;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-enviar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-enviar:hover::before {
  left: 100%;
}

.btn-enviar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.4);
}

.btn-enviar:active {
  transform: translateY(-1px);
}

.btn-limpiar {
  flex: 1;
  padding: 1.25rem 2rem;
  background: white;
  color: var(--gray-900);
  border: 2px solid var(--gray-300);
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-limpiar:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  transform: translateY(-2px);
}

.aviso-importante {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-top: 2rem;
  border-left: 5px solid #f59e0b;
}

.aviso-importante p {
  font-size: 0.938rem;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.7;
}

.aviso-importante strong {
  color: #b45309;
  font-weight: 700;
}

/* Confirmación Section Premium */
.confirmacion-section {
  background: white;
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary);
}

.confirmacion-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.confirmacion-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.paso {
  text-align: center;
  position: relative;
}

.paso::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  z-index: 0;
}

.paso:last-child::before {
  display: none;
}

.numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.paso:hover .numero {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 30px rgba(46, 125, 50, 0.4);
}

.paso h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.paso:hover h4 {
  color: var(--primary);
}

.paso p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0;
}

/* Tiempos Respuesta Premium */
.tiempos-respuesta {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--primary);
  overflow-x: auto;
}

.tiempos-respuesta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.tiempos-respuesta h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.tabla-tiempos {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tabla-tiempos thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.tabla-tiempos th {
  padding: 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: left;
}

.tabla-tiempos tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.tabla-tiempos tbody tr:hover {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
  transform: scale(1.01);
}

.tabla-tiempos tbody tr:last-child {
  border-bottom: none;
}

.tabla-tiempos td {
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: var(--gray-700);
}

.tabla-tiempos td:first-child {
  font-weight: 600;
  color: var(--gray-900);
}

/* Otros Canales Premium */
.otros-canales {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  color: white;
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.3);
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.otros-canales::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.otros-canales h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.otros-canales > p {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.canales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.canal-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.canal-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.canal-item:hover::before {
  transform: scaleX(1);
}

.canal-item:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.canal-item .icon {
  font-size: 3rem;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.canal-item:hover .icon {
  transform: scale(1.2) rotate(5deg);
}

.canal-item span:not(.icon) {
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1600px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .pasos {
    grid-template-columns: repeat(2, 1fr);
  }

  .paso::before {
    display: none;
  }

  .canales-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-formulario {
    padding: 6rem 0 5rem;
  }

  .hero-formulario h1 {
    font-size: 3rem;
  }

  .hero-formulario p {
    font-size: 1.5rem;
  }

  .seccion-contenido {
    padding: 4rem 0;
  }

  .formulario-section {
    padding: 3rem 2rem;
  }

  .campo-doble {
    grid-template-columns: 1fr;
  }

  .opciones {
    flex-direction: column;
    gap: 1rem;
  }

  .confirmacion-section,
  .tiempos-respuesta,
  .otros-canales {
    padding: 3rem 2rem;
  }

  .confirmacion-section h2,
  .tiempos-respuesta h2,
  .otros-canales h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-formulario {
    padding: 5rem 0 4rem;
  }

  .hero-formulario h1 {
    font-size: 2.5rem;
  }

  .hero-formulario p {
    font-size: 1.25rem;
  }

  .formulario-section {
    padding: 2.5rem 1.5rem;
  }

  .formulario-grupo legend {
    font-size: 1.5rem;
  }

  .pasos {
    grid-template-columns: 1fr;
  }

  .paso::before {
    display: none;
  }

  .tabla-tiempos {
    font-size: 0.875rem;
  }

  .tabla-tiempos th,
  .tabla-tiempos td {
    padding: 1rem;
  }

  .canales-grid {
    grid-template-columns: 1fr;
  }

  .botones-formulario {
    flex-direction: column;
  }

  .confirmacion-section,
  .tiempos-respuesta,
  .otros-canales {
    padding: 2.5rem 1.5rem;
  }

  .confirmacion-section h2,
  .tiempos-respuesta h2,
  .otros-canales h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero-formulario p {
    font-size: 1.125rem;
  }

  .intro-section {
    padding: 1.5rem;
  }

  .intro-section p {
    font-size: 1.125rem;
  }

  .formulario-section {
    padding: 2rem 1rem;
  }

  .formulario-grupo legend {
    font-size: 1.25rem;
  }

  .campo label {
    font-size: 1rem;
  }

  .campo input[type="text"],
  .campo input[type="email"],
  .campo input[type="tel"],
  .campo select,
  .campo textarea {
    padding: 1rem 1.25rem;
    font-size: 0.938rem;
  }

  .paso .numero {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .paso h4 {
    font-size: 1.125rem;
  }

  .paso p {
    font-size: 0.938rem;
  }

  .tabla-tiempos th,
  .tabla-tiempos td {
    padding: 0.75rem;
    font-size: 0.813rem;
  }

  .canal-item {
    padding: 1.5rem;
  }

  .canal-item .icon {
    font-size: 2.5rem;
  }

  .canal-item span:not(.icon) {
    font-size: 1rem;
  }

  .confirmacion-section,
  .tiempos-respuesta,
  .otros-canales {
    padding: 2rem 1rem;
  }

  .confirmacion-section h2,
  .tiempos-respuesta h2,
  .otros-canales h2 {
    font-size: 1.5rem;
  }

  .otros-canales > p {
    font-size: 1.125rem;
  }
}
