/*
Theme Name: Astra Child IdeaPadel
Template: astra
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;800&family=Inter:wght@300;400;500&display=swap');

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #666;
  --color-accent: #0066cc;
  --color-accent-hover: #0052a3;
  --color-border: #e5e7eb;
  --color-dark: #111827;
}

* { box-sizing: border-box; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0;
}

/* ── HEADER ─────────────────────────── */
.site-header, #masthead {
  background: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid var(--color-border);
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.ast-container { max-width: 1180px !important; }

.site-title a {
  font-family: 'Barlow', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark) !important;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.main-navigation a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #444 !important;
  padding: 8px 14px;
}

.main-navigation a:hover { color: var(--color-accent) !important; }

/* ── HERO ────────────────────────────── */
.ip-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ip-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1554068865-24cecd4e34b8?w=1600&q=80');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.45);
}

.ip-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.ip-hero-text {
  flex: 1;
  max-width: 580px;
}

.ip-hero-text h1 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.05;
}

.ip-hero-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

.ip-hero-text .btn-cta {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 36px;
  text-decoration: none;
  transition: background 0.2s;
}

.ip-hero-text .btn-cta:hover { background: var(--color-accent-hover); }

/* Tarjeta formulario */
.ip-hero-card {
  background: white;
  border-radius: 4px;
  padding: 36px 32px;
  width: 340px;
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.ip-hero-card h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.ip-hero-card p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.ip-hero-card label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.ip-hero-card label span { color: #e53e3e; }

.ip-hero-card input[type="text"],
.ip-hero-card input[type="email"] {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.ip-hero-card input:focus { border-color: var(--color-accent); }

.ip-hero-card button {
  width: 100%;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 3px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.ip-hero-card button:hover { background: var(--color-accent-hover); }

.ip-hero-card .form-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 0;
}

/* ── SECCIÓN PRODUCTOS ────────────────── */
.ip-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.ip-section-title {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.ip-section-sub {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.ip-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.ip-card {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: white;
}

.ip-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.ip-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.ip-card-body { padding: 22px; }

.ip-card-body h3 {
  font-size: 17px;
  margin-bottom: 10px;
  font-weight: 700;
}

.ip-card-body p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.btn-afiliado {
  display: inline-block;
  background: var(--color-accent);
  color: white !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 11px 24px;
  text-decoration: none !important;
  transition: background 0.2s;
  border-radius: 3px;
}

.btn-afiliado:hover { background: var(--color-accent-hover) !important; }

/* ── SECCIÓN REGALOS ──────────────────── */
.ip-gifts-section {
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 72px 24px;
  text-align: center;
}

.ip-gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 40px auto 0;
}

.ip-gift-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 28px 20px;
  transition: box-shadow 0.2s;
}

.ip-gift-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.ip-gift-item .icon { font-size: 32px; margin-bottom: 10px; }

.ip-gift-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ip-gift-item p { font-size: 13px; color: var(--color-text-light); margin: 0; }

/* ── ARTÍCULOS ────────────────────────── */
.entry-title {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 1rem;
}

.entry-content { max-width: 760px; margin: 0 auto; }

.entry-content h2 {
  font-size: 24px;
  margin-top: 2.5rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 8px;
}

.entry-content h3 { font-size: 19px; margin-top: 1.8rem; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 15px;
}

.entry-content th {
  background: var(--color-dark);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 16px;
  text-align: left;
}

.entry-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
}

.entry-content tr:nth-child(even) td { background: #f8fafc; }

/* ── FOOTER ───────────────────────────── */
.site-footer {
  background: var(--color-dark);
  color: #9ca3af;
  font-size: 13px;
  padding: 40px 24px;
  text-align: center;
}

.site-footer a { color: #d1d5db; }

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 768px) {
  .ip-hero-inner { flex-direction: column; padding: 60px 20px; }
  .ip-hero-card { width: 100%; }
  .ip-hero { min-height: auto; }
}
