:root {
  --primary: #092c4c;
  --primary-dark: #061c31;
  --primary-light: #124373;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-blue: #0284c7;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1ebd57;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 25px -5px rgba(9, 44, 76, 0.1), 0 8px 10px -6px rgba(9, 44, 76, 0.05);
  --shadow-lg: 0 20px 35px -10px rgba(9, 44, 76, 0.15);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

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

/* TOPBAR */
.topbar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-info, .topbar-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-item i {
  color: var(--accent-gold);
}

/* NAVBAR */
.navbar {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 14px 0;
  transition: all 0.3s ease;
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 38px;
}

.bar-1 { width: 8px; height: 26px; background-color: #0284c7; border-radius: 2px; }
.bar-2 { width: 8px; height: 38px; background-color: #092c4c; border-radius: 2px; }
.bar-3 { width: 8px; height: 32px; background-color: #f59e0b; border-radius: 2px; }
.bar-4 { width: 8px; height: 20px; background-color: #94a3b8; border-radius: 2px; }

.logo-text h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-cta-btn {
  background: var(--accent-gold);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.nav-cta-btn:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
}

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

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #092c4c 0%, #0d3b66 60%, #10487c 100%);
  color: #ffffff;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .highlight-gold {
  color: #fbbf24;
}

.hero-description {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #0f172a;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}

.hero-visual {
  position: relative;
}

.hero-card-main {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-card-main img {
  border-radius: calc(var(--radius-lg) - 6px);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-floating-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.floating-pill {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.floating-pill strong {
  font-size: 1.25rem;
  color: var(--accent-gold);
  line-height: 1.1;
  font-weight: 800;
}

.floating-pill span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
}

/* SECTION COMMONS */
.section-padding {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.service-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-thumb img {
  transform: scale(1.06);
}

.service-index {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent-blue);
  font-size: 0.92rem;
}

.service-link:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

/* FICHAS TECNICAS (DOWNLOAD SECTION) */
.fichas-section {
  background: #f1f5f9;
}

.fichas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.ficha-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.ficha-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.ficha-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.ficha-code {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  background: #e0f2fe;
  padding: 4px 8px;
  border-radius: 4px;
}

.ficha-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
  padding: 3px 8px;
  border-radius: 4px;
}

.ficha-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.ficha-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.ficha-actions {
  display: flex;
  gap: 10px;
}

.btn-ficha-download {
  flex: 1;
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-ficha-download:hover {
  background: var(--accent-gold);
  color: #0f172a;
}

.btn-ficha-preview {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ficha-preview:hover {
  background: #e2e8f0;
}

/* POR QUE ELEGIRNOS / VALOR */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.why-us-content h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 18px;
}

.why-us-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 34px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-icon {
  width: 28px;
  height: 28px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-text {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
}

.why-us-image-wrap {
  position: relative;
}

.why-us-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

/* WORKFLOW / COMO TRABAJAMOS */
.workflow-section {
  background: #ffffff;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  background: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* FORMULARIO COTIZADOR WHATSAPP */
.quote-section {
  background: linear-gradient(135deg, #092c4c 0%, #0d3b66 100%);
  color: #ffffff;
}

.quote-box {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.quote-box h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  text-align: center;
}

.quote-box p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.25s;
}

.form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-whatsapp-quote {
  width: 100%;
  background: var(--accent-gold);
  color: #0f172a;
  border: none;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-whatsapp-quote:hover {
  background: var(--accent-gold-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.quote-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

/* FOOTER */
.footer {
  background: #041424;
  color: #94a3b8;
  padding: 60px 0 24px;
  font-size: 0.92rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-about p {
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 20px;
}

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

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.footer-contact i {
  color: var(--accent-gold);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
}

.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.credit-link:hover {
  color: #ffffff;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.tsc-credit-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
}

/* BOTONES FLOTANTES */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-whatsapp {
  background: var(--whatsapp-green);
}

.float-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.1);
}

.float-phone {
  background: var(--primary);
}

.float-phone:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

/* MODAL DE PREVIEW */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-head {
  padding: 16px 20px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  text-align: center;
}

.modal-body img {
  margin: 0 auto;
  max-height: 70vh;
  object-fit: contain;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-grid, .why-us-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    align-items: flex-start;
    gap: 18px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
