/*
Theme Name: IDO UAVS
Theme URI: https://idouavs.com
Author: Investigación y Desarrollo Operacional SL
Description: Tema corporativo de una sola página para IDO UAVS.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ido-uavs
*/

:root {
  --navy: #26384a;
  --navy-dark: #182735;
  --copper: #c07d4e;
  --ivory: #f5f1e7;
  --white: #ffffff;
  --ink: #26384a;
  --muted: #66717b;
  --line: rgba(38, 56, 74, 0.16);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.container { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  padding: 30px 0;
  color: var(--white);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
.brand-mark { width: 8px; height: 45px; background: var(--copper); border-radius: 6px; }
.brand-name { font-weight: 760; font-size: 23px; letter-spacing: .13em; }
.site-nav { display: flex; gap: 30px; align-items: center; }
.site-nav a { text-decoration: none; font-size: 14px; letter-spacing: .06em; opacity: .82; }
.site-nav a:hover, .site-nav a:focus { opacity: 1; }
.site-nav .nav-contact { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 9px 17px; }

.hero {
  position: relative;
  min-height: 790px;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  right: -210px; top: 90px;
  border: 1px solid rgba(192,125,78,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 95px rgba(192,125,78,.06), 0 0 0 190px rgba(192,125,78,.035);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .09;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 840px; padding: 180px 0 120px; }
.eyebrow { margin: 0 0 26px; color: var(--copper); font-size: 13px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(48px, 7.2vw, 88px); line-height: 1.04; letter-spacing: -.035em; }
.hero-lead { max-width: 680px; margin: 34px 0 0; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.55; color: rgba(255,255,255,.78); }
.hero-action { display: inline-flex; margin-top: 45px; align-items: center; gap: 16px; text-decoration: none; color: var(--white); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-action::after { content: "↓"; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; }

.section { padding: 120px 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy-dark); color: var(--white); }
.section-heading { display: grid; grid-template-columns: .65fr 1.35fr; gap: 80px; margin-bottom: 72px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -.025em; }
.section-heading p:last-child { margin: 0; max-width: 650px; font-size: 20px; color: var(--muted); }
.section-navy .section-heading p:last-child { color: rgba(255,255,255,.65); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.card { padding: 40px 36px 30px 0; border-right: 1px solid var(--line); }
.card + .card { padding-left: 36px; }
.card:last-child { border-right: 0; }
.card-number { color: var(--copper); font-size: 13px; font-weight: 750; letter-spacing: .18em; }
.card h3 { margin: 52px 0 16px; font-size: 24px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }

.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sector {
  min-height: 275px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.025);
}
.sector-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--copper); }
.sector h3 { margin: 0 0 10px; font-size: 25px; }
.sector p { margin: 0; color: rgba(255,255,255,.62); }

.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.approach h2 { margin: 0 0 30px; font-size: clamp(40px, 5vw, 64px); line-height: 1.08; letter-spacing: -.03em; }
.approach-copy { font-size: 20px; color: var(--muted); }
.approach-lines { padding: 22px 0; }
.approach-line { display: flex; align-items: center; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); font-weight: 650; }
.approach-line span { color: var(--copper); font-size: 13px; letter-spacing: .12em; }

.contact-section { padding: 120px 0; background: var(--navy); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.contact-intro h2 { margin: 0 0 24px; font-size: clamp(42px, 5vw, 64px); letter-spacing: -.03em; }
.contact-intro p { max-width: 440px; color: rgba(255,255,255,.65); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 9px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.32);
  border-radius: 0;
  padding: 12px 0;
  color: var(--white);
  background: transparent;
  font: inherit;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--copper); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.62); font-size: 13px; }
.consent input { margin-top: 5px; accent-color: var(--copper); }
.consent a { color: var(--white); }
.submit-button {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 15px 27px;
  color: var(--navy-dark);
  background: var(--copper);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
.submit-button:hover, .submit-button:focus { background: var(--ivory); }
.form-notice { grid-column: 1 / -1; padding: 14px 17px; border-left: 3px solid var(--copper); background: rgba(255,255,255,.08); }
.form-notice.error { border-color: #e2a097; }
.hp-field { position: absolute; left: -9999px; }

.site-footer { padding: 34px 0; color: rgba(255,255,255,.64); background: #111d27; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 22px; }

@media (max-width: 820px) {
  .container { width: min(calc(100% - 34px), var(--content)); }
  .site-header { padding: 22px 0; }
  .site-nav a:not(.nav-contact) { display: none; }
  .hero { min-height: 720px; }
  .hero-content { padding-top: 150px; }
  .hero::before { width: 480px; height: 480px; right: -310px; top: 210px; }
  .section { padding: 82px 0; }
  .section-heading, .approach, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .section-heading { margin-bottom: 48px; }
  .cards, .sector-grid { grid-template-columns: 1fr; }
  .card, .card + .card { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .card h3 { margin-top: 25px; }
  .sector { min-height: 210px; }
  .contact-section { padding: 82px 0; }
  .contact-form { grid-template-columns: 1fr; }
  .field-wide, .consent, .submit-button, .form-notice { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
