/* =========================================================
   DELTA P ARGENTINA — hoja de estilos
   Paleta: azul industrial oscuro con acento celeste eléctrico
   ========================================================= */

/* ---------------------------------------------------------
   FUENTE AGRANDIR (local)
   Poné los archivos de la fuente en una carpeta "fonts/"
   junto a este CSS. Los nombres de archivo son de ejemplo:
   ajustalos a como se llamen los tuyos.
   Si solo tenés un peso (ej. Regular), podés borrar los
   @font-face de más abajo y dejar uno solo.
   --------------------------------------------------------- */
@font-face {
  font-family: "Agrandir";
  src: url("fonts/Agrandir-Regular.woff2") format("woff2"),
       url("fonts/Agrandir-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Agrandir";
  src: url("fonts/Agrandir-Medium.woff2") format("woff2"),
       url("fonts/Agrandir-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Agrandir";
  src: url("fonts/Agrandir-Bold.woff2") format("woff2"),
       url("fonts/Agrandir-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-black: #05070d;
  --bg-navy: #0a1330;
  --accent-blue: #1e6fd9;
  --accent-cyan: #2ea8e8;
  --text-white: #f4f7fb;
  --text-muted: #aab4c8;
  --border-soft: rgba(255, 255, 255, 0.14);

  --font-heading: "Agrandir", "Segoe UI", sans-serif;
  --font-body: "Agrandir", "Segoe UI", sans-serif;

  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

html, body {
  min-height: 100%;
}

body {
  background: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

section { position: relative; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 74px;           /* altura fija de la barra: no cambia aunque el logo sea más grande */
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;      /* permite que el logo sobresalga sin recortarse */
}

.logo img {
  height: 160px;
  width: auto;
}

.nav {
  display: flex;
  gap: 6px;
}

.nav-link {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Estas capas de color quedan SIEMPRE arriba de la foto (ver .hero-bg) */
  background:
    radial-gradient(circle at 30% 40%, rgba(46, 168, 232, 0.35), transparent 55%),
    radial-gradient(circle at 75% 25%, rgba(30, 111, 217, 0.25), transparent 50%),
    rgba(5, 7, 13, 0.75);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.hero-inner {

  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 45px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 16px;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
}

.hero-logo img {
  height: 700px;
  width: auto;
  filter: drop-shadow(0 0 30px rgba(46, 168, 232, 0.35));
  
}

/* =========================================================
   BARRA DE CONTACTO
   ========================================================= */
.contact-bar {
  background: #0a133085;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 24px;
  text-align: center;
}

.contact-bar p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-bar a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* =========================================================
   NOSOTROS
   ========================================================= */
.about {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 100px 24px;
  background: var(--bg-navy);
  border-bottom: 1px solid var(--border-soft);
}

.about::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-navy));
  pointer-events: none;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 380px;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  flex: 1 1 380px;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--accent-blue);
  background: rgba(255, 255, 255, 0.03);
}

/* =========================================================
   FONDO DE SECCIÓN (productos destacados + productos)
   ========================================================= */
.mid-bg-wrap {
  position: relative;
}

.mid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.mid-bg-wrap .featured,
.mid-bg-wrap .brands-strip,
.mid-bg-wrap .products {
  position: relative;
  z-index: 1;
}

/* =========================================================
   PRODUCTO DESTACADO
   ========================================================= */
.featured {
  padding: 90px 24px;
}

.featured-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.featured-text {
  flex: 1 1 340px;
}

.featured-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}

.featured-text p {
  color: var(--text-muted);
  max-width: 46ch;
  font-size: 1.05rem;
}

.featured-carousel {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.carousel-stack {
  position: relative;
  width: 340px;
  max-width: 100%;
}

/* Efecto de "cartas apiladas" detrás de la tarjeta principal */
.carousel-stack::before,
.carousel-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent-blue);
  border-radius: 18px;
}

.carousel-stack::before {
  transform: translate(10px, 10px);
  opacity: 0.5;
}

.carousel-stack::after {
  transform: translate(20px, 20px);
  opacity: 0.25;
}

.carousel-card {
  position: relative;
  z-index: 1;
  background: var(--bg-black);
  border: 1px solid var(--accent-blue);
  border-radius: 18px;
  padding: 30px 24px 26px;
  text-align: center;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.carousel-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.carousel-caption {
  font-size: 1.15rem;
  color: var(--text-white);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border-soft);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active {
  background: var(--accent-cyan);
  transform: scale(1.2);
}

/* =========================================================
   FRANJA DE MARCAS
   ========================================================= */
.brands-strip {
  background: #0a133085;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
  overflow: hidden;
}

.brands-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-brands 25s linear infinite;
}


