/* Variables y Base */
:root {
  --primary-color: #0A192F; /* Azul marino premium */
  --secondary-color: #0066CC; /* Azul acento original adaptado */
  --accent-color: #00E5FF; /* Cyan brillante para detalles tecno */
  --text-dark: #333333;
  --text-light: #F4F6F8;
  --text-muted: #8892B0;
  --bg-light: #F8F9FA;
  --bg-dark: #0A192F;
  --bg-darker: #020C1B;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.mb-high { margin-bottom: 3rem; }
.max-width-p { max-width: 800px; margin: 0 auto 1.5rem auto; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled {
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 1px;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links li a {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition-smooth);
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

.btn-contacto {
  background-color: var(--secondary-color);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600 !important;
}

.btn-contacto::after { display: none !important; }

.btn-contacto:hover {
  background-color: var(--text-light);
  color: var(--primary-color) !important;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  transform: scale(1.05); /* Previene bordes blancos en animaciones */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10,25,47,0.85) 0%, rgba(2,12,27,0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-content h1 span {
  color: var(--accent-color);
}

.hero-content p {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--accent-color);
  border-radius: 30px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 20px rgba(0,229,255,0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0,229,255,0.4);
  background-color: #fff;
}

/* Sections Global */
.section {
  padding: 6rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.dark-section {
  background-color: var(--bg-darker);
  color: var(--text-light);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: -10px;
  left: 0;
  background-color: var(--secondary-color);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.accent-text {
  color: var(--text-light);
}

.dark-section .section-title::after {
  background-color: var(--accent-color);
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

/* Auto Grid (Split Layout) */
.auto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.auto-grid.reverse .image-content {
  order: -1;
}

/* Images Validation */
.img-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.img-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  opacity: 0.1;
  z-index: 1;
  transition: var(--transition-smooth);
}

.img-wrapper:hover::before {
  opacity: 0;
}

.shadow-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.6s ease;
  display: block;
}

.img-wrapper:hover .shadow-img {
  transform: scale(1.05);
}

/* Mision */
.mission-statement {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
  border-bottom: 4px solid transparent;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  border-bottom-color: var(--secondary-color);
}

.card-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem;
  background-color: white;
  position: relative; /* to stay above scaled img */
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card-body p {
  color: var(--text-muted);
}

/* Tecnologia Quote */
.tech-quote {
  font-size: 1.3rem;
  font-style: italic;
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent-color);
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* Contact Section */
.info-block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.info-block svg {
  color: var(--secondary-color);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

.info-block h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.info-block p {
  color: var(--text-muted);
}

.map-container {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Footer */
.main-footer {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.footer-logo span {
  color: var(--secondary-color);
}

/* Animaciones (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s all ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3.5rem; }
  .auto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .auto-grid.reverse .image-content { order: 0; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    height: calc(100vh - 70px);
    justify-content: center;
    transition: var(--transition-smooth);
    gap: 3rem;
  }

  .nav-links.nav-active { right: 0; }
  
  .nav-links li a { font-size: 1.5rem; }
  
  .hero-content h1 { font-size: 2.8rem; }
  .section { padding: 4rem 0; }
  .map-container { height: 300px; }
}
