:root {
  --primary-color: #ffc107;
  --primary-hover: #ffd54f;
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --text-light: #ffffff;
  --text-gray: #cccccc;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #128c7e;
  --font-main: "Inter", sans-serif;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  -webkit-tap-highlight-color: rgba(255, 193, 7, 0.3);
}

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 75px;
}

@media (min-width: 992px) {
  html { scroll-padding-top: 100px; }
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 0%, #2a2a2a 0%, #121212 60%);
  color: var(--text-light);
  line-height: 1.6;
  padding-bottom: 80px;
}

/* UTILIDAD */
.no-scroll { overflow: hidden !important; touch-action: none; }

/* SEGURIDAD: Ocultar Honeypot */
.visual-hidden {
    opacity: 0;
    position: absolute;
    top: 0; left: 0; height: 0; width: 0; z-index: -1;
}

/* ACCESIBILIDAD */
.skip-link {
    position: absolute; top: -40px; left: 0; background: var(--primary-color);
    color: #000; padding: 8px; z-index: 2000; transition: top 0.3s;
    font-weight: bold; text-decoration: none;
}
.skip-link:focus { top: 0; }

@media (min-width: 768px) { body { padding-bottom: 0; } }

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); }

h1, h2, h3 { 
  font-weight: 700; line-height: 1.2; margin-bottom: var(--spacing-md); text-wrap: balance; 
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); text-transform: uppercase; }
h2 { font-size: 2rem; text-align: center; color: var(--primary-color); }
.text-gradient { color: var(--primary-color); }

.phone-link { text-decoration: none; font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background-color: var(--primary-color); color: var(--bg-dark); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-whatsapp { background-color: var(--whatsapp-color); color: white; }
.btn-whatsapp:hover { background-color: var(--whatsapp-hover); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.1rem; }
.btn:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 4px; }

.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: background-color 0.3s; padding: 10px 0;
  background-color: rgba(18, 18, 18, 0.95);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: white; }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-weight: 900; }
.logo-text .highlight { color: var(--primary-color); }

.mobile-menu-btn {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 30px; height: 21px; background: none; border: none; cursor: pointer; padding: 0; z-index: 1002;
}
.mobile-menu-btn .bar { width: 100%; height: 3px; background-color: white; border-radius: 3px; }
.menu-close-btn { display: none; }
.header-actions { display: none; }

@media (max-width: 991px) {
  .nav-menu {
    display: flex; position: fixed; top: 0; left: 0; width: 100%; height: auto; min-height: 350px;
    background-color: rgba(18, 18, 18, 0.98); flex-direction: column;
    justify-content: flex-start; padding-top: 100px; padding-bottom: 60px;
    transform: translateY(-100%); transition: transform 0.3s ease-in-out;
    z-index: 1001; align-items: center; gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;
  }
  .nav-menu.active { transform: translateY(0); }
  .nav-menu a {
    font-size: 1.2rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
    text-decoration: none; color: var(--text-light); text-align: center; width: 100%;
  }
  .mobile-menu-btn { display: flex; }
  .menu-close-btn {
    display: block; position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    background: none; border: none; color: white; font-size: 2rem; cursor: pointer;
  }
}

@media (min-width: 992px) {
  .mobile-menu-btn { display: flex; order: 3; z-index: 1002; margin-left: 20px; }
  .header-actions { display: flex; gap: 15px; margin-left: auto; order: 2; }
  .nav-menu {
    display: flex; position: fixed; top: 0; right: 0; width: 300px; height: 100vh;
    background-color: var(--bg-dark); flex-direction: column;
    justify-content: flex-start; align-items: flex-start;
    padding-top: 100px; padding-left: 30px; padding-right: 30px;
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
    z-index: 1001; gap: 20px;
  }
  .nav-menu.active { transform: translateX(0); }
  .nav-menu a {
    font-size: 1.2rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
    text-align: left; color: var(--text-light); padding: 10px 0;
    text-decoration: none; position: relative; display: inline-block; width: auto;
  }
  .nav-menu a::after {
    content: ''; position: absolute; width: 100%; height: 3px; bottom: 0; left: 0;
    background-color: var(--primary-color); transition: transform 0.3s ease; transform: scaleX(0); transform-origin: left;
  }
  .nav-menu a:hover::after, .nav-menu a:focus::after { transform: scaleX(1); }
  .nav-menu a:focus { outline: none; }
  .menu-close-btn { display: none; }
}

.hero {
  padding-top: 120px; padding-bottom: 80px; min-height: 80vh; display: flex; align-items: center;
  position: relative; overflow: hidden; text-align: center;
}
.hero-bg-image {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; object-position: center 20%; 
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)); z-index: -1;
}
.hero-content { max-width: 800px; position: relative; z-index: 1; }
.hero-badges { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; align-items: center; }

.badge { 
  background: rgba(0, 0, 0, 0.6); padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; 
  backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.2); 
}

.hero p { font-size: 1.2rem; color: var(--text-gray); margin-bottom: 30px; }
.hero-buttons { display: flex; flex-direction: column; gap: 15px; justify-content: center; }

@media (min-width: 768px) { .hero-badges, .hero-buttons { flex-direction: row; justify-content: center; } }
@media (max-width: 380px) { .hero h1 { font-size: 1.8rem; } .sticky-btn span { font-size: 0.8rem; } }

