/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #140228;
  color: #fff;
}

/* Todas las imágenes fluidas, sin estirar */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Header ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 30px;
  background-color: #340749 !important;
  flex-wrap: wrap;
}

.logo {
  max-height: 60px;
}

.icon-header {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icon-header:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* ===== Main ===== */
.main-section {
  text-align: center;
  padding: 20px 16px;
  max-width: 1200px;   /* centrado y ancho máximo */
  margin: 0 auto;
}

/* Hero y banners SIN alturas fijas (no estiran). 
   Si querés recorte elegante, podés envolverlos en un contenedor con object-fit (ver notas). */
.main-banner,
.second-banner {
     margin-left: auto;
  margin-right: auto;
 max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 0 10px #222;
   margin-left: auto;
  margin-right: auto;
  /* Eliminar restricciones que deforman */
  /* NO poner height fijo ni max-height aquí */
}

/* Títulos */
.banner-title,
.section-title {
  margin: 16px 0 12px;
  line-height: 1.2;
}

/* CTA WhatsApp */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.whatsappBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto 12px;
  background-color: #61ce70;
  color: #fff;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  border: 2px solid #fff;
  cursor: pointer;
  text-decoration: none;
  animation: pulse 1.25s infinite;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsappBtn:hover {
  background-color: #0f0f1f;
  color: #fff;
  transform: translateY(-1px);
}

.whatsappBtn:focus-visible {
  outline: 3px solid #ffd54f;
  outline-offset: 2px;
}

.icon-wa {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px;
  background-color: #340749 !important;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}

.footer-logo img {
  max-height: 60px;
}

.footer-center {
  text-align: center;
  flex: 1 1 300px;
}

.footer-center span {
  display: block;
  font-size: 12px;
}

.footer-right a.amarillo {
  color: yellow;
  font-weight: bold;
  text-decoration: none;
}

.scroll-top {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
  .header { padding: 10px 20px; }
  .footer { padding: 24px; }
}

@media (max-width: 768px) {
  .header {
    justify-content: center;
    text-align: center;
  }
  .whatsappBtn {
    width: 100%;
    max-width: 520px;
  }
  .banner-title,
  .section-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .main-section { padding: 16px 12px; }
  .whatsappBtn {
    font-size: 16px;
    padding: 12px 18px;
  }
  .footer-center span { font-size: 11px; }
  .scroll-top { right: 12px; bottom: 12px; }
  
}

/* ===== (Opcional) Wrapper para recorte elegante sin deformar ===== */
/* Si querés que en móviles el banner no “aplane” y mantenga proporción con recorte, 
   envolvé el <img> en <div class="banner-wrap"> ... </div> y descomentá esto:

.banner-wrap {
  width: 100%;
  aspect-ratio: 1200 / 540;  // ajustá según tu imagen
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px #222;
}
.banner-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;  // recorta, no estira
}

*/
