/* Variables del Sistema de Diseño (MODO CLARO) */
:root {
  --primary: #208C3C; /* Verde del logo */
  --primary-glow: rgba(32, 140, 60, 0.2);
  --secondary: #2C6EBC; /* Azul del globo del logo */
  --bg-dark: #f1f5f9; /* Fondo gris muy claro para secciones */
  --bg-darker: #ffffff; /* Fondo blanco principal */
  --text-main: #1e293b; /* Texto oscuro principal */
  --text-muted: #475569; /* Texto gris secundario */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-family: 'Inter', sans-serif;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-darker);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Utilidades */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Glassmorphism Classes (Light) */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}


/* Botones */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 10px 25px var(--primary-glow);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(32, 140, 60, 0.05);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-actions .btn-primary {
  background: var(--primary);
  color: #fff;
}

.hero-actions .btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.hero-actions .btn-blue {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
  background: var(--secondary);
  color: #fff;
  text-align: center;
}

.hero-actions .btn-blue:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links li a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links li a:not(.btn-primary):not(.btn-outline)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links li a:not(.btn-primary):not(.btn-outline):hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a.active,
.nav-links li a:hover:not(.btn-primary):not(.btn-outline) {
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero_bg.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.hero-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-glass {
  max-width: 650px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.highlight {
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}


/* Services */
.services {
  background-color: var(--bg-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: transparent;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.service-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-body {
  padding: 24px 30px 30px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Flex Sections (SAAS & Drones) */
.container-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

.container-flex.reverse {
  flex-direction: row-reverse;
}

.saas-text {
  flex: 1;
}

.saas-text h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 700;
}

.saas-text h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.saas-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.features-list {
  margin-bottom: 30px;
}

.features-list li {
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-main);
}

.saas-image {
  flex: 1;
}

.image-wrapper {
  border-radius: 20px;
  padding: 10px;
  position: relative;
  background: var(--bg-darker);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.dashboard-frame {
  background: #0f172a; /* Slate 900 - matching the screenshot's dark vibe */
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0; 
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Mock toolbar for the dashboard frame to make it look like a real app */
.dashboard-frame::before {
  content: '';
  display: block;
  height: 25px;
  background: #1e293b; /* Slate 800 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.dashboard-frame::after {
  content: '•••';
  position: absolute;
  top: 4px;
  left: 12px;
  color: #475569;
  letter-spacing: 2px;
  font-size: 14px;
}

.dashboard-frame img {
  border-radius: 0;
  display: block;
  filter: saturate(1.1) brightness(1.1); /* Pop a bit more */
  width: 100%;
}

.dashboard-overlay {
  position: absolute;
  z-index: 10;
  padding: 12px;
  background: rgba(15, 23, 42, 0.85); /* Glass variant of the dashboard dark bg */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  pointer-events: none;
  font-size: 0.8rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.vigor-legend {
  bottom: 20px;
  left: 20px;
  min-width: 120px;
}

.legend-title {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
  color: #94a3b8;
  font-size: 0.7rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.legend-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255,255,255,0.2);
}

/* Dashboard Mosaic */
.dashboard-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}


.mosaic-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.mosaic-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Enhancing the saas section to be more professional */
.saas {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  z-index: 1;
}

.saas::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23208c3c' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  z-index: -1;
}

.drones {
  background-color: var(--bg-dark);
}

.drone-showcase {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(32, 140, 60, 0.08) 0%, rgba(44, 110, 188, 0.08) 100%);
  padding: 20px;
}

.drone-showcase::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 26px;
  z-index: -1;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.drone-showcase:hover::before {
  opacity: 0.6;
}

.drone-showcase img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}

.drone-showcase:hover img {
  transform: scale(1.02);
}

/* Blog Section Styles */
.blog {
  background-color: var(--bg-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.blog-card {
  background: var(--bg-darker);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.blog-header {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.blog-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-header img {
  transform: scale(1.1);
}

.blog-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-main);
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.blog-media {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 20px;
}

.media-player {
  margin-bottom: 15px;
}

.media-player audio {
  width: 100%;
  height: 40px;
  border-radius: 12px;
}

.media-player video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.blog-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(32, 140, 60, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.contact-glass {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-glass h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-glass h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 25px;
  font-weight: 600;
}

.contact-glass p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.contact-alt {
  font-size: 0.95rem;
  margin-bottom: 25px !important;
}

.contact-alt a {
  color: var(--secondary);
  font-weight: 600;
}

.contact-alt a:hover {
  color: var(--primary);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 15px;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.contact-form textarea {
  grid-column: span 2;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(32, 140, 60, 0.1);
}

.contact-form button {
  grid-column: span 2;
  font-size: 1.1rem;
}

.form-group {
  position: relative;
}

.form-error {
  display: none;
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 4px;
  position: absolute;
  bottom: -20px;
  left: 0;
}

.form-error.active {
  display: block;
}

.contact-form input.invalid,
.contact-form select.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-form input.valid,
.contact-form select.valid {
  border-color: var(--primary);
}

.phone-input {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.phone-input:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(32, 140, 60, 0.1);
}

.phone-code {
  padding: 15px;
  background: #e2e8f0;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.phone-input input {
  border: none;
  background: transparent;
  padding: 15px;
  flex: 1;
}

.phone-input input:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0 20px;
  background-color: #ffffff;
}

.footer-content {
  text-align: center;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.footer-logo .logo-img {
  height: 50px;
}

.footer-content p {
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Animations JS classes */
.fade-in-up,
.fade-in-left,
.fade-in-right {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
  transform: translateY(40px);
}

.fade-in-left {
  transform: translateX(-40px);
}

.fade-in-right {
  transform: translateX(40px);
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Blog Content Styling */
.blog-full-content .corporate-heading {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 30px 0 15px;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  padding-left: 15px;
}

.blog-full-content .corporate-para {
  margin-bottom: 20px;
  text-align: justify;
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}

.blog-full-content .corporate-para:first-of-type {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .container-flex { flex-direction: column; text-align: center; }
  .container-flex.reverse { flex-direction: column; }
  .features-list { text-align: left; display: inline-block; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form textarea, .contact-form button { grid-column: span 1; }
  
  .dashboard-mosaic {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .drone-showcase {
    padding: 10px;
    border-radius: 16px;
  }
}

/* Mobile Bottom Navigation Tabs */
.mobile-nav-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.08);
  z-index: 9999;
}

.mobile-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  transition: var(--transition);
  gap: 4px;
}

.mobile-tab-item svg {
  width: 22px;
  height: 22px;
  transition: var(--transition);
}

.mobile-tab-item.active {
  color: var(--primary);
}

.mobile-tab-item.active svg {
  color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .mobile-nav-tabs {
    display: grid;
  }
  
  body {
    padding-bottom: 70px;
  }
}
