/* ==========================================================================
   ESTILO CORPORATIVO OFICIAL CON FONDOS ARQUITECTÓNICOS REALES & MODO CLARO/OSCURO
   PALETA DERIVADA DEL LOGO: TEAL (#00A896), CHARCOAL (#18181B) & BLUEPRINT GRADIENTS
   100% RESPONSIVO PARA DISPOSITIVOS MÓVILES (REORGANIZACIÓN VERTICAL)
   ========================================================================== */

/* VARIABLES EN MODO CLARO (DEFAULT) */
:root, html[data-theme="light"] {
  --teal-primary: #00a896;
  --teal-dark: #0d9488;
  --teal-light: #14b8a6;
  --teal-bg: rgba(0, 168, 150, 0.08);
  
  --bg-body: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-blueprint: #f1f5f9;
  
  --hero-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
  --services-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.90) 100%);
  --blueprint-overlay: linear-gradient(135deg, rgba(248, 250, 252, 0.93) 0%, rgba(241, 245, 249, 0.89) 100%);
  
  --charcoal-dark: #18181b;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-sub: #475569;
  --border-slate: #cbd5e1;
  
  --navbar-bg: rgba(255, 255, 255, 0.96);
  --navbar-border: #cbd5e1;
  --nav-link-color: #0f172a;
  --nav-link-hover: #00a896;
  
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --shadow-subtle: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 35px rgba(0, 168, 150, 0.2);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* VARIABLES EN MODO OSCURO (DARK MODE) */
html[data-theme="dark"] {
  --bg-body: #0b1120;
  --bg-card: rgba(20, 30, 51, 0.92);
  --bg-blueprint: #0f172a;
  
  --hero-overlay: linear-gradient(135deg, rgba(11, 17, 32, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
  --services-overlay: linear-gradient(135deg, rgba(11, 17, 32, 0.94) 0%, rgba(20, 30, 51, 0.92) 100%);
  --blueprint-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(11, 17, 32, 0.90) 100%);
  
  --charcoal-dark: #f8fafc;
  --text-main: #ffffff;
  --text-muted: #e2e8f0;
  --text-sub: #cbd5e1;
  --border-slate: #334155;
  
  --navbar-bg: rgba(15, 23, 42, 0.96);
  --navbar-border: #1e293b;
  --nav-link-color: #ffffff;
  --nav-link-hover: #14b8a6;
  
  --shadow-subtle: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 15px 35px rgba(0, 168, 150, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

h1, h2, h3, h4, .brand-names .name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.position-relative {
  position: relative;
}

.bg-light-blueprint {
  background-color: var(--bg-blueprint);
  border-top: 1px solid var(--border-slate);
  border-bottom: 1px solid var(--border-slate);
  transition: var(--transition);
}

.section-bg-services {
  background-image: var(--services-overlay), url('img/bg/bg_services.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-bg-blueprint {
  background-image: var(--blueprint-overlay), url('img/bg/bg_blueprints.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-dark-slate {
  background-color: #0f172a;
  color: #ffffff;
}

.bg-dark-slate h2, .bg-dark-slate h3 {
  color: #ffffff;
}

/* VECTORES DE LOGO EN FONDO */
.vector-bg-hero {
  position: absolute;
  top: 12%;
  right: 4%;
  width: 480px;
  height: 480px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  color: var(--text-main);
}

.vector-bg-section-right {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 420px;
  height: 420px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.vector-bg-section-contact {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.vector-separator-bar {
  height: 6px;
  background: linear-gradient(90deg, #18181b 0%, var(--teal-primary) 50%, #18181b 100%);
  width: 100%;
}

/* NAVBAR CORPORATIVA RESPONSIVA */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--navbar-border);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.brand-names {
  display: flex;
  flex-direction: column;
}

.brand-names .name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-names .title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-primary);
  letter-spacing: 0.05em;
}

.badge-tag-sep {
  color: var(--teal-primary);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-left: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--nav-link-color);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--nav-link-hover);
  background: rgba(0, 168, 150, 0.08);
}

.theme-toggle-btn {
  background: rgba(0, 168, 150, 0.1);
  border: 2px solid var(--teal-primary);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--teal-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-nav {
  background: var(--teal-primary);
  color: #ffffff !important;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 800;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 168, 150, 0.3);
}

.btn-nav:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 168, 150, 0.4);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--border-slate);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  padding: 160px 0 80px 0;
  background-image: var(--hero-overlay), url('img/bg/bg_hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-bottom: 2px solid var(--border-slate);
  overflow: hidden;
  transition: var(--transition);
}

.hero-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-header-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-logo-center {
  height: 130px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

.hero-title {
  font-size: 2.3rem;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 840px;
  margin: 0 auto 32px auto;
  line-height: 1.7;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.btn-teal-primary {
  background: var(--teal-primary);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.98rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 168, 150, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-teal-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 150, 0.45);
}

.btn-dark-outline {
  background: var(--bg-card);
  border: 2px solid var(--text-main);
  color: var(--text-main);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.98rem;
  transition: var(--transition);
}

.btn-dark-outline:hover {
  background: var(--text-main);
  color: var(--bg-card);
}

.credentials-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  padding: 20px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  transition: var(--transition);
}

.cred-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.cred-item strong {
  font-size: 0.88rem;
  color: var(--teal-primary);
  letter-spacing: 0.03em;
  font-weight: 800;
}

.cred-item span {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-weight: 600;
}

.cred-divider {
  width: 1px;
  height: 30px;
  background: var(--border-slate);
}

/* ROLLO MÓVIL CONTINUO */
.marquee-banner-section {
  background: #0f172a;
  color: #ffffff;
  padding: 40px 0;
  overflow: hidden;
  position: relative;
  border-top: 2px solid var(--teal-primary);
  border-bottom: 2px solid var(--teal-primary);
}

.marquee-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 20px;
}

.marquee-header h3 {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
}

.marquee-track-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-card {
  width: 380px;
  height: 230px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(0, 168, 150, 0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  flex-shrink: 0;
  transition: var(--transition);
}

.marquee-card:hover {
  transform: scale(1.03);
  border-color: var(--teal-light);
  box-shadow: 0 12px 30px rgba(0, 168, 150, 0.3);
}

.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SECCIONES Y ENCABEZADOS */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 2;
}

.section-tag {
  color: var(--teal-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  display: block;
}

.section-header h2 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.section-line {
  width: 60px;
  height: 4px;
  background: var(--teal-primary);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

/* TARJETAS DE SERVICIOS CORPORATIVAS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 2;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-top: 4px solid var(--text-main);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(8px);
}

.service-card-featured {
  border-top: 6px solid var(--teal-primary) !important;
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 168, 150, 0.18);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--teal-primary);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.service-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--teal-primary);
  background: var(--teal-bg);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  border-top: 1px solid var(--border-slate);
  padding-top: 14px;
}

.service-list li {
  font-size: 0.83rem;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.software-skills-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.soft-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* FORMULARIO DE COTIZACIÓN */
.calculator-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--border-slate);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.calc-header {
  text-align: center;
  margin-bottom: 28px;
}

.calc-header h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.calc-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}

.form-select, .form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--bg-body);
  color: var(--text-main);
  transition: var(--transition);
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px var(--teal-bg);
}

