/* Alquiler Gunitadora — estilos base
   Paleta: Azul Industrial #004080, Naranja Maquinaria #E67300, Gris Neutro #A0A0A0 */

:root {
  --navy: #004080;
  --navy-light: #0f5aa8;
  --navy-deep: #001f3f;
  --accent: #E67300;
  --accent-dark: #c25f00;
  --grey: #A0A0A0;
  --bg: #f4f5f6;
  --bg-card: #ffffff;
  --text: #1b232c;
  --text-muted: #5b6167;
  --border: rgba(160, 160, 160, 0.35);
  --radius: 10px;
  --max-width: 1140px;
  --shadow: 0 8px 24px rgba(0, 64, 128, 0.10);

  /* alias de compatibilidad interna */
  --dark: var(--navy);
  --dark-2: var(--navy-light);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Zilla Slab", "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text); }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark p { color: #fff; }
.section--alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6em;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: #1b232c; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }

.btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.btn--outline:hover { background: rgba(255,255,255,0.08); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

/* Header / navegación */
.top-bar {
  background: var(--navy-deep);
  color: #cfd8e2;
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: #fff; font-weight: 600; }
.top-bar__contact { display: flex; gap: 20px; flex-wrap: wrap; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 245, 246, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand__logo {
  height: 84px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand__name {
  font-family: "Zilla Slab", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 22px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nav__links a:hover, .nav__links a.active { color: var(--accent-dark); text-decoration: none; }

.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
}

.site-header .nav.container { max-width: 1200px; }

@media (max-width: 1140px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav__links.is-open { max-height: 420px; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 24px; width: 100%; font-size: 0.92rem; }
  .nav__toggle { display: block; }
  .brand { min-width: 0; flex: 1 1 auto; overflow: hidden; margin-right: 8px; }
  .brand__logo { height: 69px; }
  .brand__name {
    font-size: 0.95rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .nav__cta .btn span { display: none; }
  .nav__cta .btn::before { content: "📞"; }
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/flota-maquinas.jpg") center 60%/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,31,63,0.80), rgba(0,64,128,0.88) 55%, rgba(0,31,63,0.92));
}
.hero .container { position: relative; z-index: 2; }
.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero .lead { color: #e6ecf2; margin-left: auto; margin-right: auto; }
.hero .btn-row { justify-content: center; }
.hero__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}
.hero__badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 0.2em; }
.page-hero p { color: #d8e0e8; margin: 0; }

/* Banner de flota (foto real de máquinas) */
.fleet-banner {
  position: relative;
  overflow: hidden;
}
.fleet-banner img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 65%;
}
.fleet-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,31,63,0.05) 40%, rgba(0,31,63,0.75));
}
.fleet-banner__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}
.fleet-banner__caption .eyebrow { color: #ffcf9e; margin-bottom: 0.2em; }
.fleet-banner__caption h3 { color: #fff; margin: 0; }
@media (max-width: 700px) {
  .fleet-banner img { height: 220px; }
}

/* Grids */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(230, 115, 0, 0.12);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: "Zilla Slab", sans-serif;
  font-size: 2.4rem;
  color: var(--accent);
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid img, .gallery-grid .ph {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
}
.ph {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-deep));
  color: #cdd9e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Formulario de contacto */
.form-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .form-layout { grid-template-columns: 1fr; }
}

form.contact-form {
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.field--check { display: flex; align-items: center; gap: 8px; flex-direction: row; }

.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-info-card a { color: #fff; }
.contact-info-card li strong { display: block; color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }

/* Footer */
footer.site-footer {
  background: var(--navy-deep);
  color: #c3ccd6;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
footer.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.8em; }
footer.site-footer p { color: #c3ccd6; }
footer.site-footer a { color: #c3ccd6; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
