/* Reset y variables */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --white:#ffffff;
  --bg:#ffffff;
  --blue:#142c5e;
  --red:#e91e23;
  --muted:#666666;
  --maxw:1100px;
  --radius:12px;
  --shadow:0 10px 30px rgba(0,0,0,0.08);
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme:light;
}

body{
  background:var(--bg);
  color:#111;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

.wrap{max-width:var(--maxw);margin:0 auto;padding:28px}

/* HEADER */
.site-header{background:var(--white);border-bottom:1px solid #eee;position:sticky;top:0;z-index:60}
.header-grid{display:flex;align-items:center;gap:18px}
.brand .logo{height:54px}
.main-nav{display:flex;gap:14px;margin-left:12px;flex:1;align-items:center}
.main-nav a{text-decoration:none;color:var(--muted);font-weight:600;padding:8px 10px;border-radius:8px}
.main-nav a:hover{background:rgba(0,0,0,0.04)}
.header-ctas{display:flex;align-items:center;gap:8px}
.phone{color:var(--muted);text-decoration:none;font-weight:700}
.btn{padding:10px 14px;border-radius:10px;border:none;cursor:pointer;text-decoration:none;font-weight:700}
.btn.primary{background:var(--blue);color:var(--white)}
.btn.outline{background:transparent;border:2px solid var(--white);color:var(--white)}
.hamburger{display:none;background:transparent;border:0;font-size:20px}

/* === Ajuste de desplazamiento para anclas (#) === */
:target {
  scroll-margin-top: 70px; /* ajustá este valor según la altura de tu header */
}


/* HERO */
.hero{
  position:relative;
  height:70vh;
  background:url("../assets/hero-car.jpg") center center/cover no-repeat fixed;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--white);
  text-align:center;
}

.hero::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,0.55);
}

.hero-overlay{
  position:relative;
  z-index:2;
  width:100%;
  padding:0 20px;
}

.hero-content h1{
  font-size:48px;
  margin-bottom:10px;
  text-shadow:0 3px 6px rgba(0,0,0,0.5);
}

.tagline {
  display: inline-block;     /* Hace que el fondo se ajuste al tamaño del texto */
  background:#002b7a;    /* Fondo rojo */
  color: var(--white);       /* Texto blanco */
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 12px;
  padding: 6px 12px;         /* Espacio interno: arriba/abajo 6px, lados 12px */
  border-radius: 8px;        /* Bordes redondeados */
}

.lead{
  max-width:700px;
  margin:0 auto 22px auto;
  font-size:18px;
  color:#f1f1f1;
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap:14px;
}

.hero .btn.outline{
  border-color:var(--white);
  color:var(--white);
}

.hero .btn.outline:hover{
  background:rgba(255,255,255,0.2);
}

.hero .btn.primary{
  background:var(--red);
  color:var(--white);
}

.hero .btn.primary:hover{
  background:#c41217;
}


/* ABOUT / CONTACT */
.about, .contact{padding:32px 0}
.contact-grid{display:grid;grid-template-columns:1fr 380px;gap:18px}
.contact-card, .map-card{background:var(--white);padding:18px;border-radius:12px;box-shadow:var(--shadow)}
.map-placeholder{height:200px;border-radius:8px;background:#f6f6f6;display:flex;align-items:center;justify-content:center;color:var(--muted);margin-bottom:10px}
.form label{display:block;margin-top:10px;margin-bottom:6px;font-weight:600}
.form input, .form textarea{width:100%;padding:10px;border:1px solid #e7e7e7;border-radius:8px;font-size:14px}

/* FOOTER */
.site-footer{border-top:1px solid #eee;background:var(--white);padding:18px 0;margin-top:30px}
.footer-inner{display:flex;justify-content:space-between;align-items:center}
.footer-inner img.logo-sm{height:42px}
.footer-inner nav a{text-decoration:none;color:var(--muted);margin-left:12px;}

/* RESPONSIVE */
@media (max-width:900px){
  .hero{height:70vh;background-attachment:scroll}
  .hero-content h1{font-size:36px}
  .hero-actions{flex-direction:column}
  .contact-grid{grid-template-columns:1fr}
  .main-nav{display:none}
  .hamburger{display:inline-block}
  .header-ctas .phone{display:none}
}


  .socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }

  .socials a {
    text-decoration: none;
    font-size: 28px;
    transition: transform 0.3s, color 0.3s;
  }

  /* Colores de cada red */
  .socials .facebook {
    color: #1877f2;
  }

  .socials .instagram {
    color: #E4405F;
  }

  .socials .whatsapp {
    color: #25D366;
  }

  /* Efecto hover */
  .socials a:hover {
    transform: scale(1.2);
    opacity: 0.8;
  }



.ml-banner {
  height: 140px; /* 🔹 aumentá el alto: probá entre 140 y 180 según te guste */
  width: 100%;
  background-color: #ffe600; /* color oficial Mercado Libre */
  display: flex; /* centrado con flexbox */
  align-items: center; /* centra verticalmente */
  justify-content: center; /* centra horizontalmente */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.ml-banner a {
  color: #2d3277;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ml-banner a:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.ml-logo {
  height: 50px; /* 🔹 más grande para acompañar el nuevo alto */
}

@media (max-width: 600px) {
  .ml-banner {
    height: auto;
    padding: 20px 0;
  }

  .ml-banner a {
    flex-direction: column;
    gap: 6px;
    font-size: 1.1rem;
  }

  .ml-logo {
    height: 40px;
  }
}


/* === QUIÉNES SOMOS === */
.about {
  background: #fff;
  padding: 60px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.about h2 {
  color: var(--blue);
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.about p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #333;
}

.about strong {
  color: var(--blue);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.highlight {
  background: #f9f9f9;
  padding: 18px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.highlight i {
  color: var(--red, #d62828);
  font-size: 20px;
  margin-top: 3px;
}

.highlight p {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .about {
    padding: 40px 16px;
  }
}


.contact {
  padding: 60px 0;
 
}

.contact h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--blue);
}

.contact-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch; /* 🔹 Igual altura */
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.branch-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.contact-card h3 {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 1.3rem;
}

.contact-card p {
  margin: 4px 0;
  line-height: 1.4;
}

.contact-card a {
  color: var(--dark);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.form input,
.form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form button {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 900px) {
  .contact-grid-3 {
    grid-template-columns: 1fr;
  }
}


.productos {
  padding: 60px 0;
  background-color: #fff;
}

.productos h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.productos .muted {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.producto-card {
  background: #f9f9f9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  padding-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.producto-foto {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.producto-card h3 {
  color: var(--red);
  margin-top: 16px;
  font-size: 1.2rem;
}

.producto-card p {
  margin: 8px 16px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}
