/* ============================================================
   MAGUSSA - PORTADA "REMODELANDO NUESTRO SITIO WEB"
   Diseño Full Width · Fondo Blanco · Texto Hero Vistoso
   Identidad John Deere: Verde (#367C2B) y Amarillo (#FFDE00)
   ============================================================ */

:root {
  --jd-green: #367C2B;
  --jd-green-dark: #27591F;
  --jd-green-light: #4CA536;
  --jd-green-subtle: #f0f7ef;
  --jd-yellow: #FFDE00;
  --jd-yellow-dark: #b89300;

  --bg-white: #FFFFFF;
  --bg-soft: #F8FAF9;

  --text-title: #0F172A;
  --text-main: #334155;
  --text-muted: #64748B;

  --border-light: #E2E8F0;
  --border-hover: #367C2B;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 14px 35px rgba(54, 124, 43, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   ENCABEZADO FULL WIDTH (BLANCO)
   ============================================================ */
.top-header {
  width: 100%;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
  z-index: 10;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.logo-magussa {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 34px;
  background-color: #cbd5e1;
}

.logo-deere {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ============================================================
   HERO BANNER FULL WIDTH CON TEXTO VISTOSO SUPERPUESTO
   ============================================================ */
.hero-banner {
  width: 100%;
  position: relative;
  min-height: 480px;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0f1812;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  display: block;
  transform: scale(1.02);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-banner:hover .banner-image {
  transform: scale(1.04);
}

.banner-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
      rgba(15, 24, 18, 0.45) 0%,
      rgba(12, 18, 14, 0.72) 75%,
      rgba(8, 13, 9, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero-overlay-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 3.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-text-wrapper {
  width: 100%;
  text-align: center;
  position: relative;
  padding: 1.5rem 1rem;
}

/* Efecto suave difuminado debajo del texto para garantizar legibilidad perfecta sin tapar el tractor */
.hero-text-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(12, 18, 13, 0.65) 0%, rgba(12, 18, 13, 0.35) 55%, transparent 80%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}

.hero-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 800;
  color: var(--jd-yellow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  display: inline-block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 4px 18px rgba(0, 0, 0, 0.85);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.95), 0 12px 35px rgba(0, 0, 0, 0.75);
}

/* ============================================================
   CONTENIDO PRINCIPAL FULL WIDTH CENTRADO (FONDO BLANCO)
   ============================================================ */
.main-wrapper {
  width: 100%;
  background-color: var(--bg-white);
  padding: 3.5rem 1.5rem 4rem;
  display: flex;
  justify-content: center;
}

.main-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Bloque de Textos */
.description-block {
  max-width: 760px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.65;
}

.lead-text strong {
  color: var(--jd-green);
  font-weight: 800;
}

.sub-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   SECCIÓN DE CONTACTO
   ============================================================ */
.contact-section {
  width: 100%;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.35rem;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.contact-cards-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 840px;
}

.contact-card {
  flex: 1 1 360px;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background-color: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--jd-green);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.contact-card:hover::before {
  opacity: 1;
}

.card-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.phone-icon {
  background-color: #EBF8EA;
  color: var(--jd-green);
  border: 1px solid #D1F0CE;
}

.email-icon {
  background-color: #FEF9D9;
  color: #927500;
  border: 1px solid #FDF0A6;
}

.contact-card:hover .card-icon-wrapper {
  transform: scale(1.06);
}

.card-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex-grow: 1;
  min-width: 0;
}

.card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.card-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-title);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--jd-green);
  background-color: var(--jd-green-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: auto;
}

.contact-card:hover .card-action-btn {
  background-color: var(--jd-green);
  color: #FFFFFF;
  transform: translateX(3px);
}

/* ============================================================
   PIE DE PÁGINA FULL WIDTH (BLANCO)
   ============================================================ */
.footer-wrapper {
  width: 100%;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-lead {
  font-size: 1.05rem;
  color: var(--text-main);
}

.footer-lead strong {
  color: var(--jd-green);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.footer-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ============================================================
   KEYFRAMES & RESPONSIVE DESIGN
   ============================================================ */
@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .top-header {
    padding: 1rem;
  }

  .brand-wrapper {
    gap: 1.15rem;
  }

  .logo-magussa {
    height: 38px;
  }

  .logo-deere {
    height: 24px;
  }

  .hero-banner {
    min-height: 420px;
  }

  .hero-overlay-container {
    padding: 2.5rem 1rem;
  }

  .hero-text-wrapper {
    padding: 1rem 0.5rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .main-wrapper {
    padding: 2.5rem 1rem 3rem;
  }

  .lead-text {
    font-size: 1.1rem;
  }

  .sub-text {
    font-size: 1rem;
  }

  .contact-section {
    padding: 1.75rem 1rem;
  }

  .contact-cards-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-card {
    flex: 1 1 auto;
    width: 100%;
    padding: 1.15rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .card-val {
    font-size: 1.05rem;
    white-space: normal;
    word-break: break-word;
  }

  .card-action-btn {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 0.35rem;
  }
}