/* ============================================
   TAVO GROUP — Clone CSS
   Font: Open Sans | Primary: #F79200
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  line-height: 1.7;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #F79200; text-decoration: none; transition: color .3s ease; }
a:hover { color: #e08500; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333;
  line-height: 1.1;
  margin-bottom: 10px;
}
h1 { font-size: 36px; font-weight: 800; }
h2 { font-size: 41px; font-weight: 800; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
p { font-size: 15px; font-weight: 400; line-height: 1.7; margin-bottom: 15px; }

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background-color .3s ease, transform .2s ease, box-shadow .3s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,.15); }
.btn-primary { background: #F79200; color: #fff; }
.btn-primary:hover { background: #e08500; color: #fff; }
.btn-outline { background: #fff; color: #F79200; border: 2px solid #F79200; }
.btn-outline:hover { background: #F79200; color: #fff; }
.btn-dark { background: #F79200; color: #000; }
.btn-dark:hover { background: #e08500; color: #000; }

/* --- Header / Nav --- */
.site-header {
  background: #333;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo img { height: 50px; width: auto; }
.site-header .logo { display: flex; align-items: center; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 8px 0;
  position: relative;
  transition: color .3s ease;
}
.main-nav a:hover { color: #F79200; }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #F79200;
  transition: width .3s ease;
}
.main-nav a:hover::after { width: 100%; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 25px; height: 3px; background: #fff; margin: 5px 0; transition: .3s; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247,146,0,.92) 0%, rgba(247,146,0,.75) 50%, rgba(0,0,0,.4) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 650px; }
.hero-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 15px;
  border-left: 3px solid #fff;
  padding-left: 12px;
}
.hero h2 {
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero p {
  color: rgba(255,255,255,.9);
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 15px; margin-bottom: 50px; }
.hero .btn { font-size: 16px; padding: 14px 35px; }
.btn-ghost {
  display: inline-block;
  padding: 14px 35px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 3px;
  cursor: pointer;
  transition: all .3s ease;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stats .stat { text-align: left; }
.hero-stats .stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero-stats .stat span {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Section Shared --- */
.section { padding: 80px 0; }
.section-gray { background: #f0f0f0; }
.section-dark { background: #333; }
.section-orange { background: #F79200; }
.section-title {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  color: #333;
}
.section-dark .section-title,
.section-orange .section-title { color: #fff; }

/* --- Products Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.product-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid #eee;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.product-card a { display: block; text-decoration: none; color: inherit; }
.product-card .product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 15px;
  background: #fff;
}
.product-card h3 {
  padding: 10px 15px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

/* --- Specialties (Telecom / Fibra) --- */
.specialties { padding: 80px 0; background: #333; }
.specialties .section-title { color: #fff; }
.specialty-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.specialty-card {
  text-align: center;
  padding: 30px;
}
.specialty-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 25px;
}
.specialty-card h3 { color: #fff; font-size: 22px; margin-bottom: 15px; }
.specialty-card p { color: rgba(255,255,255,.9); font-size: 14px; margin-bottom: 20px; }

/* --- About Section (Home) --- */
.about-section .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-section .about-text h2 { font-size: 30px; color: #333; margin-bottom: 20px; }
.about-section .about-text p { color: #666; }
.about-section .about-image img { border-radius: 8px; width: 100%; }

/* --- Values Bar --- */
.values-bar {
  padding: 60px 0;
  background: #f0f0f0;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.value-item { padding: 30px 20px; }
.value-item .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-item .icon svg { width: 40px; height: 40px; fill: #F79200; }
.value-item h4 { font-size: 18px; color: #333; }

/* --- Footer --- */
.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-logo img { height: 80px; width: auto; margin-bottom: 15px; }
.footer-logo p { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; }
.footer-contact h4 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.footer-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer-contact .contact-item svg { width: 20px; height: 20px; fill: #F79200; flex-shrink: 0; }
.footer-contact .contact-item span { color: rgba(255,255,255,.9); font-size: 14px; }
.footer-address p { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}
.social-links a:hover { background: #F79200; }
.social-links a svg { width: 18px; height: 18px; fill: #fff; }

/* --- Products Page --- */
.page-header {
  background: #F79200;
  padding: 40px 0;
  text-align: center;
}
.page-header h1 { color: #fff; font-size: 36px; margin: 0; }

.products-page-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  padding: 50px 0;
}

/* Category Sidebar */
.category-sidebar h3 { font-size: 18px; color: #333; margin-bottom: 20px; border-bottom: 2px solid #F79200; padding-bottom: 10px; }
.category-sidebar ul { list-style: none; }
.category-sidebar ul li { margin-bottom: 5px; }
.category-sidebar ul li a {
  display: block;
  padding: 8px 12px;
  color: #666;
  font-size: 14px;
  border-radius: 3px;
  transition: background .2s, color .2s;
}
.category-sidebar ul li a:hover { background: #FFF3E0; color: #F79200; }
.category-sidebar ul li a.active { background: #FFF3E0; color: #F79200; font-weight: 600; }
.category-sidebar ul ul { padding-left: 15px; }
.category-sidebar ul ul li a { font-size: 13px; }

/* --- Single Product Page --- */
.breadcrumb {
  padding: 20px 0;
  font-size: 13px;
  color: #999;
}
.breadcrumb a { color: #F79200; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: #ccc; }

.product-detail-section { padding: 40px 0 80px; }

.product-layout {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 50px;
  align-items: start;
}
.product-image {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  padding: 30px;
}
.product-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.product-info { padding-top: 10px; }
.product-info h1 {
  font-size: 28px;
  font-weight: 800;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
}
.product-categories {
  margin-bottom: 25px;
}
.product-categories .label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.product-cat-tag {
  display: inline-block;
  padding: 5px 14px;
  background: #FFF3E0;
  border: 1px solid #FFE0B2;
  border-radius: 20px;
  color: #F79200;
  font-size: 13px;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: background 0.3s;
}
.product-cat-tag:hover {
  background: #FFE0B2;
}
.product-description {
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 15px;
}
.product-description ul {
  padding-left: 20px;
  margin-top: 10px;
}
.product-description ul li {
  margin-bottom: 6px;
}
.contact-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #F79200;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.contact-btn:hover {
  background: #e08500;
  transform: translateY(-2px);
}

.related-section {
  padding: 60px 0 80px;
  background: #f8f8f8;
}
.related-section h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 40px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.related-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #eee;
  transition: transform 0.3s, box-shadow 0.3s;
}
.related-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.related-product-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  padding: 15px;
}
.related-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.related-product-card h3 {
  padding: 12px 16px 4px;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}
.related-product-card .related-cat {
  display: block;
  padding: 0 16px 14px;
  font-size: 12px;
  color: #F79200;
}

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-info h1 {
    font-size: 22px;
  }
}

/* --- Contact Page --- */
.contact-hero {
  background: linear-gradient(135deg, #F79200 0%, #e08500 100%);
  padding: 70px 0 60px;
  text-align: center;
}
.contact-hero h1 { color: #fff; font-size: 40px; font-weight: 800; margin-bottom: 15px; }
.contact-hero p { color: rgba(255,255,255,.9); font-size: 17px; max-width: 600px; margin: 0 auto; line-height: 1.7; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.contact-info-card {
  text-align: center;
  padding: 40px 25px 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.contact-info-card .icon { margin-bottom: 15px; }
.contact-info-card .icon svg { width: 40px; height: 40px; fill: #F79200; }
.contact-info-card h4 { color: #333; margin-bottom: 8px; font-size: 16px; }
.contact-info-card p { color: #888; font-size: 13px; margin-bottom: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
  align-items: start;
}
.contact-form-wrapper h2 { font-size: 28px; color: #333; margin-bottom: 10px; }
.contact-form-wrapper .form-intro { color: #777; font-size: 14px; margin-bottom: 30px; line-height: 1.7; }
.contact-form { width: 100%; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  margin-bottom: 15px;
  background: #fff;
  transition: border-color .3s, box-shadow .3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #F79200;
  box-shadow: 0 0 0 3px rgba(247,146,0,.1);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form .btn { width: 100%; padding: 16px; font-size: 16px; }

.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,.05);
  border-left: 4px solid #F79200;
}
.sidebar-card h3 { font-size: 18px; color: #333; margin-bottom: 10px; }
.sidebar-card p { font-size: 13px; color: #777; line-height: 1.6; margin-bottom: 0; }
.sidebar-card .social-links { margin-top: 10px; }

/* --- Nosotros Page --- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
}
.about-hero .text h2 { font-size: 30px; margin-bottom: 20px; }
.about-hero .text p { color: #666; }
.about-hero .image img { border-radius: 8px; width: 100%; }

.mvv-section { padding: 60px 0; background: #f8f8f8; }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.mvv-card {
  background: #fff;
  padding: 35px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,.05);
}
.mvv-card h2 { font-size: 24px; color: #F79200; margin-bottom: 15px; }
.mvv-card p { color: #666; font-size: 14px; }
.mvv-card ul { list-style: none; padding: 0; }
.mvv-card ul li { padding: 5px 0; color: #666; font-size: 14px; }
.mvv-card ul li::before { content: '• '; color: #F79200; font-weight: 700; }

/* --- Scroll Animations --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero h2 { font-size: 30px; }
  .products-page-layout { grid-template-columns: 1fr; }
  .category-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-hero { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { order: -1; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #333; flex-direction: column; padding: 20px; gap: 15px; }
  .main-nav.active { display: flex; }
  .nav-toggle { display: block; }
  .hero { min-height: 450px; }
  .hero h2 { font-size: 28px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats .stat strong { font-size: 24px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn, .hero-actions .btn-ghost { text-align: center; }
  .contact-hero h1 { font-size: 28px; }
  .contact-hero p { font-size: 15px; }
  .section { padding: 50px 0; }
  .specialty-cards { grid-template-columns: 1fr; }
  .about-section .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card h3 { font-size: 12px; }
}

/* Success message for form submission */
.success-msg {
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
  color: #2e7d32;
  background: #e8f5e9;
  border-radius: 8px;
  font-weight: 500;
}
