/* ==================== ESTILOS TRÁMITES Y SERVICIOS ==================== */
/* Diseño Premium con enfoque en UX - Mejores prácticas UI/UX */

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

.hero-tramites::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;
}

.hero-tramites::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 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;
}

.hero-tramites h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-tramites p {
  font-size: 1.5rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.2s both;
  font-weight: 300;
}

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

/* Sección de Contenido */
.seccion-contenido {
  padding: 5rem 0;
  background: #f8f9fa;
}

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

/* Intro Section */
.intro-section {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  margin-bottom: 4rem;
  border-left: 6px solid var(--primary);
  box-shadow: 0 4px 20px rgba(46, 125, 50, 0.1);
  text-align: center;
}

.intro-section p {
  font-size: 1.25rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin: 0;
}

/* Grid de Trámites - Premium Design */
.tramites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.tramite-card {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  position: relative;
}

.tramite-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tramite-card:hover::before {
  transform: scaleX(1);
}

.tramite-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(46, 125, 50, 0.2);
  border-color: var(--primary);
}

.tramite-header {
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tramite-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 30px);
  }
}

.tramite-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.plazo {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.tramite-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tramite-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tramite-content h4:first-child {
  margin-top: 0;
}

.tramite-content h4::before {
  content: "▸";
  color: var(--primary);
  font-size: 1.25rem;
}

.tramite-content p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.tramite-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.tramite-content ul li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  position: relative;
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 0.938rem;
}

.tramite-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.btn-solicitar {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  margin-top: auto;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-solicitar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-solicitar:hover::before {
  width: 300px;
  height: 300px;
}

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

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

/* Sección de Canales */
.canales-section {
  background: white;
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

.canales-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;
}

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

.opcion-canal {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.opcion-canal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.opcion-canal:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.15);
  border-color: var(--primary);
}

.opcion-canal h4 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

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

/* Sección de Descargas */
.descargas-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

.descargas-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;
}

.descargas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.descarga-item {
  background: white;
  padding: 2rem;
  border-radius: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.descarga-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.descarga-item:hover::before {
  transform: scaleY(1);
}

.descarga-item:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 40px rgba(46, 125, 50, 0.15);
  border-color: var(--primary);
}

.descarga-item .icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

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

.descarga-item span:not(.icon) {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  flex: 1;
}

/* Sección de Seguimiento */
.seguimiento-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 3rem;
  border-radius: 2rem;
  color: white;
  text-align: center;
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.3);
  position: relative;
  overflow: hidden;
}

.seguimiento-section::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;
}

.seguimiento-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.seguimiento-section p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.seguimiento-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.seguimiento-form input {
  flex: 1;
  padding: 1.125rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.seguimiento-form input:focus {
  outline: none;
  background: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.seguimiento-form input::placeholder {
  color: var(--gray-500);
}

.btn-buscar {
  padding: 1.125rem 2.5rem;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.btn-buscar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background: #f8f9fa;
}

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

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

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

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

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

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

  .hero-tramites h1 {
    font-size: 2.75rem;
  }

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

  .canales-section,
  .descargas-section,
  .seguimiento-section {
    padding: 3rem 2rem;
  }

  .canales-section h2,
  .descargas-section h2,
  .seguimiento-section h2 {
    font-size: 2rem;
  }
}

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

  .hero-tramites h1 {
    font-size: 2.25rem;
  }

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

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

  .intro-section {
    padding: 2rem;
  }

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

  .tramites-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tramite-card {
    border-radius: 1.25rem;
  }

  .tramite-header {
    padding: 1.75rem;
  }

  .tramite-header h3 {
    font-size: 1.375rem;
  }

  .tramite-content {
    padding: 1.75rem;
  }

  .canales-opciones {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .descargas-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .seguimiento-form {
    flex-direction: column;
  }

  .seguimiento-form input,
  .btn-buscar {
    width: 100%;
  }

  .canales-section,
  .descargas-section,
  .seguimiento-section {
    padding: 2.5rem 1.5rem;
  }

  .canales-section h2,
  .descargas-section h2,
  .seguimiento-section h2 {
    font-size: 1.75rem;
  }
}

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

  .hero-tramites h1 {
    font-size: 1.875rem;
  }

  .hero-tramites p {
    font-size: 1rem;
  }

  .intro-section {
    padding: 1.5rem;
  }

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

  .tramite-header {
    padding: 1.5rem;
  }

  .tramite-content {
    padding: 1.5rem;
  }

  .canales-section,
  .descargas-section,
  .seguimiento-section {
    padding: 2rem 1.25rem;
  }

  .canales-section h2,
  .descargas-section h2,
  .seguimiento-section h2 {
    font-size: 1.5rem;
  }

  .opcion-canal {
    padding: 2rem 1.5rem;
  }

  .descarga-item {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .descarga-item .icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
}
