/* ==========================================================================
   NIBRESMA Landing Page CSS Stylesheet
   ========================================================================== */

/* Variables / Design System */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --bg-main: #000000;
  --bg-card: #0c101b;
  --bg-inner: #05070c;
  --border-color: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(161, 112, 61, 0.3);
  
  --primary: #a1703d;
  --primary-hover: #b8824c;
  --secondary: #64748b;
  --secondary-hover: #475569;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --accent-blue: #a1703d;
  --accent-purple: #b8824c;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --primary-rgb: 161, 112, 61;
  --accent-purple-rgb: 184, 130, 76;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Glowing Mesh Background Animations */
.mesh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  transition: transform 10s ease-in-out;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(161, 112, 61, 0.3) 0%, rgba(184, 130, 76, 0.05) 70%);
  top: -100px;
  right: -100px;
  animation: float Glow1 25s infinite alternate;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 130, 76, 0.25) 0%, rgba(161, 112, 61, 0.05) 70%);
  bottom: 20%;
  left: -100px;
  animation: float Glow2 30s infinite alternate;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 100px) scale(1.1); }
}
@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, -100px) scale(0.9); }
}

/* Reusable UI Components */
.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(161, 112, 61, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(161, 112, 61, 0.2);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(161, 112, 61, 0.05);
}

.text-gradient {
  background: linear-gradient(135deg, #f3d49e 0%, #a1703d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #8c5f32 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(161, 112, 61, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(161, 112, 61, 0.5);
  background: linear-gradient(135deg, #b8824c 0%, #8c5f32 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:active {
  transform: translateY(0);
}

/* Headers & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(7, 10, 19, 0.75);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  height: 38px;
  display: block;
  transition: opacity 0.2s;
}

.brand-logo:hover {
  opacity: 0.85;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-blue);
}

/* Layout Sections */
section {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
}

.hero-isotipo {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-bottom: 2rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.hero-isotipo:hover {
  transform: scale(1.05) rotate(3deg);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Dashboard Mockup (Illustration) */
.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
}

/* Glassmorphic Logistics Map Card */
.logistics-map-container {
  background: rgba(18, 24, 36, 0.45);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(161, 112, 61, 0.03);
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.logistics-map-container:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(161, 112, 61, 0.15);
}

.map-header {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.map-header-logo {
  height: 28px;
  width: auto;
  display: block;
}

.badge-map {
  margin-bottom: 0 !important;
  font-size: 0.65rem !important;
  padding: 0.3rem 0.8rem !important;
}

.map-body-image {
  position: relative;
  overflow: hidden;
  display: flex;
  background-color: #000;
}

.logistics-map-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logistics-map-container:hover .logistics-map-img {
  transform: scale(1.03);
}

/* Services Section */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(161, 112, 61, 0.05);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card:hover .service-icon {
  background: rgba(161, 112, 61, 0.1);
  border-color: rgba(161, 112, 61, 0.3);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Advantages & Stats Section */
.advantages {
  background: radial-gradient(100% 100% at 100% 0%, rgba(161, 112, 61, 0.03) 0%, rgba(7, 10, 19, 0) 100%);
}

.advantages-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.text-left {
  text-align: left;
}

.advantages-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advantages-list li {
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.advantages-list li::before {
  color: var(--accent-emerald);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: rgba(18, 24, 36, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: rgba(184, 130, 76, 0.25);
  background: rgba(18, 24, 36, 0.6);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Contact Section */
.contact-container {
  max-width: 760px;
  margin: 0 auto;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-input {
  background-color: var(--bg-inner);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: all 0.2s;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(161, 112, 61, 0.15);
}

textarea.form-input {
  resize: vertical;
}

.form-feedback {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.5rem;
  display: none;
}

.form-feedback.success {
  color: var(--accent-emerald);
  display: block;
}

.form-feedback.error {
  color: var(--accent-rose);
  display: block;
}

/* Footer Section */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: #04060b;
  padding: 4rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 320px;
}

.footer-logo {
  height: 48px;
  width: auto;
  align-self: flex-start;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-copyright {
  color: var(--text-dark);
  font-size: 0.8rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .advantages-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .text-left {
    text-align: center;
  }
  
  .advantages-list {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }
  
  .main-nav {
    display: none; /* simple website collapses menu */
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
}
