/* --- Brand Variables --- */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text-light: #ffffff;
  --text-muted: #b0b0b0;
  --brand-green: #00FF00;
  --brand-green-hover: #00cc00;
  --border-color: #222222;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Loader Styles --- */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  position: relative;
  width: 320px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  animation: revealLogo 2.5s infinite ease-in-out;
}

.loader-logo {
  width: 100%;
  height: auto;
  display: block;
}

.roller-animator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: var(--brand-green);
  z-index: 10;
  filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.8));
  animation: paintDown 2.5s infinite ease-in-out;
}

@keyframes revealLogo {
  0% { clip-path: inset(0 0 100% 0); }
  70%, 100% { clip-path: inset(0 0 0 0); }
}

@keyframes paintDown {
  0% { top: -30px; opacity: 0; }
  10% { opacity: 1; }
  70% { top: 150px; opacity: 1; }
  85%, 100% { top: 150px; opacity: 0; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.highlight {
  color: var(--brand-green);
}

.section-title {
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--brand-green);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.section-title p {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--brand-green);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--brand-green-hover);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  margin-left: 10px;
}

.btn-secondary:hover {
  background-color: #fff;
  color: #000;
}

/* Navigation */
.navbar {
  background-color: rgba(10, 10, 10, 0.95);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -1px;
}

.brand-logo .subtext {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
}

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

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--brand-green);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section & Header (Imágenes más claras con overlay suave) */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 60px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradiente más claro para apreciar mejor las imágenes de fondo */
  background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(0, 255, 0, 0.15);
  color: var(--brand-green);
  border: 1px solid var(--brand-green);
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

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

.highlight-text {
  color: var(--brand-green);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* --- About Section (Imagen grande a la izquierda sin marco, texto a la derecha) --- */
.about-section {
  padding: 7rem 0;
  background-color: var(--bg-dark);
}

.about-grid-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr; /* Da aún más espacio a la columna izquierda */
  gap: 4rem;
  align-items: center;
}

.about-img-col {
  position: relative;
  width: 100%;
}

.about-clean-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.experience-badge-floating {
  position: absolute;
  bottom: -25px;
  right: -15px;
  background: var(--brand-green);
  color: #000;
  padding: 1.5rem 2.2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.experience-badge-floating .number {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.experience-badge-floating .text {
  font-weight: 700;
  font-size: 0.85rem;
}

.about-content-col .section-title {
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-content-col p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.3rem;
}

.about-features {
  list-style: none;
  margin-top: 1.8rem;
}

.about-features li {
  margin-bottom: 1.1rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.about-features i {
  color: var(--brand-green);
  margin-right: 10px;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background-color: #0f0f0f;
}

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

.service-card {
  background-color: var(--bg-card);
  padding: 2.5rem 1.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-green);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--brand-green);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Before & After Section */
.before-after-section {
  padding: 6rem 0;
  background-color: var(--bg-dark);
}

.ba-carousel-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 50px;
}

.ba-carousel-track-container {
  overflow: hidden;
  border-radius: 12px;
}

.ba-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.ba-card {
  min-width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.comparison-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.comparison-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.img-before-wrapper img {
  width: 820px;
  max-width: none;
}

.label {
  position: absolute;
  top: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--brand-green);
  padding: 5px 15px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--brand-green);
  z-index: 3;
}

.label-before { left: 20px; }
.label-after { right: 20px; }

.slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 10;
  cursor: ew-resize;
}

.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: var(--brand-green);
  z-index: 4;
  pointer-events: none;
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-card-info {
  text-align: center;
}

.ba-card-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.ba-card-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.ba-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--brand-green);
  border: 1px solid var(--brand-green);
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ba-nav-btn:hover {
  background-color: var(--brand-green);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.ba-nav-btn.prev-btn { left: 0; }
.ba-nav-btn.next-btn { right: 0; }

.ba-dots-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.8rem;
}

.ba-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ba-dot.active {
  background-color: var(--brand-green);
  width: 28px;
  border-radius: 10px;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background-color: #0f0f0f;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

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

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.info-item i {
  color: var(--brand-green);
  font-size: 1.2rem;
  margin-top: 4px;
}

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

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

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
}

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

.full-width.btn {
  grid-column: span 2;
}

/* Footer */
footer {
  background-color: #050505;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* WhatsApp Floating Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 2000;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-chat-box {
  display: none;
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 320px;
  background-color: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  overflow: hidden;
}

.whatsapp-chat-box.active {
  display: block;
}

.chat-header {
  background-color: #075e54;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.chat-header .avatar {
  width: 40px;
  height: 40px;
  background-color: #fff;
  color: #075e54;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-info h4 {
  font-size: 0.95rem;
  color: #fff;
}

.chat-info p {
  font-size: 0.75rem;
  color: #e0e0e0;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--brand-green);
  border-radius: 50%;
}

.close-chat {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.chat-body {
  padding: 1.2rem;
  background-color: #0b141a;
  min-height: 120px;
}

.bot-msg {
  background-color: #202c33;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.bot-msg .time {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 5px;
}

.chat-footer {
  padding: 0.8rem;
  background-color: var(--bg-card);
}

.btn-wa {
  display: block;
  background-color: #25d366;
  color: #fff;
  text-align: center;
  padding: 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.active { display: flex; }
  .about-grid-layout, .contact-wrapper { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .form-group.full-width, .full-width.btn { grid-column: span 1; }
  .hero h1 { font-size: 2.2rem; }
  .comparison-slider { height: 320px; }
  .img-before-wrapper img { width: 550px; }
  .ba-carousel-wrapper { padding: 0 10px; }
  .ba-nav-btn { top: 38%; }
  .btn-secondary { margin-left: 0; margin-top: 10px; }
}