/**
 * Productora AMG SAC – Diseño Corporativo Profesional
 * Sector: Producción y exportación de harina de pescado para alimento balanceado
 * Estética: Corporativa, seria, moderna con efectos sutiles
 */

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

:root {
  /* Paleta corporativa – brochure Comercializadora Jacob (compartida con Productora AMG) */
  --navy: #1B3F8B;
  --navy-deep: #0E2760;
  --teal: #2FB5C4;
  --teal-dark: #1A7F8C;
  --teal-pale: #E4F6F9;

  --primary: var(--navy);
  --primary-light: var(--teal);
  --primary-dark: var(--navy-deep);
  --accent: var(--teal-dark);
  --accent-hover: #146670;
  --primary-gradient: linear-gradient(135deg, #0E2760 0%, #1B3F8B 70%, #1F6FA3 100%);

  /* Neutros (brochure) */
  --dark: #131E35;
  --dark-bg: #0E2760;
  --dark-soft: #374455;
  --text: #374455;
  --text-muted: #5A6B85;
  --bg-soft: #F2F6FA;
  --white: #ffffff;
  --border: #DDE6F0;

  /* Sistema de diseño */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 20px 56px rgba(27, 63, 139, 0.15);

  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Tipografía mejorada */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Logo con efecto hover profesional */
.logo-brand {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark) !important;
  transition: var(--transition);
}

.navbar-brand:hover .logo-brand {
  transform: translateY(-2px);
}

/* Top bar corporativa */
.top-bar {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  padding: 0.65rem 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.top-bar a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.top-bar .btn-whatsapp {
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(26, 127, 140, 0.3);
}

.top-bar .btn-whatsapp:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 127, 140, 0.4);
}

/* Navbar moderna con glassmorphism */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text) !important;
  padding: 0.6rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.4rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
  background: rgba(27, 63, 139, 0.05);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
  background: transparent;
  /* Clean look */
}

.nav-link.active::after {
  transform: scaleX(1);
  background: var(--primary);
}

/* Hero profesional con parallax */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  background: var(--primary-gradient);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 20, 50, 0.6) 0%, transparent 70%),
    radial-gradient(circle at 80% 80%, rgba(0, 40, 80, 0.5) 0%, transparent 70%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/Premium Fishmeal Hero.png') center/cover no-repeat;
  opacity: 0.15;
  transform: scale(1.1);
  transition: transform 8s ease-out;
}

.hero:hover .hero-bg-img {
  transform: scale(1.05);
}

/* Hero con carrusel (expo harina, expo aceite, hero) */
.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
  min-height: 680px;
}

.hero-carousel .carousel-item img.hero-carousel-img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
  object-position: center;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  z-index: 3;
  width: 4rem;
  opacity: 0.9;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-overlay .container {
  position: relative;
  z-index: 2;
}

.hero-carousel .hero-overlay h1,
.hero-carousel .hero-overlay .lead {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Carrusel en página Exportación (fotos expo harina / expo aceite) */
.export-carousel-wrap {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.export-carousel-wrap .carousel {
  border-radius: var(--radius);
  overflow: hidden;
}

.export-carousel-img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
  background: var(--bg-soft);
}

.export-carousel-wrap .carousel-control-prev,
.export-carousel-wrap .carousel-control-next {
  opacity: 0.85;
}

.export-carousel-wrap .carousel-control-prev:hover,
.export-carousel-wrap .carousel-control-next:hover {
  opacity: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  /* Stronger shadow for contrast */
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero .lead {
  font-weight: 500;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero .btn {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botones modernos con efectos */
.btn {
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.85rem 2rem;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-light {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-warning,
.btn-success {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(26, 127, 140, 0.3);
}

.btn-warning:hover,
.btn-success:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(26, 127, 140, 0.6);
  /* Glow effect */
}

/* Sección de estadísticas con efecto glassmorphism */
.stats-section {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stats-section .stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.stats-section .stat-desc {
  font-size: 1rem;
  opacity: 0.95;
  font-weight: 500;
  margin-top: 0.75rem;
}

/* Page headers modernos */
.page-header {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  color: var(--white);
}

.page-header .lead {
  font-weight: 500;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.95);
}

/* Secciones con espaciado profesional */
section {
  padding: 5rem 0;
  scroll-margin-top: 100px;
}

.section-title {
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 3.5rem;
  color: var(--dark);
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--teal);
  border-radius: 2px;
}

/* Cards con efectos modernos */
.card {
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  /* Softer, deeper shadow */
  transition: var(--transition-slow);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  /* Semi-transparent */
  backdrop-filter: blur(12px);
  /* Glassmorphism */
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* Imágenes con efectos */
.img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}

.img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
  pointer-events: none;
}

.img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-slow);
}

.img-wrap:hover img {
  transform: scale(1.05);
}

/* Icon boxes corporativos */
.icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(27, 63, 139, 0.25);
  transition: var(--transition);
}

