/* ══════════════════════════════════════════
   TERRANOVA IMPERIAL — styles.css
   ══════════════════════════════════════════ */

/* ─── Variables ─── */




:root {
  --blue-dark:  #0d1f3c;
  --blue-main:  #1a4494;
  --blue-mid:   #2563c8;
  --blue-light: #3b82f6;
  --green-wa:   #25d366;
  --green-wa-h: #1fb855;
  --white:      #ffffff;
  --gray-50:    #f5f7fa;
  --gray-100:   #eaeff5;
  --gray-300:   #c8d4e3;
  --gray-600:   #4b6180;
  --gray-800:   #1e2e42;

  /* Colores únicos por imagen de producto */
  --img-blue:   #dbeafe;   /* Detergentes */
  --img-green:  #d1fae5;   /* Desinfectantes */
  --img-amber:  #fef3c7;   /* Papel */
  --img-slate:  #e2e8f0;   /* Accesorios */

  --font-head: 'Barlow Condensed', 'Barlow', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --radius: 10px;
  --shadow: 0 4px 20px rgba(13,31,60,.10);
  --shadow-md: 0 8px 32px rgba(13,31,60,.16);
  --transition: .22s ease;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.55;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }


/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-whatsapp {
  background: var(--green-wa);
  color: var(--white);
  border: none;
}
.btn-whatsapp:hover {
  background: var(--green-wa-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 2px solid var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--blue-main);
  color: var(--blue-main);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
}

.btn-primary {
  background: var(--blue-mid);
  color: var(--white);
  border: none;
  padding: 13px 32px;
  font-size: 15px;
}
.btn-primary:hover {
  background: var(--blue-main);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn i { width: 17px; height: 17px; }

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 2px 10px rgba(13,31,60,.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100px;
}

/* Logo */
.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 90px;
  height: auto;   /* mantiene proporción */
  margin-left: auto;
  margin-right: 0;
  display: block; /* asegura que se comporte como bloque */
}

.logo-icon { font-size: 32px; }
.logo-name {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: .5px;
  line-height: 1.1;
}
.logo-sub {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  color: var(--blue-mid);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover {
  color: var(--blue-mid);
  border-bottom-color: var(--blue-mid);
}

/* Nav actions */
.nav-actions {
  display: flex;
  gap: 10px;
  margin-left: 24px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero-text {
  text-align: left;        /* alinea todo el texto a la izquierda */
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente dentro del hero */
  align-items: flex-start; /* asegura que los botones también queden a la izquierda */
  padding-left: 10px;      /* opcional: agrega espacio desde el borde izquierdo */
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero image placeholder */
.hero-img-placeholder {
  width: 100%;
  min-height: 100%;
  border-radius: var(--radius);
  background: rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  line-height: 2;
  color: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
}
.hero-img-placeholder small {
  display: block;
  font-size: 12px;
  opacity: .6;
  margin-top: 6px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0; /* elimina el espacio entre texto e imagen */
  align-items: stretch; /* hace que ambas columnas tengan la misma altura */
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* llena todo el espacio sin deformarse */
  border-radius: 0; /* opcional: elimina bordes redondeados */
  box-shadow: none; /* opcional: elimina sombra si no la quieres */
}

.hero {
  background: url("images/img-inicio.png") center/cover no-repeat;
  color: var(--white);
  padding: 120px 0; /* ajusta el alto del hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ═══════════════════════════════════
   FEATURES — ¿Por qué elegirnos?
═══════════════════════════════════ */
.features {
  background: var(--gray-50);
  padding: 64px 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  text-align: center;
  color: var(--blue-dark);
  letter-spacing: .5px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--blue-mid);
}
.feature-icon i { width: 26px; height: 26px; }

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ═══════════════════════════════════
   PRODUCTS
═══════════════════════════════════ */
.products {
  background: var(--white);
  padding: 64px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
 
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

/* ── Placeholders de colores diferentes por imagen ── */
.product-img {
  width: 100%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-size: 28px;
  line-height: 1.5;
}
.product-img small {
  display: block;
  font-size: 11px;
  color: rgba(0,0,0,.45);
  margin-top: 6px;
}


/* Cuando pongas imágenes reales usa esta clase en el <img> */
.product-img-real {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 16px;
}
.product-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.product-info p {
  font-size: 13px;
  color: var(--gray-600);
}

.products-cta {
  text-align: center;
}

/* ═══════════════════════════════════
   CLIENTS — ¿A quién atendemos?
═══════════════════════════════════ */
.clients {
  background: var(--gray-50);
  padding: 64px 0;
}

.clients-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.clients-left h2 {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 28px;
}

.clients-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.clients-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
}
.clients-list li i {
  width: 20px;
  height: 20px;
  color: var(--blue-mid);
  flex-shrink: 0;
}

.clients-note {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 6px;
}

/* Right column */
.clients-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.clients-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 6px;
}
.clients-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}
.clients-highlights li i {
  width: 18px;
  height: 18px;
  color: var(--blue-mid);
}

/* Imagen de reparto placeholder */
.delivery-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  background: var(--img-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-size: 28px;
}
.delivery-img small {
  font-size: 11px;
  color: var(--gray-600);
  margin-top: 6px;
}

/* Imagen real — cuando la tengas */
.delivery-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* ═══════════════════════════════════
   CTA BAR
═══════════════════════════════════ */
.cta-bar {
  background: var(--blue-dark);
  padding: 28px 0;
}

.cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cta-text strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.cta-text span {
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
  background: #09182e;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.footer-logo .logo-name { font-size: 18px; color: var(--white); }
.footer-logo .logo-sub  { color: var(--blue-light); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a,
.footer-links span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-links i { width: 15px; height: 15px; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 992px) {
  .features-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner,
  .clients-inner {
    grid-template-columns: 1fr;
  }
  .hero-img-placeholder,
  .hero-image img { min-height: 240px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    z-index: 99;
    gap: 18px;
  }
  .nav-links.open + .nav-actions {
    display: flex;
    flex-direction: column;
    padding: 0 24px 20px;
    background: var(--white);
    position: absolute;
    top: calc(68px + 120px);
    left: 0;
    right: 0;
    z-index: 99;
  }
  .hamburger { display: flex; }
  .navbar { position: relative; }

  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .products-grid  { grid-template-columns: 1fr 1fr; gap: 14px; }

  .cta-bar-inner { flex-direction: column; text-align: center; }
  .footer-inner  { flex-direction: column; align-items: flex-start; }
  .footer-links  { flex-direction: column; gap: 14px; }
}

/* ═══════════════════════════════════
   ANIMACIONES JS (fade-in)
═══════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav link activo */
.nav-links a.active {
  color: var(--blue-mid);
  border-bottom-color: var(--blue-mid);
}

/* Hamburger animado cuando está abierto */
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 480px) {
  .features-grid,
  .products-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
}
