/* AMI Technology — Diseño profesional */
:root {
  --navy: #081F38;
  --blue: #007BFF;
  --blue-dark: #0062cc;
  --cyan: #00D1FF;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e2eaf2;
  --text: #0d1b2a;
  --muted: #5c6b7a;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(8, 31, 56, 0.07);
}

/* === Safety: force logo sizes (prevents huge images if cache is stale) === */
.nav-logo img,
header img,
.logo img,
img.contact-side-logo,
.footer img,
.footer-row img {
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  max-width: 200px !important;
  object-fit: contain !important;
}
.contact-side-logo {
  height: 52px !important;
  max-height: 52px !important;
}
.footer img,
.footer-row img {
  height: 36px !important;
  max-height: 36px !important;
}

.project-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

/* Toast */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(8, 31, 56, 0.3);
  max-width: 92%;
}
.toast[hidden] { display: none !important; }
.toast-check {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cyan); color: var(--navy);
  display: grid; place-items: center;
  font-weight: 700; flex-shrink: 0;
}
.toast p { font-size: 0.92rem; font-weight: 500; }
.toast button {
  border: 0; background: transparent; color: #fff;
  font-size: 1.4rem; cursor: pointer; opacity: 0.7; margin-left: 4px;
}
.toast button:hover { opacity: 1; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 22px; height: 2px; background: var(--navy);
}

/* Hero — banner de fondo nítido */
.hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 64px 0 72px;
  overflow: hidden;
  background: #081F38;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Solo un velo suave a la izquierda para leer el texto; la imagen se ve clara */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 31, 56, 0.85) 0%,
    rgba(8, 31, 56, 0.70) 40%,
    rgba(8, 31, 56, 0.50) 70%,
    rgba(8, 31, 56, 0.40) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}
.hero-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--cyan); }
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  margin-bottom: 28px;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s ease;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid rgba(0, 123, 255, 0.4);
}
.btn-secondary:hover {
  background: rgba(0, 123, 255, 0.05);
}
.btn-block {
  width: 100%;
  padding: 15px;
  font-size: 0.98rem;
}
.btn.loading { opacity: 0.7; pointer-events: none; }

/* Blocks */
.block { padding: 72px 0; }
.block-gray {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.block-header {
  text-align: center;
  margin-bottom: 40px;
}
.block-header h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.block-header p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Mission */
.mission-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.mission-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.mission-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.mission-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.mission-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Values */
.values-label {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.values-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: 0.2s;
}
.value-card:hover {
  border-color: rgba(0, 123, 255, 0.35);
  box-shadow: var(--shadow);
}
.value-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.value-card p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Projects */
.projects-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.25s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(8, 31, 56, 0.1);
}
.project-featured {
  border-color: rgba(0, 123, 255, 0.35);
}
.project-img {
  height: 180px;
  overflow: hidden;
  background: #e8f1fa;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  background: rgba(0, 123, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.project-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.project-info p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
  flex: 1;
}
.project-go {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--blue);
}
.project-soon {
  padding: 32px 24px;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 220px;
}
.project-soon-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(0, 123, 255, 0.2);
  margin-bottom: 12px;
}
.project-soon h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.project-soon p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Contact */
.contact-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: 0.2s;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-side {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.contact-side-logo {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
}
.contact-side-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact-side-text {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 22px;
}
.contact-side-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-side-lines span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 3px;
}
.contact-side-lines a {
  color: var(--blue);
  font-weight: 500;
  font-size: 0.92rem;
}
.contact-side-lines a:hover { text-decoration: underline; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 28px 0;
}
.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-row img { height: 36px; width: auto; }
.footer-row p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero { min-height: 380px; padding: 64px 0 72px; }
  .mission-row { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: repeat(3, 1fr); }
  .projects-row { grid-template-columns: 1fr 1fr; }
  .project-featured { grid-column: 1 / -1; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-form { order: -1; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .nav-cta {
    text-align: center;
    display: block;
  }
  .values-row { grid-template-columns: 1fr 1fr; }
  .projects-row { grid-template-columns: 1fr; }
  .hero { min-height: 340px; padding: 56px 0 64px; }
  .block { padding: 52px 0; }
  .contact-form { padding: 24px 18px; }
}






/* Nav sin logo */
.nav-row-nologo {
  justify-content: flex-end;
}
.nav-row-nologo .nav-links {
  margin-left: auto;
}

/* Formulario a todo el ancho */
.contact-row-full {
  grid-template-columns: 1fr !important;
  max-width: 640px;
  margin: 0 auto;
}
.form-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.form-header-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-header-mail {
  font-size: 0.9rem;
  color: var(--muted);
}
.form-header-mail a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.form-header-mail a:hover {
  text-decoration: underline;
}