.brands-track img {
  height: 60px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes scroll-brands {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-25%, 0, 0); }
}
/* =========================================================
   NUESTROS PRODUCTOS
   ========================================================= */
.products {
  padding: 90px 24px;
}

.products-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 60px;
}

.products-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 24px;
  justify-items: center;
}
.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 220px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.product-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
 z-index: -10;
}

.product-item:hover .product-circle {
 
  border-color: var(--accent-cyan);
}

.product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  text-align: center;
}

.chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
}

/* =========================================================
   MODAL DE PRODUCTO
   ========================================================= */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.product-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: var(--bg-navy);
  border: 1px solid var(--accent-blue);
  border-radius: 18px;
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.product-modal-overlay.open .product-modal {
  transform: translateY(0);
}

.product-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.product-modal-image {
  flex: 1 1 240px;
  background: rgba(255, 255, 255, 0.03);
}

.product-modal-image img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.product-modal-info {
  flex: 1 1 280px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.product-modal-info h3 {
  font-size: 1.6rem;
}

.product-modal-info p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--accent-blue);
  color: var(--text-white);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-whatsapp:hover {
  background: var(--accent-cyan);
}


/* =========================================================
   UBICACIÓN
   ========================================================= */
.location {
  padding: 90px 0 0;
  background: var(--bg-navy);
  text-align: center;
}

.location-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 12px;
  padding: 0 24px;
}

.location-address {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
  padding: 0 24px;
}

.location-map {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.location-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  border-radius: 18px;
  filter: grayscale(30%) invert(90%) contrast(90%);
  pointer-events: none;
}

.location-map.active iframe {
  pointer-events: auto;
}

/* Aviso que se ve mientras el mapa está "dormido" */
.location-map::after {
  content: "Tocá el mapa para moverlo";
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.75);
  color: var(--text-white);
  font-size: 0.8rem;
  pointer-events: none;
}

.location-map.active::after {
  display: none;
}
/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  padding: 70px 24px 50px;
  background: var(--bg-navy);
}

.contact-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-row:has(> :only-child) {
  grid-template-columns: 1fr;
}

.form-status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 20px;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.contact-form textarea { resize: vertical; }

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.btn-send {
  align-self: center;
  margin-top: 10px;
  padding: 12px 40px;
  border-radius: 8px;
  border: 1px solid var(--text-white);
  background: transparent;
  color: var(--text-white);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-send:hover {
  background: var(--text-white);
  color: var(--bg-black);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: auto;
  padding: 30px 30px 30px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}
/* =========================================================
   CHATBOT WHATSAPP
   ========================================================= */
.chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.06);
}

.chatbot-panel {
  width: 320px;
  max-width: calc(100vw - 48px);
  max-height: 460px;
  background: var(--bg-navy);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.chatbot.open .chatbot-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-black);
  border-bottom: 1px solid var(--border-soft);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chatbot-header-info strong {
  display: block;
  font-size: 0.9rem;
}

.chatbot-status {
  font-size: 0.75rem;
  color: #4ade80;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.chat-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--accent-blue);
  border-bottom-right-radius: 4px;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.chat-option-btn {
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--accent-blue);
  background: transparent;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-option-btn:hover {
  background: rgba(30, 111, 217, 0.2);
}

.chat-option-btn.whatsapp {
  border-color: #25d366;
  color: #25d366;
  font-weight: 600;
}

.chat-option-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-msg.typing-cursor::after {
  content: "▍";
  animation: cursor-blink 0.8s infinite;
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}


@media (max-width: 480px) {
  .chatbot {
    right: 16px;
    bottom: 16px;
  }

  .chatbot-panel {
    width: calc(100vw - 32px);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 720px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    gap: 10px;
    padding: 40px 24px 20px;
  }

  .hero-logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-logo img {
    height: auto;
    width: min(75vw, 320px);
  }
}

@media (max-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-navy);
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--border-soft);
    display: none;
    gap: 4px;
  }

  .nav.open { display: flex; }

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

@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 20px;
  }

  .product-circle {
    width: 120px;
    height: 120px;
  }
}