/* ═══════════════════════════════════════════════════════════
   CALESAN — HOME PAGE CSS
   Solo para index / landing
   <link rel="stylesheet" href="/css/calesan.home.css">
═══════════════════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  background: var(--bg2);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background: var(--bg);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-light);
  border: 1px solid var(--red-mid);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text2);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-primary-lg:hover {
  background: var(--red-h);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,40,26,0.28);
}
.btn-primary-lg svg { width: 18px; height: 18px; }
.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border2);
  color: var(--text2);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--r);
  background: var(--bg2);
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}
.btn-outline-lg:hover { border-color: var(--text); color: var(--text); }
.btn-outline-lg svg { width: 16px; height: 16px; }
.webpay-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--webpay-l);
  border: 1px solid #B8C8E8;
  border-radius: var(--r);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--webpay);
}
.webpay-hero-badge svg { width: 18px; height: 18px; }
.hero-stats { display: flex; gap: 32px; padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-stat-num {
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.hero-stat-num span { color: var(--red); }
.hero-stat-label { font-size: 12px; color: var(--text3); margin-top: 4px; font-weight: 500; }
.hero-right { display: flex; flex-direction: column; gap: 16px; }
.hero-banner-img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-trust-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trust-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.trust-card-icon {
  width: 36px; height: 36px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.trust-card-icon.red   { background: var(--red-light); color: var(--red); }
.trust-card-icon.blue  { background: var(--steel-l);   color: var(--steel); }
.trust-card-icon.green { background: var(--green-l);   color: var(--green); }
.trust-card-icon.gold  { background: #FDF6E3;          color: var(--gold); }
.trust-card-icon svg { width: 18px; height: 18px; }
.trust-card-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.trust-card-desc  { font-size: 12px; color: var(--text3); line-height: 1.4; }

/* ── BENEFICIOS ── */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}
.benefit-card:hover { box-shadow: var(--shadow); border-color: var(--border2); transform: translateY(-3px); }
.benefit-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.benefit-icon.red   { background: var(--red-light); color: var(--red); }
.benefit-icon.blue  { background: var(--steel-l);   color: var(--steel); }
.benefit-icon.green { background: var(--green-l);   color: var(--green); }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.benefit-text  { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* ── WEBPAY SECTION ── */
.webpay-section { background: var(--webpay); padding: 64px 0; position: relative; overflow: hidden; }
.webpay-section::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.webpay-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.webpay-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.webpay-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.webpay-desc { font-size: 16px; color: rgba(255,255,255,0.8); line-height: 1.65; margin-bottom: 32px; }
.webpay-features { display: flex; flex-direction: column; gap: 12px; }
.webpay-feat { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); }
.webpay-feat-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.webpay-feat-icon svg { width: 14px; height: 14px; color: #fff; }
.webpay-card-visual {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-xl);
  padding: 32px;
}
.wc-logo-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.wc-logo-getnet { font-family: var(--f-display); font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.wc-logo-getnet span { color: #A8D4FF; }
.wc-transbank { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: none; }
.wc-steps { display: flex; flex-direction: column; gap: 12px; }
.wc-step { display: flex; align-items: center; gap: 12px; }
.wc-step-num {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.wc-step-text { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }
.wc-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 20px 0; }
.wc-security { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.6); }
.wc-security svg { width: 14px; height: 14px; color: #7DC887; }
.payment-methods { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.pm-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.8); letter-spacing: 0.04em;
}

/* ── PRODUCTS GRID (landing) ── */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card.featured { grid-column: span 2; flex-direction: row; }
.product-card.featured .product-img-area {
  width: 200px; height: auto;
  flex-shrink: 0;
  border-bottom: none;
  border-right: 1px solid var(--border);
}
.product-card.featured .product-info { padding: 28px; }
.product-card.featured .product-name { font-size: 19px; margin-bottom: 8px; }

/* ── FAQ GRID (landing) ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── CONTACT (landing) ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.form-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.form-sub   { font-size: 14px; color: var(--text3); margin-bottom: 28px; }
.form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.cm {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.cm:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.cm-icon {
  width: 38px; height: 38px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cm-icon.red   { background: var(--red-light); color: var(--red); }
.cm-icon.green { background: var(--green-l);   color: var(--green); }
.cm-icon.blue  { background: var(--steel-l);   color: var(--steel); }
.cm-icon svg   { width: 18px; height: 18px; }
.cm-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text3); }
.cm-value { font-size: 14px; font-weight: 600; color: var(--text); }
.contact-title { font-family: var(--f-display); font-size: clamp(30px,3vw,44px); font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1.1; margin-bottom: 16px; }
.contact-title em { font-style: normal; color: var(--red); }
.contact-desc { font-size: 16px; color: var(--text2); line-height: 1.65; margin-bottom: 32px; }

/* ── RESPONSIVE HOME ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card.featured { grid-column: span 2; }
  .webpay-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero::before { display: none; }
  .hero-trust-cards { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr; gap: 14px; }
  .products-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: span 1; flex-direction: column; }
  .product-card.featured .product-img-area { width: 100%; height: 160px; border-right: none; border-bottom: 1px solid var(--border); }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { gap: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

.product-img-area {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.product-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* llena el área sin distorsionar */
    object-position: center;
    display: block;
}