.file-upload-box {
  background: var(--bg-blueprint);
  border: 2px dashed var(--teal-primary);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
  transition: var(--transition);
}

.file-upload-box:hover {
  background: rgba(0, 168, 150, 0.05);
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
}

.file-icon {
  font-size: 2rem;
}

.file-text-wrapper {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.file-text-wrapper strong {
  font-size: 0.92rem;
  color: var(--text-main);
}

.file-text-wrapper span {
  font-size: 0.78rem;
  color: var(--text-sub);
}

.form-file-input {
  margin-top: 10px;
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.submit-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-teal-full {
  width: 100%;
  background: var(--teal-primary);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 168, 150, 0.3);
}

.btn-teal-full:hover {
  background: var(--teal-dark);
}

.btn-whatsapp-full {
  width: 100%;
  background: var(--whatsapp);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-full:hover {
  background: var(--whatsapp-dark);
}

/* MODAL INTERACTIVO MULTI-OPCIÓN DE CORREO */
.email-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.email-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.email-modal-card {
  background: var(--bg-card);
  border: 2px solid var(--teal-primary);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.email-modal-overlay.active .email-modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-tag {
  color: var(--teal-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.modal-header h3 {
  font-size: 1.35rem;
  margin: 6px 0 8px 0;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-opt-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-slate);
  background: var(--bg-blueprint);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.modal-opt-btn:hover {
  border-color: var(--teal-primary);
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(0, 168, 150, 0.15);
}

.btn-opt-gmail:hover {
  background: rgba(234, 67, 53, 0.08);
  border-color: #ea4335;
}

.btn-opt-native:hover {
  background: rgba(0, 120, 212, 0.08);
  border-color: #0078d4;
}

.btn-opt-web:hover {
  background: var(--teal-bg);
  border-color: var(--teal-primary);
}

.opt-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.opt-text {
  display: flex;
  flex-direction: column;
}

.opt-text strong {
  font-size: 0.98rem;
  color: var(--text-main);
}

.opt-text span {
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* TRAYECTORIA Y EXPERIENCIA */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-slate);
  border-left: 4px solid var(--text-main);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: var(--transition);
}

.exp-role {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.exp-company {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-primary);
  margin: 4px 0 10px 0;
}

.exp-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SECCIÓN DE CONTACTO */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.contact-text p {
  color: #94a3b8;
  margin-bottom: 24px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-item .icon {
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.contact-box-cta {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-slate);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cta-logo {
  height: 80px;
  width: auto;
  margin-bottom: 14px;
}

.contact-box-cta h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.contact-box-cta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-teal-whatsapp {
  background: var(--teal-primary);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  transition: var(--transition);
}

.btn-teal-whatsapp:hover {
  background: var(--teal-dark);
}

/* FOOTER */
.footer {
  background: #090d16;
  color: #94a3b8;
  padding: 24px 0;
  border-top: 1px solid #1e293b;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  height: 40px;
}

/* CONFIGURACIÓN DEL MINIMAPA Y BOTONES DE RUTA DE FLUENCE */
.contact-map-box {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--border-slate);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.fluence-embedded-map {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-overlay-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10;
}

.map-overlay-info strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--teal-light);
}

.map-overlay-info span {
  font-size: 0.75rem;
  color: #e2e8f0;
}

.route-buttons-box {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--radius-md);
}

.route-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #14b8a6;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.route-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.btn-route-opt {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-gmaps {
  background: #ea4335;
  box-shadow: 0 4px 10px rgba(234, 67, 53, 0.25);
}

.btn-gmaps:hover {
  background: #d93025;
  transform: translateY(-2px);
}

.btn-waze {
  background: #00c4ff;
  box-shadow: 0 4px 10px rgba(0, 196, 255, 0.25);
}

.btn-waze:hover {
  background: #00b0e6;
  transform: translateY(-2px);
}

.btn-apple-maps {
  background: #000000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-apple-maps:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

/* BOTÓN DE CONTACTO DIRECTO EN SECCIÓN CONTACTO */
.btn-whatsapp-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff !important;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  margin-bottom: 22px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-align: center;
}

.btn-whatsapp-direct:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* BOTÓN FLOTANTE PERMANENTE DE WHATSAPP */
.floating-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  z-index: 99999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
  background: #1da851;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.75);
}

.floating-whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 1px solid var(--teal-primary);
}

.floating-whatsapp:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* REORGANIZACIÓN MÓVIL VERTICAL */
@media (max-width: 990px) {
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { font-size: 0.95rem; }
  
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navbar-bg);
    border-bottom: 2px solid var(--navbar-border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 14px;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: 6px;
    text-align: left;
    font-size: 1rem;
  }

  .theme-toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .btn-nav {
    text-align: center;
    padding: 12px;
  }

  .calc-form-grid, .submit-actions-grid, .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .credentials-bar {
    flex-direction: column;
    gap: 14px;
  }

  .cred-divider {
    width: 80%;
    height: 1px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 130px 0 60px 0;
  }
  
  .hero-title {
    font-size: 1.55rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .calculator-box {
    padding: 22px 18px;
  }

  .marquee-card {
    width: 290px;
    height: 175px;
  }

  .btn-teal-primary, .btn-dark-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
