/*
Theme Name: Pradoria - Ecommerce Departamental Ecuador
Theme URI: https://pradoria.com
Author: Pradoria Retail Team
Description: Tema premium de alta gama para Pradoria. Diseñado específicamente para comercio electrónico y SEO orgánico en Ecuador con microinteracciones y animaciones de scroll.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: pradoria
*/

:root {
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --color-brand: #0f172a;        /* Slate 900 profundo */
  --color-brand-light: #1e293b;  /* Slate 800 */
  --color-accent: #d97706;       /* Amber 600 - Toque cálido comercial */
  --color-accent-hover: #b45309;
  --color-bg: #ffffff;
  --color-surface: #f8fafc;      /* Slate 50 */
  --color-surface-card: #ffffff;
  --color-border: #e2e8f0;       /* Slate 200 */
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;   /* Slate 500 */
  --color-success: #16a34a;      /* Green 600 */
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 20px 40px -8px rgba(15, 23, 42, 0.16);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brand);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Animaciones Reveal on Scroll - Seguras y a prueba de fallos */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-ready .reveal-on-scroll:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

html.js-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.12s; }
.delay-3 { transition-delay: 0.18s; }
.delay-4 { transition-delay: 0.24s; }
.delay-5 { transition-delay: 0.30s; }

/* Top Announcement Bar */
.pradoria-topbar {
  background: var(--color-brand);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0;
  text-align: center;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pradoria-topbar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pradoria-topbar-tag {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* Main Header */
.pradoria-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.pradoria-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.pradoria-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pradoria-logo span {
  color: var(--color-accent);
  font-size: 32px;
  line-height: 0;
}

.pradoria-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.pradoria-menu a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-brand-light);
  position: relative;
  padding: 6px 0;
}

.pradoria-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.pradoria-menu a:hover::after {
  width: 100%;
}

.pradoria-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: var(--transition-smooth);
}

.btn-whatsapp-header:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.03) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.hero-title {
  font-size: 54px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--color-brand);
}

.hero-title em {
  font-style: normal;
  color: var(--color-accent);
  position: relative;
}

.hero-lead {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-brand);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--color-brand-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-brand);
  font-size: 16px;
  font-weight: 700;
  padding: 15px 28px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand-light);
}

.hero-trust-icon {
  font-size: 20px;
}

.hero-visual-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.hero-card-title {
  font-size: 18px;
  font-weight: 700;
}

.hero-card-tag {
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-success);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Category Grid */
.categories-section {
  padding: 80px 0;
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-subtitle {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 38px;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 16px;
}

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

.category-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.category-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.category-card:hover .category-icon-box {
  background: var(--color-brand);
  color: #ffffff;
}

.category-title {
  font-size: 18px;
  margin-bottom: 6px;
}

.category-count {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Products Grid */
.products-section {
  padding: 90px 0;
}

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

.product-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 23, 42, 0.16);
}

.product-media {
  position: relative;
  background: #f1f5f9;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-media svg {
  width: 60%;
  height: 60%;
  opacity: 0.8;
  transition: transform 0.5s ease;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media svg,
.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-brand);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-stock-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(22, 163, 74, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.product-title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--color-brand);
}

.product-snippet {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.product-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  margin-bottom: 18px;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-price-now {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-brand);
}

.product-price-old {
  font-size: 15px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.btn-card-landing {
  background: var(--color-brand);
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.btn-card-landing:hover {
  background: var(--color-accent);
}

.btn-card-whatsapp {
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  transition: var(--transition-smooth);
}

.btn-card-whatsapp:hover {
  background: #1ebc59;
}

/* Trust & Authority Section */
.trust-section {
  padding: 80px 0;
  background: var(--color-brand);
  color: #ffffff;
}

.trust-section .section-title {
  color: #ffffff;
}

.trust-section .section-desc {
  color: #94a3b8;
}

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

.trust-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: var(--transition-smooth);
}

.trust-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.trust-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.trust-title {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 8px;
}

.trust-text {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Blog / Topic Clusters Section */
.blog-section {
  padding: 90px 0;
  background: var(--color-surface);
}

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

.blog-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.blog-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f1f5f9;
  display: block;
}

.blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-media img {
  transform: scale(1.05);
}

.blog-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.blog-title {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-brand);
}

.blog-link:hover {
  color: var(--color-accent);
  gap: 10px;
}

/* Testimonios */
.testimonials-section {
  padding: 80px 0;
}

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

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.testimonial-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 15px;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-brand);
}

.author-info h4 {
  font-size: 14px;
  font-weight: 700;
}

.author-info p {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Footer */
.pradoria-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: #94a3b8;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .pradoria-nav { height: 70px; }
  .pradoria-menu { display: none; }
  .hero-title { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
