:root {
  --primary-red: #E30613;
  --primary-dark: #111111;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-main: #333333;
  --text-muted: #666666;
  --border-color: #E0E0E0;
  --transition: all 0.3s ease;
}

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

html {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  color: var(--text-main);
  line-height: 1.6;
}

body {
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--primary-dark);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-red);
  margin: 1rem auto 0;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #c40510;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
}

.btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--primary-dark);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: var(--transition);
}

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

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 500;
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(17, 17, 17, 0.8), rgba(17, 17, 17, 0.9)), url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M54.627 0l.83.83-1.66 1.66-.83-.83L54.627 0zM30 30l1.66 1.66-3.32 3.32L26.68 33.32 30 30zm-24.627 0l.83.83-1.66 1.66-.83-.83L5.373 30zM54.627 60l.83-.83-1.66-1.66-.83.83 1.66 1.66z" fill="%23e30613" fill-opacity="0.1" fill-rule="evenodd"/%3E%3C/svg%3E');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--bg-white);
  text-align: center;
  padding-top: 80px;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--bg-white);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #ddd;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-icon {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
}

.about-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Services Section */
.services {
  background-color: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--primary-red);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-red);
}

.service-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

/* Cableado Estructurado */
.cableado-section {
  background-color: var(--bg-light);
}

.cableado-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cableado-image-col {
  position: relative;
}

.cableado-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: block;
}

.cableado-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  background-color: var(--primary-red);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

.eyebrow {
  display: block;
  color: var(--primary-red);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.cableado-text-col h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cableado-text-col .intro-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cableado-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.cableado-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.cableado-features i {
  color: var(--primary-red);
  font-size: 1.2rem;
  margin-top: 0.25rem;
}

.cableado-features span {
  color: var(--text-main);
}

.mt-4 {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .cableado-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .cableado-image-col {
    order: -1;
  }
  
  .cableado-badge {
    bottom: -15px;
    right: 10px;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Avaya Solutions */
.avaya-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.chip {
  background-color: var(--bg-white);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.chip:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* Avaya Implementation */
.implementation {
  background-color: var(--primary-dark);
  color: var(--bg-white);
}

.implementation .section-title {
  color: var(--bg-white);
}

.implementation-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.impl-col h3 {
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.impl-list {
  list-style: none;
}

.impl-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.impl-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-red);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-weight: 600;
  color: var(--primary-dark);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 3rem;
  border-radius: 8px;
}

.contact-info h3 {
  color: var(--bg-white);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item i {
  color: var(--primary-red);
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
}

.form-control {
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.1);
}

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

.form-success {
  display: none;
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: #000;
  color: var(--bg-white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer-links a {
  color: var(--bg-white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-red);
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.footer-social a {
  color: var(--bg-white);
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .about-grid, .services-grid, .stats-grid { gap: 1.5rem; }
}

@media (max-width: 768px) {
  .navbar { position: relative; }
  .hamburger { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  .nav-links.active { max-height: 440px; }
  .nav-links li { padding: 1rem 2rem; border-bottom: 1px solid var(--border-color); }
  
  .hero h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; }
  
  .about-grid, .services-grid, .implementation-grid, .stats-grid, .contact-container, .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links, .footer-social { justify-content: flex-start; }
}

/* ─────────────────────────────────────────────
   Clientes y Casos de Éxito
   ───────────────────────────────────────────── */
.clients-section {
  background-color: var(--bg-white);
}

.clients-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Grid de logos */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 24px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  filter: grayscale(100%);
  transition: var(--transition);
  cursor: default;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.client-logo img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.client-logo:hover {
  filter: grayscale(0%);
  border-color: var(--primary-red);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* Título de casos */
.cases-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  color: var(--primary-dark);
  position: relative;
}

.cases-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--primary-red);
  margin: 0.75rem auto 0;
}

/* Grid de casos */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.case-card {
  background-color: var(--bg-light);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.case-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--primary-red);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.case-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background-color: rgba(227, 6, 19, 0.1);
  color: var(--primary-red);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: fit-content;
}

.case-card h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  line-height: 1.4;
}

.case-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.case-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.case-metrics span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.case-metrics span i {
  color: var(--primary-red);
  width: 14px;
  text-align: center;
}

/* Responsive – Clientes */
@media (max-width: 1024px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

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

@media (max-width: 480px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
