:root {
  --primary: #000080;
  --primary-light: #1E40AF;
  --primary-dark: #1E3A8A;
  --accent: #FFC107;
  --accent-dark: #E5AC00;
  --success: #10B981;
  --danger: #EF4444;
  --whatsapp: #25D366;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --text-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 120px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

.container-fluid {
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*="col-"] {
  padding: 0 15px;
}

.col-12 { flex: 0 0 100%; }
.col-md-3 { flex: 0 0 25%; }
.col-md-4 { flex: 0 0 33.333%; }
.col-md-6 { flex: 0 0 50%; }
.col-md-9 { flex: 0 0 75%; }
.col-xl-3 { flex: 0 0 25%; }
.col-xl-6 { flex: 0 0 50%; }
.col-lg-3 { flex: 0 0 25%; }
.col-lg-6 { flex: 0 0 50%; }

@media (max-width: 768px) {
  .col-md-3, .col-md-4, .col-md-6, .col-md-9, .col-lg-3, .col-lg-6 {
    flex: 0 0 100%;
  }
  .col-xl-3, .col-xl-6 {
    flex: 0 0 100%;
  }
}

.head {
  height: 70px;
}

.fila-flex {
  display: flex;
}

.columna-flex {
  flex: 1;
  padding: 0;
  text-align: center;
  border: 0 solid #ccc;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--accent);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--text-white);
}

.btn-whatsapp:hover {
  background: #20BA5C;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.main-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  flex-shrink: 0;
}

.content {
  flex: 1;
}

footer {
  flex-shrink: 0;
}

.header-top-bar {
  background: var(--primary);
  padding: 10px 0;
  color: var(--text-white);
}

.header-top-bar .row {
  align-items: center;
  justify-content: space-between;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  font-size: 14px;
}

.header-contact a:hover {
  color: var(--accent);
}

.header-contact img {
  width: 24px;
  height: 24px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-white);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--accent);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.header-main {
  background: var(--bg-white);
  padding: 15px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main .row {
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

.menu-area nav ul {
  display: flex;
  gap: 30px;
}

.menu-area nav ul li a {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 0;
  position: relative;
}

.menu-area nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.menu-area nav ul li a:hover::after,
.menu-area nav ul li.active a::after {
  width: 100%;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: 30px 20px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 20px 15px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .header-contact {
    display: none;
  }
  .menu-area {
    display: none;
  }
}

.products-section {
  padding: 40px 20px;
  background: var(--bg-light);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-card.yellow {
  background: var(--accent);
}

.product-card.green {
  background: var(--success);
}

.product-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.product-icon img {
  width: 70px;
  height: 70px;
  margin: 0 auto;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.product-card.yellow .product-title,
.product-card.green .product-title {
  color: var(--primary);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.product-features {
  text-align: left;
  margin-bottom: 15px;
  font-size: 13px;
}

.product-features li {
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  font-size: 13px;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.product-card.yellow .product-features li::before {
  color: var(--primary);
}

.product-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.manuals-section {
  padding: 60px 20px;
  background: var(--bg-white);
}

.manuals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-description {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--text-light);
}

.section-description strong {
  color: var(--primary);
}

.payment-section {
  padding: 60px 20px;
  background: var(--bg-light);
}

.payment-methods {
  text-align: center;
  margin-bottom: 30px;
}

.payment-methods img {
  max-width: 600px;
  margin: 0 auto;
}

.payment-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-section {
  padding: 60px 20px;
  background: var(--primary);
  color: var(--text-white);
}

.contact-section .section-title {
  color: var(--text-white);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent);
}

.contact-item a {
  color: var(--text-white);
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  color: var(--text-dark);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

footer {
  background: var(--text-dark);
  color: var(--text-white);
  padding: 40px 20px 20px;
}

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

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-section p {
  color: #9CA3AF;
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #374151;
  color: #9CA3AF;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  animation: pulse 2s infinite;
}

.whatsapp-float i {
  font-size: 32px;
  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse {
  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);
  }
}

.back_box {
  padding: 40px 20px;
  background: var(--bg-light);
}

.three_box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: var(--transition);
}

.three_box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.three_box span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 15px;
}

.three_box.yellow {
  background: var(--accent);
}

.three_box.green {
  background: var(--success);
  color: white;
}

.wellcome {
  padding: 60px 20px;
}

.ourwork {
  padding: 60px 20px;
  background: var(--bg-light);
}

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

.titlepage h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.titlepage p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.wellcome-box {
  margin-bottom: 20px;
}

.padd_rile {
  padding-right: 15px;
}

.padding_l {
  padding-left: 15px;
}

.padd_ri {
  padding-right: 0;
  padding-left: 15px;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .manuals-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .payment-buttons {
    flex-direction: column;
    align-items: center;
  }
  .menu-area nav ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

#contacto .container,
#modospagos .container,
#service .container {
  max-width: 1200px;
}

section {
  width: 100%;
}

.form-success {
  display: none;
  background: var(--success);
  color: white;
  padding: 15px;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 15px;
}

.form-success.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.form-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--danger);
}

.form-group.error .form-error {
  display: block;
}

input::placeholder,
textarea::placeholder {
  color: #9CA3AF;
}

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

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  .menu-area {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: var(--shadow);
    display: none;
  }
  .menu-area.active {
    display: block;
  }
}