.icon-box:hover {
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 12px 32px rgba(27, 63, 139, 0.35);
}

.icon-box-sm {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(27, 63, 139, 0.2);
  transition: var(--transition);
}

.icon-box-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 63, 139, 0.3);
}

/* Accordion moderno */
.accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm) !important;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(27, 63, 139, 0.2);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-item {
  border: none;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.accordion-body {
  padding: 1.5rem;
  color: var(--text-muted);
}

/* Use case images */
.use-case-img {
  height: 240px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover .use-case-img {
  transform: scale(1.1);
}

/* Export gallery */
.export-gallery img {
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: var(--transition);
}

.export-gallery .img-wrap:hover img {
  transform: scale(1.1);
}

/* Language switcher moderno */
#lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.75rem;
  background: var(--bg-soft);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
}

#lang-switcher a {
  padding: 0.4rem 0.65rem;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#lang-switcher a:hover {
  background: var(--white);
  transform: scale(1.1);
}

#lang-switcher a.active {
  background: var(--primary-gradient);
  box-shadow: 0 2px 8px rgba(27, 63, 139, 0.3);
}

/* Botones primarios */
.btn-primary {
  background: var(--primary-gradient);
  border: none;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(27, 63, 139, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(27, 63, 139, 0.35);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 63, 139, 0.25);
}

/* Formularios profesionales */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(27, 63, 139, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Footer corporativo */
footer {
  background: var(--dark-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-light);
  transition: width 0.3s ease;
}

footer a:hover {
  color: var(--white);
  transform: translateX(4px);
}

footer a:hover::after {
  width: 100%;
}

footer .footer-logo {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 1rem;
  opacity: 0.95;
  transition: var(--transition);
}

footer .footer-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

footer h5,
footer h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

/* Productos: pestañas profesionales */
#productTabs {
  border-bottom: 2px solid var(--border);
  margin-bottom: 3rem;
}

#productTabs .nav-link {
  color: var(--text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 2rem;
  font-weight: 600;
  transition: var(--transition);
}

#productTabs .nav-link:hover {
  color: var(--primary);
  background: var(--bg-soft);
  border-bottom-color: var(--primary-light);
}

#productTabs .nav-link.active {
  color: var(--primary);
  background: var(--white);
  border-bottom-color: var(--primary);
  position: relative;
}

.product-img-wrap {
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-img-wrap:hover {
  box-shadow: var(--shadow-lg);
}

.product-img-wrap img {
  max-width: 100%;
  width: auto;
  height: auto;
  transition: var(--transition-slow);
}

.product-img-wrap:hover img {
  transform: scale(1.05);
}

/* Fondos sutiles */
.bg-light {
  background: linear-gradient(180deg, #F2F6FA 0%, #ffffff 100%) !important;
}

/* Textos */
.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .hero {
    min-height: 520px;
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 3rem 0;
  }

  .stats-section .stat-number {
    font-size: 2.5rem;
  }
}

/* Animaciones de entrada */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Efecto de carga suave */
body.loading {
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity 0.5s ease;
}
/* Empresa hermana (footer) */
.sister-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(47, 181, 196, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(47, 181, 196, 0.08);
}

.sister-link strong {
  color: var(--white);
}

.sister-link span {
  color: var(--teal);
  font-size: 0.8rem;
}

footer a.sister-link:hover {
  transform: translateY(-2px);
  background: rgba(47, 181, 196, 0.16);
}

footer a.sister-link::after {
  display: none;
}

/* Enlaces con la paleta corporativa */
:root { --bs-link-color: #1B3F8B; --bs-link-color-rgb: 27, 63, 139; --bs-link-hover-color: #1A7F8C; --bs-link-hover-color-rgb: 26, 127, 140; }
