:root {
  --blue-main: #168fe5;
  --blue-dark: #0f4ea8;
  --blue-deep: #143c8c;
  --cyan-logo: #19bdf2;

  --green-main: #46b42e;
  --green-dark: #2f821c;

  --orange-main: #f28b1d;
  --orange-dark: #d56b00;

  --sand: #f3efe7;
  --light-blue: #eaf3fb;
  --soft-bg: #f7f9fc;

  --text-dark: #2d3340;
  --text-soft: #687384;

  --white: #ffffff;
  --border-soft: #e6e9ef;

  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 16px 36px rgba(0, 0, 0, 0.12);

  --radius-lg: 22px;
  --radius-md: 16px;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: var(--soft-bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* HEADER */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-content {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.header-logo {
  display: inline-block;
}

.header-logo img {
  height: 66px;
  width: auto;
}

/* MENÚ */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.98rem;
  padding-bottom: 7px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-main);
  border-bottom-color: var(--blue-main);
}

/* MENÚ DESPLEGABLE */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 230px;
  height: 12px;
}

.nav-dropdown-button {
  background: transparent;
  border: none;
  font-family: inherit;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  padding: 0 0 7px;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-button:hover {
  color: var(--blue-main);
  border-bottom-color: var(--blue-main);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
  padding: 10px;
  display: none;
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
  gap: 4px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  border-bottom: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #eaf5ff;
  color: var(--blue-main);
  border-bottom: none;
}

/* HERO */
.hero {
  position: relative;
  min-height: 520px;
  background: url("home-bg.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 0 60px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(10, 55, 130, 0.08),
    rgba(10, 80, 160, 0.18)
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  color: var(--white);
}

.hero h1 {
  max-width: 1050px;
  margin: 0 auto;
  color: var(--white);
  font-size: clamp(1.8rem, 2.8vw, 2.9rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 14px;
  padding: 14px 24px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  color: var(--white);
}

.btn-contact {
  background: var(--white);
  color: var(--green-main);
}

.btn-outline {
  color: var(--blue-main);
  background: var(--white);
  border-color: var(--blue-main);
  box-shadow: none;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--blue-main);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero .btn-primary:hover {
  background: #eaf5ff;
  color: var(--blue-dark);
}

/* SECCIONES GENERALES */
.section {
  padding: 58px 0;
}

section[id] {
  scroll-margin-top: 70px;
}

.section-label {
  color: var(--blue-dark);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-line {
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue-main);
  margin: 14px 0 20px;
}

.section-line.light {
  background: #9ad8ff;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.12;
  color: var(--blue-deep);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.center-line {
  margin-left: auto;
  margin-right: auto;
}

/* QUIÉNES SOMOS */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 54px;
  align-items: start;
}

.about-text {
  background: var(--soft-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.about-text p {
  color: var(--text-soft);
  font-size: 1.06rem;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* OBJETIVOS */
.objectives-section {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.objective-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.objective-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--blue-main),
    var(--green-main),
    var(--orange-main)
  );
}

.objective-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.objective-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
}

.objective-card h3 {
  color: var(--blue-deep);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.objective-card p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* SECTORES */
.sectors-section {
  background: var(--white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.sector-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-left: 6px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.sector-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sector-icon svg {
  width: 64px;
  height: 64px;
  display: block;
  padding: 8px;
}

.sector-info h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.sector-info p {
  color: var(--text-soft);
  margin-bottom: 12px;
  font-size: 1rem;
}

.sector-info a {
  text-decoration: none;
  font-weight: 800;
}

.sector-1 {
  border-left-color: var(--blue-main);
}

.sector-1 .sector-icon {
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
}

.sector-1 h3,
.sector-1 a {
  color: var(--blue-main);
}

.sector-2 {
  border-left-color: var(--green-main);
}

.sector-2 .sector-icon {
  background: linear-gradient(135deg, #72c83d, var(--green-dark));
}

.sector-2 h3,
.sector-2 a {
  color: var(--green-main);
}

.sector-3 {
  border-left-color: var(--orange-main);
}

.sector-3 .sector-icon {
  background: linear-gradient(135deg, #f7a844, var(--orange-dark));
}

.sector-3 h3,
.sector-3 a {
  color: var(--orange-main);
}

/* UBICACIÓN */
.location-section {
  background: linear-gradient(180deg, #f6fbff, #ffffff);
}

.location-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.location-map {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #e9edf2;
}

.location-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-info p {
  color: var(--text-soft);
  font-size: 1rem;
}

.sector-legend {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.legend-dot {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  margin-top: 3px;
}

.legend-dot.green {
  background: var(--green-main);
}

.legend-dot.blue {
  background: var(--blue-main);
}

.legend-dot.orange {
  background: var(--orange-main);
}

.legend-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.legend-item p {
  margin: 0;
}

/* DIRECTORIO */
.board-section {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  padding-top: 48px;
  padding-bottom: 52px;
}

.board-section .section-heading {
  margin-bottom: 24px;
}

.board-section .section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.board-section .section-heading p:last-child {
  font-size: 1rem;
  line-height: 1.45;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}

.board-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.board-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.board-card-header {
  padding: 22px 22px;
  color: var(--white);
}

.board-card-header h3 {
  font-size: 1.12rem;
  line-height: 1.2;
  margin-top: 10px;
}

.board-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.cas-1-board .board-card-header {
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
}

.cas-2-board .board-card-header {
  background: linear-gradient(135deg, #72c83d, var(--green-dark));
}

.cas-3-board .board-card-header {
  background: linear-gradient(135deg, #f7a844, var(--orange-dark));
}

.board-list {
  padding: 8px 22px 18px;
}

.board-member {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}

.board-member:last-child {
  border-bottom: none;
}

.board-member span {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.board-member strong {
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.25;
}

/* EQUIPO */
.team-section {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 38px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--blue-main),
    var(--green-main),
    var(--orange-main)
  );
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.team-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 8px auto 22px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  display: grid;
  place-items: center;
  border: 5px solid #eef7ff;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-role {
  display: inline-block;
  color: var(--blue-main);
  background: #eaf5ff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.team-card h3 {
  color: var(--blue-deep);
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.team-card a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  word-break: break-word;
}

.team-card a:hover {
  color: var(--blue-main);
}

/* CONTROL DE EXTRACCIONES DESTACADO */
.extraction-highlight-section {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  padding-top: 64px;
  padding-bottom: 64px;
}

.extraction-highlight-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.extraction-highlight-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-dark));
}

.extraction-highlight-icon {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf5ff;
  box-shadow: inset 0 0 0 1px rgba(22, 143, 229, 0.14);
}

.extraction-highlight-icon svg {
  width: 104px;
  height: 104px;
  display: block;
}

.extraction-highlight-content h2 {
  color: var(--blue-deep);
  margin-bottom: 14px;
}

.extraction-highlight-content p {
  color: var(--text-soft);
  max-width: 780px;
  font-size: 1.05rem;
}

.extraction-actions {
  margin-top: 22px;
}

.btn-extraction {
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(22, 143, 229, 0.28);
}

.btn-extraction:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-deep));
  color: var(--white);
}

/* GESTIÓN */
.management-section {
  background: var(--light-blue);
}

.management-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mini-card {
  background: var(--white);
  border-radius: 18px;
  padding: 30px 22px;
  box-shadow: var(--shadow);
  min-height: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.mini-icon {
  margin-bottom: 18px;
}

.detailed-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf5ff;
  box-shadow: inset 0 0 0 1px rgba(22, 143, 229, 0.14);
}

.detailed-icon svg {
  width: 82px;
  height: 82px;
  display: block;
}

.mini-card h4 {
  color: var(--blue-deep);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.mini-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* DOCUMENTOS */
.documents-section {
  background: #fdfdfd;
}

.documents-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
  margin-top: 38px;
}

.resolutions-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.compact-document {
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--border-soft);
}

.compact-document:last-child {
  border-bottom: none;
}

.document-item,
.other-documents-box {
  background: var(--white);
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.document-item:hover,
.other-documents-box:hover {
  transform: translateY(-3px);
}

.other-documents-box {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow);
  align-items: flex-start;
  min-height: 100%;
}

.doc-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--white);
}

.doc-icon.blue {
  background: var(--blue-main);
}

.doc-icon.green {
  background: var(--green-main);
}

.doc-icon.orange {
  background: var(--orange-main);
}

.doc-type {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.document-item h4,
.other-documents-box h4 {
  color: var(--text-dark);
  margin-bottom: 6px;
  font-size: 1rem;
}

.document-item p,
.other-documents-box p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.document-item a {
  text-decoration: none;
  font-weight: 800;
  color: var(--blue-main);
}

.document-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.document-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf5ff;
  color: var(--blue-main);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}

.document-links a:hover {
  background: var(--blue-main);
  color: var(--white);
}

/* SITIOS DE INTERÉS */
.links-section {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.interest-link {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 22px 18px;
  text-decoration: none;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 230px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interest-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.interest-logo {
  width: 100%;
  height: 78px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.interest-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.agroclima-logo,
.eficiencia-logo {
  padding: 6px;
}

.agroclima-logo img,
.eficiencia-logo img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.interest-link strong {
  color: var(--blue-deep);
  font-size: 1rem;
  line-height: 1.25;
  display: block;
  margin-bottom: 8px;
}

.interest-link p {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin: 0;
}

/* CONTACTO */
.contact-section {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark));
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-section h2 {
  color: var(--white);
}

.contact-label {
  color: #d8ecff;
}

.contact-intro {
  max-width: 560px;
  color: #e7f4ff;
  font-size: 1.05rem;
}

.contact-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(4px);
}

.contact-box p {
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.contact-email-link {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email-link:hover {
  color: #ccecff;
}

/* FOOTER */
.site-footer {
  background: #102b5e;
  color: var(--white);
  padding: 24px 0;
}

.footer-content {
  text-align: center;
  font-size: 0.95rem;
}

/* SUBPÁGINA CONTROL DE EXTRACCIONES */
.control-page-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(20, 60, 140, 0.92), rgba(22, 143, 229, 0.78)),
    url("home-bg.jpg") center center / cover no-repeat;
  color: var(--white);
  padding: 110px 0 105px;
  text-align: center;
  overflow: hidden;
}

.control-page-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 58%);
  pointer-events: none;
}

.control-page-hero-content {
  position: relative;
  z-index: 2;
}

.control-kicker {
  color: #d8ecff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.control-page-hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.control-page-hero p:last-child {
  max-width: 820px;
  margin: 0 auto;
  color: #eaf6ff;
  font-size: 1.12rem;
}

.control-platforms-section {
  background: linear-gradient(180deg, #f6fbff, #ffffff);
}

.control-platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 12px;
}

.control-platform-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  align-items: start;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.control-platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.control-platform-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
}

