@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== VARIABLES MODERNAS (LIGHT THEME ATENUADO) ===== */
:root {
  /* Paleta Corporativa Gris/Crema Claro (Anti-Reflejo) */
  --bg-navy: #e8ecf1; /* Gris azulado muy suave (descanso visual) */
  --bg-navy-light: #dde3ea; /* Paneles sutilmente más oscuros */
  --bg-navy-lighter: #d1d9e2; /* Cajas interiores con contraste */
  
  /* Retorno del Navy Oscuro para Navbars y Headers de alto contraste */
  --bg-navy-dark: #040D21;
  
  /* Acentos de Marca (Mantenidos) */
  --accent-electric: #2563EB; /* Azul Eléctrico vibrante */
  --accent-amber: #cf8400; /* Ambar ligeramente oscurecido para no lastimar */
  --accent-amber-hover: #b37300;
  
  /* Textos Obscuros para legibilidad en fondo claro */
  --text-primary: #1e293b; /* Pizarra oscuro - Menos agresivo que negro puro */
  --text-secondary: #475569; /* Pizarra suave para párrafos */
  
  /* Detalles Glassmorphism Invertidos (Sombra) */
  --glass-bg: rgba(221, 227, 234, 0.85); /* Vidrio opaco y relajante */
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --electric-glow: 0 0 20px rgba(37, 99, 235, 0.3);
  
  /* Tipografía */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Interacciones */
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

.section-padding {
  padding: 100px 0;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== HEADER ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 40px 0;
  z-index: 1000;
  transition: var(--transition-normal);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(4, 13, 33, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 90px;
  transition: var(--transition-normal);
}
.navbar.scrolled .logo img {
  height: 65px;
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  padding: 5px 0;
}
.nav-links a:hover {
  color: var(--accent-electric);
}
/* Al estar críspado en blanco sobre el Hero oscuro, forzamos color blanco ANTES del scroll, y también cuando es fondo oscuro. */
.navbar .nav-links a {
  color: #fff !important;
}
.navbar .lang-btn {
  color: #fff !important;
}
.navbar .nav-links a:hover {
  color: var(--accent-amber) !important;
}

/* Language Selector */
.lang-selector {
  position: relative;
  display: inline-block;
}
.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-navy-light);
  min-width: 140px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  margin-top: 10px;
}
.lang-selector:hover .lang-dropdown {
  display: block;
}
.lang-dropdown li {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-normal);
}
.lang-dropdown li:hover {
  background: rgba(37, 99, 235, 0.2);
  color: var(--accent-electric);
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* ===== WELCOME LOADER ===== */
#welcome-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-navy);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.loader-logo img {
  height: 80px;
  margin-bottom: 30px;
}
.loader-bar {
  width: 250px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-electric);
  box-shadow: var(--electric-glow);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: url('../img/hero_port.png') center/cover no-repeat;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(4,13,33,0.9) 0%, rgba(4,13,33,0.6) 100%);
  z-index: -1;
}
.hero-content {
  max-width: 800px;
}
.hero-tag {
  color: var(--accent-amber);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: inline-block;
}
.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 25px;
  color: #fff;
}
.hero h1 span {
  color: var(--accent-electric);
  text-shadow: var(--electric-glow);
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 40px;
  max-width: 600px;
}
.btn-group {
  display: flex;
  gap: 20px;
}
.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--accent-electric);
  color: #fff;
  border: none;
  box-shadow: var(--electric-glow);
}
.btn-primary:hover {
  background: var(--accent-electric-hover);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.7);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}

/* ===== SERVICES ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 30px;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
}
.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-electric);
  box-shadow: var(--soft-shadow);
}
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-electric);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== STATS ===== */
.stats {
  background: var(--bg-navy-light);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-item h3 {
  font-size: 3.5rem;
  color: var(--accent-amber);
  margin-bottom: 10px;
}
.stat-item p {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== ABOUT (Misión/Visión) ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.about-content > p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
}
.about-cards {
  display: grid;
  gap: 20px;
}
.about-card {
  background: var(--bg-navy-lighter);
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid var(--accent-amber);
}
.about-card h4 {
  margin-bottom: 10px;
  color: var(--accent-amber);
}
.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--bg-navy-light);
  overflow: hidden;
}
.testimonial-carousel {
  display: flex;
  gap: 30px;
  padding: 20px 0;
  cursor: grab;
}
.testimonial-card {
  min-width: 350px;
  background: var(--bg-navy-lighter);
  padding: 40px;
  border-radius: 20px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 4rem;
  color: rgba(37, 99, 235, 0.2);
  font-family: inherit;
  line-height: 1;
}
.testimonial-card p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}
.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-electric);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}
.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}
.author-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}
.contact-info {
  background: var(--bg-navy-light);
  padding: 40px;
  border-radius: 20px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}
.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-amber);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-text h4 {
  margin-bottom: 5px;
}
.info-text p, .info-text a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.info-text a:hover {
  color: var(--accent-amber);
}
.contact-form {
  background: var(--bg-navy-lighter);
  padding: 50px;
  border-radius: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-control {
  width: 100%;
  padding: 15px 20px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-body);
  transition: var(--transition-normal);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-electric);
  background: rgba(0,0,0,0.4);
}
textarea.form-control {
  height: 150px;
  resize: vertical;
}

/* ===== FOOTER ===== */
footer {
  background: #020813;
  padding: 40px 0 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo img {
  height: 60px;
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
}
.social-links a:hover {
  background: var(--accent-electric);
  color: #fff;
}
.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover {
  background-color: #1ebe57;
  transform: scale(1.1);
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .services-inner-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: var(--bg-navy-light);
    flex-direction: column;
    padding-top: 50px;
    transition: var(--transition-normal);
  }
  .nav-links.active {
    left: 0;
  }
  .hamburger { display: block; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .btn-group { flex-direction: column; }
  .section-padding { padding: 60px 0; }
  .stat-item h3 { font-size: 2.5rem; }
  .page-header h1 { font-size: 3rem !important; }
}

/* ===== INTERNAL PAGES (ABOUT, CONTACT, SERVICES) ===== */
.page-header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 50px;
}
.page-header .bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-navy-dark);
  z-index: -2;
}
.page-header::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(4,13,33,0.3) 0%, rgba(4,13,33,1) 100%);
  z-index: -1;
}
.page-header h1 {
  font-size: 4.5rem;
  color: #fff;
  text-shadow: var(--electric-glow);
  margin-top: 80px;
}

/* Glass Panels (Reusable) */
.glass-panel {
  background: var(--bg-navy-light);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
}

/* Services Pages Tabs */
.services-inner-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}
.service-tabs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.service-tab-btn {
  background: var(--bg-navy-lighter);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 15px 25px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
}
.service-tab-btn.active, .service-tab-btn:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-electric);
  border-color: var(--accent-electric);
}
.service-content-pane {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}
.service-content-pane.active {
  display: block;
}
.service-content-pane img {
  width: 100%;
  border-radius: 15px;
  margin-top: 25px;
  margin-bottom: 30px;
  box-shadow: var(--glass-shadow);
}
.download-brochure {
  background: rgba(251, 191, 36, 0.1);
  border-left: 4px solid var(--accent-amber);
  padding: 25px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}
.download-brochure .btn {
  background: var(--accent-amber);
  color: #000;
  box-shadow: none;
}
.download-brochure .btn:hover {
  background: var(--accent-amber-hover);
  color: #fff;
}

/* Contact Details Page */
.contact-map {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
