/* ================================
   Sembrando Capital Nuevo - Styles
   ================================ */

:root {
  --color-primary: #10b981;
  --color-primary-dark: #059669;
  --color-secondary: #1e3a8a;
  --color-secondary-dark: #172554;
  --color-accent: #f59e0b;
  --color-light: #f3f4f6;
  --color-white: #ffffff;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--color-secondary);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--color-accent); }

.section-padding { padding: 80px 0; }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 15px auto 0;
}

/* Navbar */
.navbar-custom {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 15px 0;
}
.navbar-custom.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow-md);
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-secondary) !important;
}
.navbar-brand span { color: var(--color-primary); }
.navbar-custom .nav-link {
  color: var(--color-text) !important;
  font-weight: 500;
  margin: 0 8px;
  position: relative;
}
.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { width: 80%; }
.navbar-custom .nav-link:hover { color: var(--color-primary) !important; }

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}
.btn-outline-custom {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.btn-outline-custom:hover {
  background: var(--color-secondary);
  color: white;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(30,58,138,0.9) 0%, rgba(16,185,129,0.85) 100%),
              url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=1600&q=80') center/cover;
  color: white;
  padding: 140px 0 100px;
  text-align: center;
}
.hero h1 { color: white; margin-bottom: 1.5rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Cards */
.card-custom {
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  background: white;
}
.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card-custom .card-img-top {
  height: 220px;
  object-fit: cover;
}
.card-custom .card-body { padding: 1.75rem; }
.card-custom .card-title {
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: white;
  font-size: 1.8rem;
}

/* Stats */
.stats-section {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: white;
  padding: 60px 0;
}
.stat-item h3 {
  color: var(--color-accent);
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}
.stat-item p { color: rgba(255,255,255,0.9); font-size: 1rem; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 70px 0;
  text-align: center;
}
.cta-section h2 { color: white; }
.cta-section p { font-size: 1.15rem; margin-bottom: 2rem; }

/* Footer */
.footer {
  background: var(--color-secondary-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 20px;
}
.footer h5 { color: white; margin-bottom: 1.25rem; font-size: 1.15rem; }
.footer a { color: rgba(255,255,255,0.8); }
.footer a:hover { color: var(--color-accent); }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 8px;
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, rgba(30,58,138,0.92) 0%, rgba(16,185,129,0.85) 100%),
              url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1600&q=80') center/cover;
  color: white;
  padding: 120px 0 60px;
  text-align: center;
}
.page-header h1 { color: white; }
.page-header p { font-size: 1.15rem; }

/* Team */
.team-member {
  text-align: center;
  padding: 20px;
}
.team-member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid var(--color-primary);
}

/* Values */
.value-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--color-light);
  border-radius: 15px;
  transition: var(--transition);
  height: 100%;
}
.value-item:hover {
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.value-item i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Process */
.process-step {
  text-align: center;
  padding: 20px;
  position: relative;
}
.process-step .step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-accent), #d97706);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  font-family: 'Playfair Display', serif;
}

/* Blog */
.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.blog-card img { height: 220px; object-fit: cover; width: 100%; }
.blog-card .blog-body { padding: 1.5rem; }
.blog-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}
.blog-meta i { color: var(--color-primary); margin-right: 4px; }

.pagination .page-link {
  color: var(--color-secondary);
  border-radius: 8px;
  margin: 0 3px;
  border: 1px solid var(--color-border);
}
.pagination .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Form */
.form-control-custom {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 15px;
  transition: var(--transition);
}
.form-control-custom:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(16,185,129,0.25);
}
.form-label { font-weight: 500; color: var(--color-text); }

/* Legal pages */
.legal-content h2 { font-size: 1.75rem; margin-top: 2rem; }
.legal-content h3 { font-size: 1.35rem; margin-top: 1.5rem; }
.legal-content p, .legal-content li { color: var(--color-text); line-height: 1.8; }
.legal-content ul { margin-bottom: 1.25rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  padding: 20px;
  z-index: 9999;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 15px; font-size: 0.95rem; }
.cookie-banner .btn { margin: 0 5px; }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 100px 0 70px; }
  .section-padding { padding: 60px 0; }
  .page-header { padding: 100px 0 50px; }
}