/* ============================================================
   INGENIERÍA CALCAGNO — ESTILOS EDITABLES
   ============================================================ */

:root {
  --navy: #073d69;
  --navy-dark: #052d50;
  --blue: #075c97;
  --cyan: #00aef0;
  --cyan-soft: #eaf8fd;
  --white: #ffffff;
  --text: #14324a;
  --muted: #5f7485;
  --line: #d6e5ee;
  --green: #16a36a;
  --max: 1180px;
  --radius: 12px;
  --shadow: 0 12px 35px rgba(5, 45, 80, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

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

a { color: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 74px 0;
  scroll-margin-top: 74px;
}

.section.blue {
  background: linear-gradient(135deg, var(--navy), #07598d);
  color: var(--white);
}

.section.white { background: var(--white); }

.section-label {
  margin: 0 0 6px;
  color: var(--cyan);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.08; margin-top: 0; }

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin-bottom: 12px;
}

p { margin-top: 0; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 45, 80, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  width: 185px;
  height: 62px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  /* El archivo original del logo se conserva sin redibujarlo. */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.nav-links a:hover { color: var(--cyan); }

.hero {
  min-height: 570px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(4,42,74,.96) 0%, rgba(4,42,74,.86) 36%, rgba(4,42,74,.15) 70%, rgba(4,42,74,.08) 100%),
    url("assets/hero.jpg") center/cover no-repeat;
  color: #fff;
}

.hero-content {
  max-width: 620px;
  padding: 95px 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin: 8px 0 20px;
}

.hero h1 span { color: var(--cyan); }

.hero p {
  font-size: 1.06rem;
  max-width: 580px;
  color: rgba(255,255,255,.92);
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  font-size: .95rem;
}

.btn.primary { background: var(--cyan); color: #062e4d; }
.btn.outline { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn.green { background: var(--green); color: #fff; }
.btn:hover { transform: translateY(-1px); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 40px;
}

.service {
  padding: 10px 24px 8px;
  border-right: 1px solid var(--line);
}

.service:last-child { border-right: 0; }

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 2rem;
  margin-bottom: 12px;
}

.service h3 { font-size: 1rem; margin-bottom: 7px; }
.service p { color: var(--muted); font-size: .9rem; }

.vehicle-intro {
  max-width: 760px;
  color: rgba(255,255,255,.9);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.vehicle-card {
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
}

.vehicle-body { padding: 14px; }

.vehicle-body h3 {
  font-size: .94rem;
  margin-bottom: 9px;
}

.vehicle-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 900;
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.project-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-image img {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  object-fit: cover;
}

.about {
  display: grid;
  grid-template-columns: 220px 1fr 290px;
  gap: 32px;
  align-items: center;
}

.about-photo {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1.06;
  object-fit: cover;
}

.about-copy h2 { margin-bottom: 5px; }

.about-copy .role {
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.about-copy p { color: rgba(255,255,255,.9); }

.credentials {
  border-left: 1px solid rgba(255,255,255,.25);
  padding-left: 28px;
}

.credentials strong { display: block; margin-bottom: 4px; }
.credentials p { color: rgba(255,255,255,.82); }

.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

label {
  font-size: .88rem;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #c7dbe7;
  border-radius: 7px;
  padding: 12px 13px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.field-meta {
  display: flex;
  justify-content: flex-end;
  color: var(--muted);
  font-size: .75rem;
}

.form-message { margin-top: 12px; font-weight: 700; }
.form-message.error { color: #b42318; }
.form-message.success { color: var(--green); }

.contact-details-section {
  background: linear-gradient(135deg, var(--navy), #07598d);
  color: var(--white);
  padding: 52px 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  align-items: stretch;
}

.contact-column {
  padding: 8px 34px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-column + .contact-column {
  border-left: 1px solid rgba(255,255,255,.22);
}

.contact-column-label {
  margin: 0 0 7px;
  color: var(--cyan);
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-column h3 {
  margin-bottom: 9px;
  font-size: 1.3rem;
}

.contact-column p:not(.contact-column-label) {
  color: rgba(255,255,255,.86);
  margin-bottom: 14px;
  max-width: 390px;
}

.contact-whatsapp .btn {
  align-self: flex-start;
  margin-top: 2px;
}

.contact-email-link {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email-link:hover { color: var(--cyan); }

.contact-small {
  margin-top: 12px;
  margin-bottom: 0 !important;
  font-size: .86rem;
}

.contact-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.social-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.06);
  text-decoration: none;
  font-weight: 800;
  font-size: .88rem;
  transition: .2s ease;
}

.social-btn svg {
  width: 21px;
  height: 21px;
}

.social-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.7);
}

.social-btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}

.btn.green { background: var(--green); color: #fff; }
.btn.green:hover { background: #128b5a; }

footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 34px 0 26px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.footer-logo { width: 185px; height: 65px; object-fit: contain; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
}

@media (max-width: 850px) {
  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-column {
    min-height: 0;
    padding: 28px 0;
  }

  .contact-column + .contact-column {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.22);
  }
}


/* ============================================================
   ADAPTACIÓN MÓVIL
   Menú, tipografías, formularios, tarjetas y contacto.
   ============================================================ */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 1000px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav {
    min-height: 68px;
  }

  .logo {
    width: 155px;
    height: 54px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: .84rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
  }

  .service:nth-child(3) {
    border-right: 0;
  }

  .vehicle-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about {
    grid-template-columns: 180px 1fr;
  }

  .credentials {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.25);
    padding: 22px 0 0;
  }

  .contact-grid {
    gap: 35px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 54px 0;
    scroll-margin-top: 68px;
  }

  header {
    position: sticky;
  }

  .nav {
    position: relative;
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 44px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    padding: 10px 14px 14px;
    background: rgba(5,45,80,.99);
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 12px 25px rgba(0,0,0,.18);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    flex-wrap: nowrap;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: .94rem;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(255,255,255,.08);
  }

  .hero {
    min-height: 0;
    background:
      linear-gradient(90deg, rgba(4,42,74,.95), rgba(4,42,74,.76)),
      url("assets/hero.jpg") center/cover no-repeat;
  }

  .hero-content {
    padding: 72px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.05;
  }

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

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .btn {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .service,
  .service:nth-child(3) {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service:last-child {
    border-bottom: 0;
  }

  .vehicle-intro {
    font-size: .96rem;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
  }

  .vehicle-body {
    padding: 11px;
  }

  .vehicle-body h3 {
    font-size: .9rem;
    margin-bottom: 7px;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .project-image {
    order: -1;
  }

  .project-image img {
    aspect-ratio: 1.5 / 1;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-photo {
    width: min(230px, 75vw);
    margin-inline: auto;
  }

  .about-copy h2 {
    font-size: 2rem;
  }

  .credentials {
    grid-column: auto;
    padding: 22px 0 0;
  }

  .credentials .btn {
    width: auto;
    min-width: 170px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .field.full {
    grid-column: auto;
  }

  input, select, textarea {
    min-height: 48px;
    font-size: 16px; /* evita zoom automático en iOS */
  }

  textarea {
    min-height: 140px;
  }

  #contactForm > .btn {
    margin-top: 4px;
  }

  .contact-details-section {
    padding: 34px 0;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-column {
    min-height: 0;
    padding: 25px 0;
  }

  .contact-column + .contact-column {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.22);
  }

  .contact-column h3 {
    font-size: 1.2rem;
  }

  .contact-column p:not(.contact-column-label) {
    max-width: none;
  }

  .contact-whatsapp .btn {
    width: 100%;
  }

  .contact-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .social-btn {
    min-height: 48px;
    padding: 0 10px;
  }

  footer {
    padding: 28px 0 22px;
  }

  .footer-top {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .footer-logo {
    width: 160px;
    height: 56px;
    margin-inline: auto;
  }

  footer .nav-links {
    display: grid;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 4px;
  }

  footer .nav-links a {
    justify-content: center;
    min-height: 40px;
  }

  .footer-bottom {
    margin-top: 20px;
    padding-top: 16px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 22px, var(--max));
  }

  .logo {
    width: 142px;
  }

  .hero-content {
    padding: 60px 0 54px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .vehicle-grid {
    gap: 8px;
  }

  .vehicle-body h3 {
    font-size: .84rem;
  }

  .contact-socials {
    grid-template-columns: 1fr;
  }
}