.facter-card::before {
  background: linear-gradient(90deg, var(--blue-main), var(--blue-dark));
}

.lemsystem-card::before {
  background: linear-gradient(90deg, var(--green-main), var(--green-dark));
}

.control-platform-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf5ff;
  box-shadow: inset 0 0 0 1px rgba(22, 143, 229, 0.14);
}

.control-platform-icon svg {
  width: 86px;
  height: 86px;
  display: block;
}

.platform-label {
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.control-platform-content h2 {
  color: var(--blue-deep);
  font-size: 2rem;
  margin-bottom: 12px;
}

.control-platform-content p {
  color: var(--text-soft);
  margin-bottom: 22px;
  font-size: 1rem;
}

.btn-platform-blue {
  background: linear-gradient(135deg, var(--blue-main), var(--blue-dark));
  color: var(--white);
  border: 1px solid var(--blue-main);
  box-shadow: 0 10px 24px rgba(22, 143, 229, 0.28);
}

.btn-platform-blue:hover {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-deep));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(22, 143, 229, 0.36);
}

.btn-green {
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  color: var(--white);
  border: 1px solid var(--green-main);
  box-shadow: 0 10px 24px rgba(70, 180, 46, 0.26);
}

.btn-green:hover {
  background: linear-gradient(135deg, var(--green-dark), #246918);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(70, 180, 46, 0.34);
}

.control-note {
  max-width: 880px;
  margin: 30px auto 0;
  background: #eef7ff;
  border: 1px solid #d5eaff;
  border-radius: 18px;
  padding: 20px 24px;
  text-align: center;
}

.control-note p {
  color: var(--text-soft);
  margin: 0;
}

.control-back {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .cards-grid,
  .management-cards,
  .objectives-grid,
  .team-grid,
  .board-grid,
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .location-card,
  .documents-two-columns,
  .contact-layout,
  .control-platforms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1366px) {
  .container {
    width: min(1080px, 92%);
  }

  .section {
    padding: 54px 0;
  }

  .hero {
    min-height: 500px;
    padding: 60px 0 50px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 2.7vw, 2.75rem);
  }

  .cards-grid,
  .objectives-grid,
  .board-grid {
    gap: 20px;
  }

  .objective-card,
  .sector-card,
  .team-card,
  .mini-card {
    padding: 24px 20px;
  }
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 135px;
  }

  section[id] {
    scroll-margin-top: 135px;
  }

  .header-content {
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .main-nav {
    justify-content: center;
    gap: 16px;
  }

  .nav-dropdown {
    position: relative;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    display: none;
    box-shadow: var(--shadow-strong);
    border-radius: 14px;
    margin-top: 0;
    width: auto;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
  }

  .hero {
    min-height: 540px;
    padding: 70px 0 52px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    margin-bottom: 32px;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cards-grid,
  .management-cards,
  .objectives-grid,
  .team-grid,
  .board-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }

  .sector-card {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .location-card {
    padding: 20px;
  }

  .section {
    padding: 58px 0;
  }

  .board-member {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .extraction-highlight-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .extraction-highlight-icon {
    margin: 0 auto;
  }

  .extraction-highlight-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .control-platform-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .control-platform-icon {
    margin: 0 auto;
  }
}

/* AJUSTE COMPACTO GENERAL PARA NOTEBOOKS */
@media (max-width: 1366px) {
  .section {
    padding: 50px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading p:last-child {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  h2 {
    font-size: clamp(1.8rem, 2.7vw, 2.45rem);
  }

  .section-line {
    margin: 12px 0 16px;
  }

  .center-line {
    margin-left: auto;
    margin-right: auto;
  }

  .cards-grid,
  .objectives-grid,
  .board-grid,
  .team-grid,
  .management-cards,
  .links-grid {
    gap: 18px;
    margin-top: 26px;
  }

  .objective-card,
  .sector-card,
  .mini-card,
  .team-card,
  .interest-link {
    padding: 22px 18px;
  }

  .objective-card h3,
  .mini-card h4,
  .team-card h3,
  .sector-info h3 {
    font-size: 1.05rem;
  }

  .objective-card p,
  .mini-card p,
  .sector-info p,
  .interest-link p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .sector-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .sector-icon svg {
    width: 56px;
    height: 56px;
  }

  .team-photo {
    width: 110px;
    height: 110px;
    margin-bottom: 16px;
  }

  .team-card {
    padding-top: 24px;
    padding-bottom: 22px;
  }

  .team-role {
    font-size: 0.78rem;
    padding: 5px 12px;
    margin-bottom: 10px;
  }

  .team-card a {
    font-size: 0.88rem;
  }

  .mini-card {
    min-height: 235px;
  }

  .detailed-icon {
    width: 70px;
    height: 70px;
  }

  .detailed-icon svg {
    width: 70px;
    height: 70px;
  }

  .interest-logo {
    height: 68px;
  }

  .interest-link {
    min-height: 205px;
  }
}