/* ==========================================================================
   VENDORA - Manual de Identidad de Marca - Design System & Global Styles
   Colores: Azul Vendora (#0B2D5B), Coral Vendora (#FF4D6D), Blanco (#FFFFFF)
   Tipografía: Montserrat (Google Fonts)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root {
  /* Paleta Principal - Brand Manual Page 5 */
  --azul-vendora: #0B2D5B;
  --azul-dark: #061933;
  --azul-hover: #123B75;
  --coral-vendora: #FF4D6D;
  --coral-hover: #e83758;
  --coral-light: #FFC3CF;
  --coral-subtle: #FFF1F3;
  --blanco: #FFFFFF;

  /* Paleta Secundaria - Brand Manual Page 6 */
  --turquesa: #00C2B8;
  --lavanda: #A78BFA;
  --amarillo: #FDCB58;
  --verde: #22C55E;
  --gris-neutro: #94A3B8;

  /* UI / Web - Brand Manual Page 7 */
  --bg-primary: #0B2D5B;
  --bg-secondary: #F7F9FC;
  --surface: #FFFFFF;
  --border-color: #E5E7EB;
  --border-subtle: #EEF2F6;
  --text-main: #1F2937;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;

  /* Semánticos */
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #3B82F6;

  /* Sombras y elevaciones */
  --shadow-sm: 0 2px 4px rgba(11, 45, 91, 0.05);
  --shadow-md: 0 6px 18px rgba(11, 45, 91, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 45, 91, 0.12);
  --shadow-xl: 0 20px 48px rgba(11, 45, 91, 0.16);
  --shadow-coral: 0 8px 24px rgba(255, 77, 109, 0.35);

  /* Bordes redondeados */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Tipografía de Marca - Jerarquía (Brand Manual Page 8) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--azul-vendora);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.title-hero {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
}

.title-section {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.title-card {
  font-size: 1.35rem;
  font-weight: 700;
}

.subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
}

.text-coral {
  color: var(--coral-vendora) !important;
}

.text-white {
  color: var(--blanco) !important;
}

.text-navy {
  color: var(--azul-vendora) !important;
}

.text-success {
  color: var(--verde) !important;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 880px;
}

.section {
  padding: 85px 0;
  position: relative;
}

.section-dark {
  background-color: var(--azul-vendora);
  color: var(--blanco);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--blanco);
}

.section-dark .subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.section-light {
  background-color: var(--surface);
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.badge-tag-coral {
  background-color: var(--coral-subtle);
  color: var(--coral-vendora);
  border: 1px solid rgba(255, 77, 109, 0.2);
}

.badge-tag-white {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Botones con estilo oficial Vendora */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background-color: var(--coral-vendora);
  color: var(--blanco);
  box-shadow: var(--shadow-coral);
}

.btn-primary:hover {
  background-color: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.45);
}

.btn-navy {
  background-color: var(--azul-vendora);
  color: var(--blanco);
}

.btn-navy:hover {
  background-color: var(--azul-hover);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background-color: var(--blanco);
  color: var(--azul-vendora);
  transform: translateY(-2px);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--azul-vendora);
  border-color: var(--azul-vendora);
}

.btn-outline-navy:hover {
  background-color: var(--azul-vendora);
  color: var(--blanco);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* Header & Barra Superior */
.top-bar {
  background-color: var(--azul-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-contact a:hover {
  color: var(--coral-light);
}

.top-bar-badges {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
  color: #A7F3D0;
}

/* Barra de Navegación Principal */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--azul-vendora);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(11, 45, 91, 0.25);
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(11, 45, 91, 0.98);
  backdrop-filter: blur(10px);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  width: 190px;
  height: 48px;
}

.nav-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-item a {
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 6px 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--coral-vendora);
  transition: width var(--transition-fast);
}

.nav-item a:hover, .nav-item.active a {
  color: var(--blanco);
}

.nav-item a:hover::after, .nav-item.active a::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0B2D5B 0%, #061A34 100%);
  color: var(--blanco);
  padding: 80px 0 110px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.18) 0%, rgba(11, 45, 91, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 194, 184, 0.12) 0%, rgba(11, 45, 91, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  color: var(--blanco);
  margin-bottom: 20px;
}

.hero-content h1 span.highlight {
  color: var(--coral-vendora);
  position: relative;
}

.hero-content p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 520px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Barra de Confianza y Métricas */
.metrics-bar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
  margin-top: -40px;
  position: relative;
  z-index: 20;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric-item {
  padding: 10px 16px;
  border-right: 1px solid var(--border-color);
}

.metric-item:last-child {
  border-right: none;
}

.metric-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--azul-vendora);
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-number.coral {
  color: var(--coral-vendora);
}

.metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Tarjetas y Contenedores */
.card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 32px 28px;
  transition: all var(--transition-normal);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 77, 109, 0.3);
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
  background-color: var(--coral-subtle);
  color: var(--coral-vendora);
}

/* Modales */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 45, 91, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 36px 32px;
  position: relative;
  transform: scale(0.94);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F3F4F6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #E5E7EB;
  color: var(--text-main);
}

/* Formularios */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--azul-vendora);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background-color: #FFFFFF;
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--azul-vendora);
  box-shadow: 0 0 0 3px rgba(11, 45, 91, 0.1);
}

.input-with-button {
  display: flex;
  gap: 8px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Botón flotante de WhatsApp */
.wa-floating-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.wa-floating-btn:hover {
  background-color: #1EBE5D;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

.wa-floating-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Footer Oficial Vendora */
.footer {
  background-color: var(--azul-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 25px 0;
  border-top: 4px solid var(--coral-vendora);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 320px;
}

.footer-title {
  color: var(--blanco);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background-color: var(--coral-vendora);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--coral-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Helper classes for responsive multi-column sections on subpages */
.responsive-two-col,
.sector-card-grid,
.module-feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.contact-grid {
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: start;
}

.module-feature-grid {
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 70px;
}

.nav-item-actions {
  display: none;
}

.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .form-grid-two {
    grid-template-columns: 1fr;
  }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--azul-vendora);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 16px;
    z-index: 1000;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
  }
  .nav-actions {
    display: none;
  }
  .nav-item-actions {
    display: block;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    max-width: 680px;
    margin: 0 auto;
  }
  .hero-content p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-features-list {
    margin: 0 auto;
    max-width: 500px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .sector-card-grid,
  .module-feature-grid,
  .contact-grid,
  .responsive-two-col {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 768px) {
  .top-bar-badges {
    display: none;
  }
  .top-bar-content {
    justify-content: center;
  }
  .top-bar-contact {
    font-size: 0.78rem;
    gap: 14px;
  }
  .nav-brand {
    width: 155px;
    height: 38px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
  }
  .metric-item:last-child {
    border-bottom: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-section {
    padding: 38px 0 55px 0 !important;
  }
  .title-hero {
    font-size: clamp(1.75rem, 5.8vw, 2.3rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 16px !important;
  }
  .title-section {
    font-size: clamp(1.55rem, 4.8vw, 2rem) !important;
  }
  .hero-content p.lead {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
  }
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-bottom: 26px !important;
  }
  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .hero-features-list {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    max-width: 100% !important;
    text-align: left;
  }
  .modal-card {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }
  .modal-close {
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
  }
}
