/* ============================================
   HOME STYLES - Bilbao Consultores
   Estilos específicos de la página home
   ============================================ */

/* ===== HERO SECTION CON SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
  min-height: 600px;
}

.swiper-slide {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.swiper-slide .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 600px;
}

.slide-content {
  max-width: 800px;
  color: white;
  text-align: center;
  padding: 0 20px;
  margin: 0 auto;
}

.slide-content h1 {
  font-size: 52px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  margin-bottom: 24px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content .slide-intro {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: var(--font-weight-normal);
}

.slide-content h3 {
  font-size: var(--font-size-xl);
  color: white;
  margin-bottom: 20px;
  font-weight: var(--font-weight-medium);
}

.slide-content p {
  font-size: var(--font-size-base);
  line-height: 1.7;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.95);
}

.slide-image {
  display: none;
}

/* Swiper navigation arrows - Ocultos si solo hay 1 slide */
.swiper-button-prev,
.swiper-button-next,
.swiper-pagination {
  display: none;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 80px 0;
  background: var(--color-bg-white);
}

.services-section h2 {
  text-align: center;
  font-size: var(--font-size-3xl);
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background: var(--color-bg-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-item:hover .service-image img {
  transform: scale(1.05);
}

.service-item h4 {
  padding: 20px 25px 10px;
  font-size: var(--font-size-lg);
  color: var(--color-text-dark);
}

.service-item p {
  padding: 0 25px 20px;
  color: var(--color-text-body);
  line-height: 1.6;
  font-size: 15px;
}

.more-link {
  display: inline-block;
  margin: 0 25px 25px;
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.more-link::after {
  content: " →";
  transition: transform var(--transition-fast);
  display: inline-block;
}

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

.more-link:hover::after {
  transform: translateX(5px);
}

/* ===== MAIN SERVICES SECTION ===== */
.main-services {
  background: var(--color-bg-section);
  padding: 60px 0;
}

.main-services h2 {
  text-align: center;
  font-size: var(--font-size-3xl);
  margin-bottom: 30px;
}

.main-services .content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.main-services p {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text-body);
}

/* ===== STATS SECTION ===== */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.stat-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
}

.stat-icon svg {
  width: 32px;
  height: 32px;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 48px;
  font-weight: var(--font-weight-extrabold);
  color: white;
  margin-bottom: 8px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

/* Legacy stat-item styles (mantener por compatibilidad) */
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.stat-item h3 {
  font-size: 56px;
  font-weight: var(--font-weight-extrabold);
  color: white;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--font-weight-medium);
}

/* ===== LEGAL SERVICES SECTION ===== */
.legal-services-section {
  padding: 80px 0;
  background: var(--color-bg-white);
}

.legal-header {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
}

.legal-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.legal-header h2 {
  font-size: 40px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.legal-header p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-body);
}

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

.legal-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.legal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary);
}

.legal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.legal-number {
  font-size: 56px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  color: var(--color-bg-light);
  opacity: 0.4;
  transition: all var(--transition-base);
}

.legal-card:hover .legal-number {
  opacity: 0.6;
  color: var(--color-primary);
}

.legal-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(68, 160, 38, 0.08);
  border-radius: 12px;
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.legal-card:hover .legal-icon {
  background: var(--color-primary);
  color: white;
  transform: scale(1.05);
}

.legal-card h3 {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.legal-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-body);
  margin-bottom: 0;
  flex-grow: 1;
}

/* Legacy styles mantener por compatibilidad */
.legal-services {
  padding: 80px 0;
  background: var(--color-bg-white);
}

.legal-services h2 {
  text-align: center;
  font-size: var(--font-size-3xl);
  margin-bottom: 50px;
}

.legal-item {
  background: var(--color-bg-light);
  padding: 30px;
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--color-primary);
  transition: all var(--transition-base);
}

