/*
Theme Name: Fine Art Ecuador
Theme URI: https://fineartec.com
Author: Fine Art Ecuador
Description: Tema personalizado Fine Art Ecuador
Version: 1.0
Text Domain: fineart-ecuador
*/

/* ── Variables globales ── */
:root {
  --brand: #d20a55;
  --brand-dark: #0e2038;
  --brand-light: rgba(210,10,85,0.08);
  --dark: #142d4b;
  --text: #1a1a1a;
  --text-2: #555;
  --text-3: #999;
  --border: #e8e8e8;
  --bg: #f7f7f7;
  --white: #fff;
}

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

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ── WordPress core reset ── */
.wp-block-image, .wp-block-paragraph { margin: 0; }
.entry-content { max-width: 100%; }
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* ── Navbar ── */
nav { position: sticky; top: 0; z-index: 200; background: white; }

/* ── Hero ── */
.hero {
  background: var(--dark);
  padding: 100px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(210,10,85,0.18) 0%, transparent 65%);
}
.hero-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
  position: relative;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  font-weight: 700;
  color: white;
  line-height: 1.12;
  max-width: 700px;
  margin: 0 auto 20px;
  position: relative;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.52);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.75;
  position: relative;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.btn-primary {
  background: var(--brand);
  color: white;
  padding: 15px 36px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background .15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--brand-dark); color: white; }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.8);
  padding: 14px 30px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  display: inline-block;
}
.btn-ghost:hover { border-color: white; color: white; }

/* ── Secciones generales ── */
.section { padding: 80px 48px; }
.section-dark { background: var(--dark); }
.section-gray { background: var(--bg); }

.sec-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.sec-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 48px;
}

/* ── Cards de productos ── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.prod-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.prod-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
  transform: translateY(-4px);
}
.prod-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-info { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.prod-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.prod-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.prod-price { font-size: 13px; color: var(--text-2); font-weight: 600; }
.prod-btn {
  background: var(--dark);
  color: white;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}
.prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Layout wrap ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ── Galería de producto ── */
.lb-main-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f5f5f5;
  position: relative;
  margin-bottom: 14px;
  width: 100%;
}
.lb-main-img img, .lb-main-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Testimonios ── */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.test-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}
.test-stars { color: #f5a623; font-size: 16px; margin-bottom: 12px; }
.test-text { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.test-name { font-weight: 700; color: var(--dark); font-size: 14px; }

/* ── Footer ── */
footer { background: var(--dark); padding: 56px 48px 32px; }
footer a:hover { color: white !important; }

/* ── WooCommerce básico ── */
.woocommerce .fineart-woo-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 40px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; list-style: none; padding: 0; }
.woocommerce ul.products li.product { background: white; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; transition: all .25s; }
.woocommerce ul.products li.product:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.woocommerce ul.products li.product img { width: 100%; height: 220px; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: 'Playfair Display',serif; font-size: 18px; color: var(--dark); padding: 16px 16px 0; }
.woocommerce ul.products li.product .price { color: var(--brand); font-weight: 700; padding: 8px 16px; font-size: 16px; }
.woocommerce ul.products li.product .button { background: var(--dark); color: white; border-radius: 6px; padding: 8px 16px; margin: 0 16px 16px; display: inline-block; font-weight: 700; font-size: 13px; }
.woocommerce .woocommerce-message { background: rgba(210,10,85,.08); border-color: var(--brand); color: var(--dark); }
.woocommerce button.button, .woocommerce input.button { background: var(--brand) !important; color: white !important; border-radius: 6px; font-weight: 700; }
.woocommerce button.button:hover { background: var(--brand-dark) !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(2,1fr); }
  .test-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .hero { padding: 60px 24px; }
  .prod-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  footer { padding: 40px 24px 24px; }
}
