/* ==========================================================================
   FAIPA - FEDERACIÓN ARGENTINA DE LA INDUSTRIA DEL PAN Y AFINES
   Custom Design System & Stylesheet matching DISEÑO specification
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --faipa-green-dark: #1B3B22;
  --faipa-green-header: #1E3B27;
  --faipa-green-accent: #2C5E3B;
  --faipa-gold: #D49A24;
  --faipa-gold-hover: #B88219;
  --faipa-blue-cta: #4EB6F2;
  --faipa-blue-dark: #1E6B9E;
  --faipa-bg-cream: #F9F6F0;
  --faipa-bg-card: #FFFFFF;
  --faipa-text-dark: #1A1A1A;
  --faipa-text-muted: #555555;
  --faipa-border-radius: 16px;
  --faipa-shadow-sm: 0 4px 12px rgba(27, 59, 34, 0.06);
  --faipa-shadow-md: 0 8px 24px rgba(27, 59, 34, 0.10);
  --faipa-shadow-lg: 0 16px 36px rgba(27, 59, 34, 0.14);
}

/* Outer background around the boxed site container */
body.bg-outer-site {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #E2E4E8;
  color: var(--faipa-text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Site Wrapper: Enforces Header, Body, and Footer alignment to the exact same width */
.site-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  background-color: var(--faipa-bg-cream);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main-content {
  flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   Header & Navbar
   -------------------------------------------------------------------------- */
.faipa-navbar {
  background-color: var(--faipa-green-header);
  border-bottom: 3px solid var(--faipa-gold);
  padding: 0.8rem 1rem;
}

/* Header Logo Image on the Left */
.faipa-header-logo {
  height: 180px;
  width: 190px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.faipa-header-logo:hover {
  transform: scale(1.02);
}

.faipa-nav-link {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  padding: 0.6rem 0.9rem !important;
  text-transform: uppercase;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.faipa-nav-link:hover,
.faipa-nav-link.active {
  color: var(--faipa-gold) !important;
}

.dropdown-menu.faipa-dropdown {
  background-color: var(--faipa-green-dark);
  border: 1px solid var(--faipa-gold);
  border-radius: 10px;
  box-shadow: var(--faipa-shadow-md);
  padding: 0.5rem 0;
}

.dropdown-menu.faipa-dropdown .dropdown-item {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  transition: all 0.2s ease;
}

.dropdown-menu.faipa-dropdown .dropdown-item:hover {
  background-color: var(--faipa-green-accent);
  color: var(--faipa-gold);
}

/* --------------------------------------------------------------------------
   Hero Section (Inicio)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #FAF7F2 0%, #F5ECE0 100%);
  padding: 0 0 2rem 0;
  overflow: hidden;
}

.hero-content-col {}

.hero-subtitle {
  color: var(--faipa-text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero-title {
  color: var(--faipa-green-dark);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-description {
  color: var(--faipa-text-muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 1.8rem;
}

.btn-faipa-cta {
  background-color: var(--faipa-blue-cta);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  border: none;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(78, 182, 242, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-faipa-cta:hover {
  background-color: #38a4e3;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(78, 182, 242, 0.5);
}

.stats-container {
  display: flex;
  gap: 1.75rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: rgba(212, 154, 36, 0.15);
  color: var(--faipa-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--faipa-green-dark);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--faipa-text-muted);
  font-weight: 500;
  line-height: 1.2;
}

.hero-image-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  object-position: right top;
}

/* --------------------------------------------------------------------------
   Action Cards Section (Guía, Empleos, Capacitación)
   -------------------------------------------------------------------------- */
.action-cards-section {
  padding: 2.5rem 0;
}

.action-card {
  border-radius: var(--faipa-border-radius);
  overflow: hidden;
  position: relative;
  color: #ffffff;
  height: 100%;
  min-height: 240px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--faipa-shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-size: cover;
  background-position: center;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--faipa-shadow-lg);
}

.action-card-green {
  background: linear-gradient(135deg, rgba(27, 59, 34, 0.95) 0%, rgba(30, 59, 39, 0.85) 100%);
}

.action-card-blue {
  background: linear-gradient(135deg, rgba(30, 107, 158, 0.95) 0%, rgba(20, 80, 120, 0.85) 100%);
}

.action-card-gold {
  background: linear-gradient(135deg, rgba(197, 139, 27, 0.95) 0%, rgba(160, 110, 18, 0.85) 100%);
}

.action-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.action-card-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.action-card-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.btn-card-action {
  align-self: flex-start;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 50px;
  padding: 0.45rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-action:hover {
  background-color: #ffffff;
  color: var(--faipa-text-dark);
}

/* --------------------------------------------------------------------------
   Novedades Section
   -------------------------------------------------------------------------- */
.novedades-section {
  padding: 2.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.section-title {
  color: var(--faipa-green-dark);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background-color: var(--faipa-gold);
  border-radius: 2px;
  margin-top: 4px;
}

.view-all-link {
  color: var(--faipa-green-dark);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.view-all-link:hover {
  color: var(--faipa-gold);
}

.novedad-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--faipa-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.novedad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--faipa-shadow-md);
}

.novedad-img {
  height: 170px;
  object-fit: cover;
  width: 100%;
}

.novedad-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.novedad-fecha {
  color: var(--faipa-blue-cta);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.novedad-title {
  color: var(--faipa-green-dark);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.novedad-desc {
  color: var(--faipa-text-muted);
  font-size: 0.88rem;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.read-more-link {
  color: var(--faipa-blue-dark);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   FAQ Callout Section
   -------------------------------------------------------------------------- */
.faq-callout-card {
  background: linear-gradient(90deg, #EAE5DB 0%, #DED8CC 100%);
  border-radius: 18px;
  padding: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 0;
  box-shadow: var(--faipa-shadow-sm);
}

.faq-callout-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--faipa-green-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.faq-callout-title {
  color: var(--faipa-green-dark);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.faq-callout-text {
  color: var(--faipa-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Page Header Banners (Historia, Autoridades, Entidades)
   -------------------------------------------------------------------------- */
.page-banner {
  background: linear-gradient(135deg, #FAF7F2 0%, #E7D7C1 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--faipa-gold);
}

.page-banner-title {
  color: var(--faipa-green-dark);
  font-size: 2.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  position: relative;
}

.page-banner-title::after {
  content: '';
  display: block;
  width: 55px;
  height: 4px;
  background-color: var(--faipa-gold);
  border-radius: 2px;
  margin-top: 6px;
}

.page-banner-subtitle {
  color: var(--faipa-text-dark);
  font-size: 1.2rem;
  font-weight: 600;
  max-width: 600px;
}

.page-banner-img {
  max-height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Timeline (Historia)
   -------------------------------------------------------------------------- */
.timeline-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin: 3.5rem 0 2rem 0;
  padding: 0 0.5rem;
}

.timeline-line {
  position: absolute;
  top: 36px;
  left: 5%;
  right: 5%;
  height: 3px;
  background-color: var(--faipa-gold);
  z-index: 1;
}

.timeline-node {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
  padding: 0 0.4rem;
}

.timeline-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--faipa-gold);
  color: var(--faipa-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 0.85rem auto;
  box-shadow: var(--faipa-shadow-sm);
  transition: transform 0.3s ease;
}

.timeline-node:hover .timeline-icon-box {
  transform: scale(1.08);
  background-color: var(--faipa-green-dark);
  color: var(--faipa-gold);
}

.timeline-year {
  color: var(--faipa-green-dark);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.timeline-desc {
  color: var(--faipa-text-muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Autoridades (Comisión Directiva)
   -------------------------------------------------------------------------- */
.autoridad-card {
  background-color: transparent;
  text-align: center;
  margin-bottom: 2rem;
}

.autoridad-avatar-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.1rem auto;
  border-radius: 50%;
  border: 4px solid var(--faipa-green-dark);
  overflow: hidden;
  box-shadow: var(--faipa-shadow-md);
  background-color: #e2e8f0;
}

.autoridad-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.autoridad-cargo-badge {
  display: inline-block;
  background-color: var(--faipa-gold);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.45rem;
  box-shadow: 0 2px 6px rgba(212, 154, 36, 0.3);
}

.autoridad-nombre {
  color: var(--faipa-green-dark);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.autoridad-provincia {
  color: var(--faipa-text-muted);
  font-size: 0.83rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Entidades Asociadas
   -------------------------------------------------------------------------- */
.entidad-card {
  background-color: #F4EFE6;
  border-radius: 18px;
  padding: 1.6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--faipa-shadow-sm);
  border: 1px solid rgba(212, 154, 36, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entidad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--faipa-shadow-md);
}

.entidad-nombre {
  color: var(--faipa-green-dark);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  line-height: 1.3;
}

.entidad-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--faipa-text-muted);
  margin-bottom: 0.6rem;
}

.entidad-detail-icon {
  color: var(--faipa-gold);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.faipa-footer {
  background-color: var(--faipa-green-dark);
  color: #ffffff;
  padding: 3rem 1rem 1.5rem 1rem;
  border-top: 4px solid var(--faipa-gold);
  margin-top: 3rem;
}

/* Footer Logo Image on the Right side */
.faipa-footer-logo {
  height: 160px;
  max-height: 160px;
  width: auto;
  object-fit: contain;
}

.footer-title {
  color: var(--faipa-gold);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--faipa-gold);
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E2E8F0;
  font-size: 0.88rem;
}

.footer-contact-icon {
  color: var(--faipa-gold);
  font-size: 1.05rem;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-icon:hover {
  background-color: var(--faipa-gold);
  color: var(--faipa-green-dark);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: #A0AEC0;
}

/* --------------------------------------------------------------------------
   Responsive Design Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .site-wrapper {
    max-width: 100%;
    box-shadow: none;
  }

  .faipa-header-logo {
    height: 52px;
  }

  .faipa-footer-logo {
    height: 80px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-image-container {
    border-radius: 20px;
    min-height: 280px;
    margin-top: 1.5rem;
  }

  .timeline-container {
    flex-direction: column;
    gap: 2.25rem;
    align-items: center;
  }

  .timeline-line {
    display: none;
  }

  .timeline-node {
    max-width: 400px;
  }

  .page-banner-title {
    font-size: 2.1rem;
  }

  .faq-callout-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .faq-callout-card .btn-faipa-cta {
    margin-left: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .stats-container {
    flex-direction: column;
    gap: 1.25rem;
  }

  .faipa-header-logo {
    height: 44px;
  }

  .faipa-footer-logo {
    height: 70px;
  }
}

/* --------------------------------------------------------------------------
   Unidos Banner (Historia)
   -------------------------------------------------------------------------- */
.unidos-banner {
  background: linear-gradient(90deg, #4A90E2 0%, #1A5E9A 100%);
  border-radius: 50px;
  padding: 2rem 3rem;
  color: #ffffff;
  box-shadow: var(--faipa-shadow-md);
  margin-bottom: 2rem;
}

.unidos-banner-left {
  padding-right: 2.5rem;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
}

.unidos-banner-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.35;
}

.unidos-banner-right {
  padding-left: 2.5rem;
}

.unidos-banner-text {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .unidos-banner {
    border-radius: 25px;
    padding: 1.75rem 2rem;
  }

  .unidos-banner-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .unidos-banner-right {
    padding-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.wapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
}

.wapp-float-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.wapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@media (max-width: 575.98px) {
  .wapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}