.legal-item:hover {
  background: var(--color-bg-white);
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.legal-item h4 {
  font-size: var(--font-size-md);
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

.legal-item p {
  font-size: 15px;
  color: var(--color-text-body);
  line-height: 1.7;
}

/* ===== PARTNERSHIPS SECTION ===== */
.partnerships {
  padding: 60px 0;
  background: var(--color-bg-section);
}

.partnerships h2 {
  text-align: center;
  font-size: var(--font-size-3xl);
  margin-bottom: 50px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.partner {
  background: var(--color-bg-white);
  padding: 30px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  max-width: 220px;
  width: 100%;
}

.partner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.partner img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-base);
}

.partner:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===== RECENT POSTS SECTION ===== */
.recent-posts-section {
  padding: 80px 0;
  background: var(--color-bg-light);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  gap: 40px;
}

.blog-header-content {
  flex: 1;
}

.blog-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.blog-header h2 {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  margin-bottom: 12px;
  line-height: 1.1;
}

.blog-header p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-body);
  max-width: 600px;
}

.blog-cta-link {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid var(--color-primary);
  display: inline-block;
}

.blog-cta-link:hover {
  background: var(--color-primary);
  color: white;
  transform: translateX(4px);
}

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

.blog-card {
  background: var(--color-bg-white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.blog-card-featured {
  grid-column: span 2;
  grid-row: span 2;
  padding: 36px;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-category {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(68, 160, 38, 0.1);
  color: var(--color-primary);
}

.blog-date {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: var(--font-weight-medium);
}

.blog-card h3 {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-card-featured h3 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.blog-card h3 a {
  color: var(--color-text-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Hace clicable toda la tarjeta (imagen, texto, "Leer más"), no solo el título */
.blog-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.blog-card:hover h3 a {
  color: var(--color-primary);
}

.blog-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-body);
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-featured p {
  font-size: 16px;
  line-height: 1.8;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
}

.blog-read-more {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card:hover .blog-read-more {
  gap: 8px;
}

/* Legacy styles */
.recent-posts {
  padding: 80px 0;
  background: var(--color-bg-white);
}

.recent-posts h2 {
  text-align: center;
  font-size: var(--font-size-3xl);
  margin-bottom: 50px;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.posts-list article {
  padding: 20px;
  border-left: 3px solid var(--color-primary);
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.posts-list article:hover {
  background: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}

.posts-list h4 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
}

.posts-list h4 a {
  color: var(--color-text-dark);
  transition: color var(--transition-fast);
}

.posts-list h4 a:hover {
  color: var(--color-primary);
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 767px) {
  .hero-slider {
    min-height: 500px;
  }

  .swiper {
    min-height: 500px;
  }

  .swiper-slide {
    min-height: 500px;
  }

  .swiper-slide .container {
    min-height: 500px;
  }

  .slide-content {
    max-width: 100%;
    padding: 0 15px;
  }

  .slide-content h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .slide-content .slide-intro {
    font-size: 16px;
    line-height: 1.5;
  }

  .slide-content h3 {
    font-size: 18px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 16px;
  }

  .services-section h2,
  .main-services h2,
  .legal-services h2,
  .partnerships h2,
  .recent-posts h2 {
    font-size: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .stats-grid {
    flex-direction: column;
    gap: 40px;
  }

  .stat-card {
    min-width: 100%;
    justify-content: flex-start;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-label {
    font-size: 15px;
  }

  .stat-item h3 {
    font-size: 42px;
  }

  .legal-header h2 {
    font-size: 32px;
  }

  .legal-header p {
    font-size: 16px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-card {
    padding: 28px 24px;
  }

  .legal-number {
    font-size: 48px;
  }

  .legal-icon {
    width: 48px;
    height: 48px;
  }

  .legal-icon svg {
    width: 24px;
    height: 24px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
  }

  .blog-header h2 {
    font-size: 32px;
  }

  .blog-header p {
    font-size: 16px;
  }

  .blog-cta-link {
    font-size: 14px;
    padding: 10px 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card-featured {
    grid-column: span 1;
    grid-row: span 1;
    padding: 28px;
  }

  .blog-card-featured h3 {
    font-size: 22px;
  }

  .blog-card-featured p {
    font-size: 15px;
  }
}

/* ===== RESPONSIVE TABLET ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-slider {
    min-height: 450px;
  }

  .swiper-slide {
    min-height: 450px;
  }

  .slide-content h1 {
    font-size: 44px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-header h2 {
    font-size: 38px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-card-featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}
