*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #050608;
  color: #f5f5f5;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

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

/* HEADER */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.9), rgba(10, 12, 16, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo-subtitle {
  font-size: 0.75rem;
  opacity: 0.7;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.main-nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, #cccccc);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 999px;
}

/* HERO */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: radial-gradient(circle at top left, #2e3745 0, #050608 50%);
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-text p {
  font-size: 1rem;
  max-width: 28rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.highlight-card {
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), rgba(10, 12, 16, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 130px;
}

.highlight-number {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
}

.highlight-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #ffffff, #d0d0d0);
  color: #050608;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn.full-width {
  width: 100%;
}

.hero-slider {
  position: relative;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 60%);
  opacity: 0.25;
  z-index: -1;
}

.main-swiper {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.main-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: #ffffff;
}

.swiper-pagination-bullet-active {
  background: #ffffff;
}

/* SECCIONES GENERALES */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #10131a, #050608);
}

.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 2.4rem;
  font-size: 0.98rem;
  opacity: 0.8;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.two-column.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.two-column .column p {
  opacity: 0.85;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.info-card {
  padding: 1.3rem 1.3rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(7, 9, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* VALORES */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.value-card {
  padding: 1.4rem 1.3rem;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(11, 14, 20, 0.95), rgba(5, 6, 8, 1));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.value-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* POLÍTICAS INSTITUCIONALES */
.policies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.policy-card {
  padding: 1.3rem 1.3rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(7, 9, 13, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.policy-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.policy-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* TESTIMONIOS */
.testimonial-swiper {
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(7, 9, 13, 0.95);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.8rem 1.6rem 1.5rem;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1.2rem;
}

.testimonial-name {
  font-weight: 500;
}

.testimonial-role {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* MAPA Y CONTACTO */
.map-wrapper {
  border-radius: 1.1rem;
  overflow: hidden;
  min-height: 280px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.contact-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.contact-list li + li {
  margin-top: 0.2rem;
}

.contact-note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.75rem;
}

.contact-form {
  background: rgba(7, 9, 13, 0.95);
  padding: 1.6rem 1.5rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.form-group {
  margin-bottom: 0.95rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 6, 8, 0.95);
  color: #f5f5f5;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffffff;
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
}

.form-group.checkbox input[type="checkbox"] {
  margin-top: 0.1rem;
}

.form-group.checkbox a {
  text-decoration: underline;
}

.form-status {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  min-height: 1rem;
}

.form-status.success {
  color: #b2ffb2;
}

.form-status.error {
  color: #ffb2b2;
}

/* REDES SOCIALES */
.social-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.social-card {
  background: rgba(7, 9, 13, 0.96);
  border-radius: 1.1rem;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.social-note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  margin-top: 0.2rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #050608;
  font-weight: 600;
  font-size: 0.85rem;
}

/* FOOTER */
.main-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem 0;
  background: #050608;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-content,
  .two-column,
  .two-column.reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content {
    padding-top: 3.2rem;
  }

  .hero-slider {
    order: -1;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .values-grid,
  .policies-grid,
  .social-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(5, 6, 8, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1.5rem 0.8rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-section {
    min-height: auto;
  }

  .values-grid,
  .policies-grid,
  .social-widgets {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3.4rem 0;
  }

  .contact-form {
    padding: 1.4rem 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

