/* ══════════════════════════════════════════════════════════════════════════════
   Grupo Vinautos S.A.S — Estilos principales
   ══════════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #0a0c12;
  --surface: #13161f;
  --card: #1a1e2b;
  --border: #252836;
  --accent: #10b981;
  --accent2: #17996A;
  --green: #10b981;
  --red: #ef4444;
  --blue: #3b82f6;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Background Video Parallax ── */
.video-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.video-bg-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.video-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(5, 7, 10, 0.75);
  pointer-events: none;
}

/* ── Animaciones Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

/* ── Hero ── */
.hero-section {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 99px;
  font-size: 0.8rem;
  color: #6ee7b7;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 800px;
}

@media(min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── Testimonials ── */
.testimonials-section {
  margin: 80px auto 40px;
  max-width: 1000px;
  position: relative;
}

.testim-header {
  text-align: center;
  margin-bottom: 40px;
}

.testim-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.testim-header p {
  color: var(--muted);
}

.testimonials-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-height: 500px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.testim-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scroll-vertical 25s linear infinite;
}

.testim-col.reverse {
  animation-direction: reverse;
  animation-duration: 30s;
}

.testim-card {
  background: rgba(26, 30, 43, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media(max-width: 600px) {

  .testim-col:nth-child(3),
  .testim-col:nth-child(2) {
    display: none;
  }

  .testim-card {
    width: 300px;
  }
}

@media(min-width: 601px) and (max-width: 900px) {
  .testim-col:nth-child(3) {
    display: none;
  }
}

.testim-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.testim-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testim-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.testim-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.testim-role {
  font-size: 0.75rem;
  color: var(--accent);
}

@keyframes scroll-vertical {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(calc(-50% - 10px));
  }
}

a {
  color: var(--accent);
  text-decoration: none
}

/* ── Navbar ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(10, 12, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.nav-logo img {
  height: 55px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 25px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.nav-btn {
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}

.btn-login {
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
}

.btn-login:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #25D366;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
}

/* ── Layout & Sections ── */
main {
  flex: 1;
  padding-top: 80px;
  /* Offset for navbar */
  width: 100%;
}

.info-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.portal-section {
  max-width: 680px;
  margin: 0 auto 80px;
  padding: 0 16px;
}

.info-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text);
}

.info-title span {
  background: linear-gradient(to right, #10b981, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Nosotros ── */
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.nosotros-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nosotros-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Servicios ── */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.servicio-card {
  background: rgba(20, 24, 36, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.servicio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.servicio-numero {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(16, 185, 129, 0.12);
  position: absolute;
  top: 10px;
  right: 20px;
  transition: 0.3s;
  line-height: 1;
}

.servicio-card:hover .servicio-numero {
  color: rgba(16, 185, 129, 0.2);
}

.servicio-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-right: 40px;
  z-index: 1;
}

.servicio-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  z-index: 1;
  flex-grow: 1;
}

.servicio-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border-radius: 6px;
  margin-top: 16px;
  font-weight: 700;
  align-self: flex-start;
  z-index: 1;
}

@media(max-width: 900px) {
  .nosotros-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2rem !important;
  }
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px
}

.tab {
  flex: 1;
  padding: 10px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: .2s;
  text-align: center
}

.tab.active {
  background: var(--accent);
  color: #0a0c12;
  border-color: var(--accent)
}

.tab:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent)
}

/* ── Section ── */
.section {
  display: none
}

.section.active {
  display: block
}

/* ── Card ── */
.card {
  background: rgba(15, 23, 42, 0.65);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px
}

.card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px
}

.card p.sub {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 18px
}

/* ── Form ── */
label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .04em
}

input,
select,
textarea {
  width: 100%;
  background: #0f1118;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  transition: .2s;
  margin-bottom: 14px
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .12)
}

input::placeholder {
  color: #3d4255
}

.mono {
  font-family: 'Courier New', monospace;
  letter-spacing: .06em;
  font-size: .85rem
}

.hint {
  font-size: .74rem;
  color: var(--muted);
  margin-top: -10px;
  margin-bottom: 14px
}

.hint span {
  color: var(--accent)
}

/* ── Buttons ── */
.btn {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  font-family: inherit
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #0a0c12
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px)
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-top: 10px
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent)
}

/* ── Result ── */
#result,
#result2 {
  margin-top: 20px
}

.result-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--green);
  padding: 20px;
  animation: fadeIn .3s ease
}

.result-card.error {
  border-color: var(--red)
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700
}

.badge-ok {
  background: rgba(16, 185, 129, .15);
  color: var(--green)
}

.badge-err {
  background: rgba(239, 68, 68, .15);
  color: var(--red)
}

.badge-warn {
  background: rgba(245, 158, 11, .15);
  color: var(--accent)
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.result-item {
  background: var(--card);
  border-radius: 8px;
  padding: 10px 12px
}

.result-item .ri-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 3px
}

.result-item .ri-val {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all
}

.result-item.full {
  grid-column: 1/-1
}

/* ── Alert box ── */
.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .82rem;
  margin-top: 14px
}

.alert-warn {
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .3);
  color: #fde68a
}

.alert-ok {
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .3);
  color: #6ee7b7
}

.alert-err {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #fca5a5
}

/* ── Pago info ── */
.pago-box {
  background: #0f1118;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin: 14px 0
}

.pago-box .pago-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px
}

.pago-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem
}

.pago-row:last-child {
  border: none
}

.pago-row strong {
  color: var(--accent)
}

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(16, 185, 129, .3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 8px
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ── Footer ── */
.main-footer {
  background: rgba(10, 12, 18, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 20px 20px;
  margin-top: 40px;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  height: 60px;
  object-fit: contain;
}

.footer-info p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-info a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ── Menú Móvil ── */
.hamburger {
  display: none;
  cursor: pointer;
  color: var(--text);
  margin-left: 15px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 12, 18, 0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 30px;
  cursor: pointer;
  color: var(--text);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-links a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

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

@media(max-width: 900px) {
  .hamburger {
    display: block;
  }

  .hide-mobile {
    display: none !important;
  }
}
