/*
Theme Name: Importadora El Sol
Theme URI: https://importadoraelsol.do
Author: Importadora El Sol
Author URI: https://importadoraelsol.do
Description: Tema profesional y responsive para Importadora El Sol – tienda de ropa y calzados en Santo Domingo. Optimizado para Bluehost. Diseño moderno con integración WhatsApp, mapa y contacto.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: importadora-el-sol
Tags: custom-menu, custom-logo, featured-images, one-column, responsive-layout, translation-ready, business, e-commerce
*/

/* ========================================
   Importadora El Sol - Main Styles
   ======================================== */

:root {
  --primary: #F59E0B;
  --primary-dark: #D97706;
  --primary-light: #FBBF24;
  --secondary: #1E3A5F;
  --secondary-light: #2C5282;
  --accent: #EF4444;
  --success: #10B981;
  
  --text: #1F2937;
  --text-light: #6B7280;
  --text-muted: #9CA3AF;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --bg-dark: #111827;
  --border: #E5E7EB;
  
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  
  --header-height: 72px;
  --container: 1140px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: #fff;
  color: var(--secondary);
  border-color: #fff;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-1px);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo-icon {
  font-size: 28px;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-weight: 700;
  font-size: 16px;
  color: var(--secondary);
}

.logo-sub {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-list {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: rgba(245, 158, 11, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1E3A5F 0%, #2C5282 50%, #1A365D 100%);
  color: #fff;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary-light);
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Sections */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary-dark);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Categories */
.categories {
  background: var(--bg-alt);
}

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

.category-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 158, 11, 0.3);
}

.category-card.featured {
  background: linear-gradient(145deg, #1E3A5F, #2C5282);
  color: #fff;
  border: none;
}

.category-card.featured .category-link {
  color: var(--primary-light);
}

.category-card.featured p {
  color: rgba(255, 255, 255, 0.8);
}

.category-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.category-icon {
  font-size: 42px;
  margin-bottom: 16px;
  line-height: 1;
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.category-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-dark);
}

.category-link:hover {
  color: var(--primary);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.about-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.about-features strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.about-features span {
  font-size: 13px;
  color: var(--text-light);
}

.about-card {
  background: linear-gradient(145deg, #F59E0B, #D97706);
  border-radius: var(--radius-lg);
  padding: 4px;
  box-shadow: var(--shadow-lg);
}

.about-card-inner {
  background: #fff;
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 36px 28px;
  text-align: center;
}

.about-card-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.about-address {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-hours {
  text-align: left;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  font-size: 14px;
}

.about-hours p {
  margin-bottom: 8px;
  color: var(--text);
}

.about-hours ul {
  color: var(--text-light);
}

.about-hours li {
  margin-bottom: 4px;
}

/* Location */
.location {
  background: var(--bg-alt);
}

.map-container {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px;
}

.map-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.map-info-item strong {
  color: var(--secondary);
  font-size: 13px;
}

.map-info-item a {
  color: var(--primary-dark);
  font-weight: 500;
}

.map-info-item a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-method:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.contact-method-icon.whatsapp { background: rgba(37, 211, 102, 0.15); }
.contact-method-icon.phone { background: rgba(59, 130, 246, 0.12); }
.contact-method-icon.email { background: rgba(245, 158, 11, 0.15); }
.contact-method-icon.ig { background: rgba(225, 48, 108, 0.12); }

.contact-method strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-method span {
  font-size: 13px;
  color: var(--text-light);
}

.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-main {
  color: #fff;
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-contact a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary-light);
}

.footer-contact li {
  font-size: 14px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.social-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}

/* WordPress specific */
.wp-block-image img,
.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 4px;
  }
  
  .nav-link {
    display: block;
    padding: 12px 16px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-actions .btn-whatsapp {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 110px 0 70px;
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 24px 20px;
  }
}
