/* --- VARIABLES & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');
/* Fallback if Arial Nova Cond is not local, use Roboto Condensed for Titles. For body, use Arial standard */

:root {
  /* Brand Colors (Originales del brief) */
  --color-primary: #0057B8;
  --color-primary-dark: #00428a;
  --color-primary-bg: #E6F0FA; /* Fondo azul muy claro */
  --color-accent: #D62828;
  --color-accent-hover: #b81f1f;
  --color-text: #1F1F1F;
  --color-text-light: #555555;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  
  /* Typography */
  --font-heading: 'Arial Nova Cond', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --nav-height: 120px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6, .section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.align-center {
  align-items: center;
}

.col-5 { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 1rem; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 1rem; }
.col-7 { flex: 0 0 58.333%; max-width: 58.333%; padding: 0 1rem; }

@media (max-width: 992px) {
  .col-5, .col-6, .col-7 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-white { color: #ffffff !important; }
.bg-light { background-color: var(--color-bg-alt); }
.bg-primary { background-color: var(--color-primary); color: #fff; }

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.rounded-image { border-radius: 8px; }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 15px 40px rgba(0,0,0,0.15); }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: bold;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}
.btn-outline:hover {
  background-color: white;
  color: var(--color-primary);
}

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

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85); /* Glassmorphism */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 0.95);
  height: 90px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}
.logo-accent {
  color: var(--color-accent);
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-link {
  position: relative;
  color: var(--color-text);
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--color-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover {
  color: var(--color-primary);
}
.nav-link:hover::after {
  width: 70%;
}

.btn-contact {
  background: var(--color-primary);
  color: white !important;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-contact:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 87, 184, 0.3);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: white;
    flex-direction: column;
    transition: left var(--transition-fast);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 2rem 0;
  }
  .nav-list li {
    width: 100%;
    text-align: center;
    margin: 1rem 0;
  }
  .mobile-toggle {
    display: block;
  }
}

/* --- SECTIONS --- */
.section {
  padding: 5rem 0;
}
.section-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}
.section-text {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  margin-top: var(--nav-height);
  overflow: hidden; /* For background zoom */
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('hero_bg.png') center/cover no-repeat;
  animation: kenBurns 20s infinite alternate ease-in-out;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.85) 0%, rgba(31, 31, 31, 0.8) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.8;
}

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

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 0;
  background: rgba(0, 87, 184, 0.03);
  transition: height 0.4s ease;
  z-index: 0;
}
.service-card:hover::after {
  height: 100%;
}
.service-card > * {
  position: relative;
  z-index: 1;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 87, 184, 0.15);
  border-bottom-color: var(--color-accent);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease, color 0.4s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--color-accent);
}

.service-title {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* --- METHODOLOGY TIMELINE --- */
.timeline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  width: 22%;
  min-width: 200px;
  background: rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
}

.timeline-icon {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.timeline-content {
  font-weight: bold;
  font-family: var(--font-heading);
}

/* --- SECTORS --- */
.sectors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.sector-badge {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- WHY CHOOSE US (FEATURES LIST) --- */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .features-list { grid-template-columns: 1fr; }
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

/* --- SOLUTIONS (SECONDARY) --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.solution-card {
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}
.solution-title {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

/* --- BLOG --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.blog-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.blog-category {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* --- CONTACT --- */
.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-item i {
  font-size: 1.5rem;
  margin-top: 0.2rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  color: var(--color-primary);
}
.social-icon:hover {
  background: var(--color-primary);
  color: white;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.5rem;
  flex: 1;
}
label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
input, select, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* --- FOOTER --- */
.footer {
  background: var(--color-text);
  color: white;
  padding: 2rem 0;
}

/* --- ANIMATIONS & SPECIAL EFFECTS --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.image-col img, .dashboard-mockup img {
  animation: float 6s ease-in-out infinite;
}

.dashboard-mockup img:hover {
  animation-play-state: paused;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(214, 40, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0); }
}

.btn-primary {
  animation: pulse-glow 3s infinite;
}
.btn-primary:hover {
  animation: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(214, 40, 40, 0.3);
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.animate-on-scroll {
  opacity: 0;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}
.fade-up { transform: translateY(40px); }
.fade-right { transform: translateX(-40px); }
.fade-left { transform: translateX(40px); }
.fade-in { transform: scale(0.95); }

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366; /* Verde oficial de WhatsApp */
  color: #FFF !important;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float 4s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #1EBE5D;
  box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.4);
  animation-play-state: paused;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