.about-us { background-color: var(--bg-dark); overflow: hidden; padding: var(--spacing-xl) 0; }
.about-container { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.about-image-wrapper { position: relative; max-width: 500px; margin: 0 auto; }
.about-image { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); filter: brightness(0.9) contrast(1.1); }
.experience-badge {
  position: absolute; bottom: -20px; right: -20px; background: var(--primary-color);
  color: var(--bg-dark); padding: 20px; border-radius: 15px; text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); font-weight: 900; border: 4px solid var(--bg-dark);
}
.experience-badge .years { display: block; font-size: 2.5rem; }
.experience-badge .text { font-size: 0.8rem; text-transform: uppercase; }
.mini-title { color: var(--primary-color); font-weight: 700; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.lead-text { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 25px; }
.trust-points { list-style: none; margin-bottom: 30px; }
.trust-points li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.trust-points li i { color: var(--whatsapp-color); font-size: 1.2rem; }
@media (min-width: 992px) { .about-container { grid-template-columns: 1fr 1fr; gap: 60px; } .about-image-wrapper { margin: 0; } }

.section { padding: var(--spacing-xl) 0; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }

/* NUEVO: Estilos para que las tarjetas de servicio sean enlaces limpios */
a.service-card { text-decoration: none; color: inherit; display: block; height: 100%; }
a.service-card:active { transform: scale(0.98); background-color: rgba(255, 193, 7, 0.1); }

.service-card {
  background: var(--bg-card); padding: 30px; border-radius: 12px; text-align: center;
  transition: transform 0.3s; border: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.icon-box { width: 70px; height: 70px; background: rgba(255, 193, 7, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.icon-box i { font-size: 2rem; color: var(--primary-color); }
.service-card h3 { margin-bottom: 15px; }
.service-card p { color: var(--text-gray); }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.coverage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 30px; list-style: none; }
.coverage-item {
  background: rgba(255, 255, 255, 0.05); border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease; cursor: pointer; overflow: hidden;
}
.coverage-item a {
    text-decoration: none; color: var(--text-light); display: flex; align-items: center; gap: 10px; width: 100%; font-weight: 600; padding: 15px;
}
.coverage-item a:focus { outline: none; }
.coverage-item a:focus-visible { 
    outline: 2px solid var(--primary-color); outline-offset: -2px; border-radius: 8px; background: rgba(255, 193, 7, 0.1);
}
.coverage-item:hover { border-color: var(--primary-color); background: rgba(255, 193, 7, 0.05); transform: translateX(5px); }
.coverage-item i { color: var(--primary-color); }
@media (min-width: 768px) { .coverage-grid { grid-template-columns: repeat(4, 1fr); } }

.testimonials, .faq, .contact-form { content-visibility: auto; contain-intrinsic-size: 1px 500px; }

.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
.testimonial-card { background: var(--bg-card); padding: 30px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); }
.testimonial-card .stars { color: var(--primary-color); margin-bottom: 15px; }
.testimonial-card p { font-style: italic; color: var(--text-gray); margin-bottom: 20px; }
.testimonial-card .client-name { font-weight: 700; text-align: right; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.faq-container { max-width: 800px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05); }
.faq-question { width: 100%; padding: 20px; display: flex; justify-content: space-between; align-items: center; background: none; border: none; color: var(--text-light); font-size: 1.1rem; font-weight: 600; cursor: pointer; text-align: left; }
.faq-question:hover { background: rgba(255, 255, 255, 0.02); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: rgba(0, 0, 0, 0.2); }
.faq-answer p { padding: 20px; color: var(--text-gray); border-top: 1px solid rgba(255, 255, 255, 0.05); }

.contact-form-container { max-width: 600px; margin: 30px auto; background: var(--bg-card); padding: 30px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: flex; flex-wrap: wrap; gap: 20px; }
.form-group { flex: 1 1 45%; display: flex; flex-direction: column; }
.form-group.full-width { flex: 1 1 100%; }
.contact-form-container label { font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.contact-form-container input, .contact-form-container textarea, .contact-form-container select {
  padding: 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px;
  background-color: var(--bg-dark); color: var(--text-light); font-size: 1rem; transition: border-color 0.3s;
}
.contact-form-container input::placeholder, .contact-form-container textarea::placeholder, .contact-form-container select::placeholder {
    color: rgba(255, 255, 255, 0.5); opacity: 1;
}
.contact-form-container input:focus, .contact-form-container textarea:focus { border-color: var(--primary-color); outline: none; }
.contact-form-container textarea { resize: vertical; }
@media (max-width: 600px) { .form-group { flex: 1 1 100%; } }

.footer { background: #000; padding: 30px 0; text-align: center; color: var(--text-gray); margin-bottom: 60px; }
@media (min-width: 768px) { .footer { margin-bottom: 0; } }

.footer-info { margin-bottom: 15px; }
.footer-info p { margin-bottom: 5px; }
.footer-info i { color: var(--primary-color); }

.mobile-sticky-footer { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; z-index: 999; height: 70px; box-shadow: 0 -4px 10px rgba(0,0,0,0.3); }
@media (min-width: 768px) { .mobile-sticky-footer { display: none; } }
.sticky-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; gap: 5px; }
.sticky-btn.whatsapp { background-color: #25d366; color: white; }
.sticky-btn.call { background-color: var(--primary-color); color: var(--bg-dark); }
.sticky-btn i { font-size: 1.5rem; }

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}
.sticky-btn.call i { animation: wiggle 2s infinite ease-in-out; animation-delay: 1s; }

.why-us { background: var(--bg-card); }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 30px; text-align: center; }
.trust-item h3 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 5px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); } }
.btn-primary.btn-lg { animation: pulse 2s infinite; will-change: box-shadow; }
.section-subtitle { text-align: center; color: var(--text-gray); margin-bottom: 30px; margin-top: -10px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.desktop-whatsapp {
    display: none; position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50%; align-items: center; justify-content: center;
    font-size: 35px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s; text-decoration: none;
}
.desktop-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(0,0,0,0.4); }

@media (min-width: 768px) { .desktop-whatsapp { display: flex; } }