/* ===== VARIABLES Y RESET ===== */
:root {
  --anthracite: #2D3436;
  --anthracite-light: #3D4447;
  --anthracite-dark: #1E2324;
  --dex-orange: #F57C00;
  --dex-orange-dark: #E65100;
  --dex-yellow: #FFB300;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--anthracite);
  color: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== UTILIDADES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-orange { color: var(--dex-orange); }
.text-yellow { color: var(--dex-yellow); }
.text-gray { color: var(--gray-400); }
.text-dark { color: var(--anthracite); }

.bg-anthracite { background-color: var(--anthracite); }
.bg-gray { background-color: var(--gray-50); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-orange {
  background-color: var(--dex-orange);
  color: var(--white);
}

.btn-orange:hover {
  background-color: var(--dex-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  background-color: var(--dex-yellow);
  color: var(--anthracite);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-yellow {
  background-color: rgba(255, 179, 0, 0.2);
  color: var(--dex-yellow);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto 3rem;
}

@media (max-width: 768px) {
  .section-title { font-size: 1.75rem; }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(45, 52, 54, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

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

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

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav a:hover {
  background-color: var(--dex-orange);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  color: var(--dex-yellow);
  font-weight: 500;
}

.header-btn {
  background-color: var(--dex-orange);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.header-btn:hover {
  background-color: var(--dex-orange-dark);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .mobile-menu-btn { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(45, 52, 54, 0.8);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-200);
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  background-color: rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dex-orange);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-300);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-value { font-size: 1.75rem; }
}

/* ===== CALIDAD ===== */
.quality {
  padding: 5rem 0;
  background-color: var(--gray-50);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quality-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.quality-point {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.quality-point:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.quality-point svg {
  width: 2rem;
  height: 2rem;
  color: var(--dex-orange);
  margin-bottom: 0.75rem;
}

.quality-point span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--anthracite);
}

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

/* ===== SERVICIOS ===== */
.services {
  padding: 5rem 0;
}

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

.service-card {
  background-color: var(--anthracite-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--dex-orange);
  transform: translateY(-5px);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(245, 124, 0, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--dex-orange);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
}

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

/* ===== CLIENTES/CONFIANZA ===== */
.clients {
  padding: 5rem 0;
  background-color: var(--anthracite);
}

.clients-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.clients-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.clients-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clients-image-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: rgba(245, 124, 0, 0.9);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

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

.trust-feature {
  background-color: var(--anthracite-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 1.25rem;
  transition: border-color 0.3s ease;
}

.trust-feature:hover {
  border-color: rgba(245, 124, 0, 0.3);
}

.trust-feature svg {
  width: 2rem;
  height: 2rem;
  color: var(--dex-orange);
  margin-bottom: 0.75rem;
}

.trust-feature h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.trust-feature p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.stats-bar {
  background: linear-gradient(90deg, rgba(245,124,0,0.2), rgba(255,179,0,0.1), rgba(245,124,0,0.2));
  border: 1px solid rgba(245,124,0,0.3);
  border-radius: 0.75rem;
  padding: 2rem;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stats-bar-item p:first-child {
  font-size: 2.5rem;
  font-weight: 700;
}

.stats-bar-item p:last-child {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

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

/* ===== RESPUESTA RÁPIDA ===== */
.response {
  padding: 5rem 0;
  background-color: var(--anthracite-light);
}

.response-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--dex-yellow);
  color: var(--anthracite);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.response h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.response-text {
  color: var(--gray-300);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.response-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.response-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 0.5rem;
}

.response-feature svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--dex-orange);
  flex-shrink: 0;
}

.response-feature h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.response-feature p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.response-image {
  aspect-ratio: 4/3;
  border-radius: 0.75rem;
  overflow: hidden;
}

.response-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .response-content { grid-template-columns: 1fr; }
  .response h2 { font-size: 1.5rem; }
}

/* ===== SECTORES ===== */
.sectors {
  padding: 5rem 0;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.sector-card {
  background-color: var(--anthracite-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.sector-card:hover {
  border-color: var(--dex-orange);
  transform: translateY(-5px);
}

.sector-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(245, 124, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.sector-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--dex-orange);
}

.sector-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sector-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

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

/* ===== CERTIFICACIONES ===== */
.certifications {
  padding: 5rem 0;
  background-color: var(--anthracite-light);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background-color: var(--anthracite);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.cert-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(245, 124, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.cert-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--dex-orange);
}

.cert-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cert-card p {
  font-size: 0.8rem;
  color: var(--gray-400);
}

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

/* ===== CONTACTO ===== */
.contact {
  padding: 5rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.contact-item svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--dex-orange);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-item h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
  color: var(--gray-400);
  font-size: 0.9rem;
}

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

.contact-form {
  background-color: var(--anthracite-light);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--anthracite);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--dex-orange);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--dex-orange);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: var(--dex-orange-dark);
}

@media (max-width: 768px) {
  .contact-content { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--anthracite-dark);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

.footer-logo img {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: var(--gray-400);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dex-orange);
}

.footer-section p,
.footer-section a {
  display: block;
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--dex-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-500);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: scale(1.05);
}

.whatsapp-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 640px) {
  .whatsapp-btn span { display: none; }
  .whatsapp-btn { padding: 1rem; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--dex-orange);
}
