/* ==========================================================================
   PROMPT MAESTRO - MAIN STYLESHEET (style.css)
   Servicios Técnicos & Remodelaciones Enterprise Landing Page
   ========================================================================== */

/* Global Reset & Base Setup */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--electric-blue);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Typography Utilities */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--electric-blue) 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-orange {
  color: var(--accent-orange) !important;
}

.text-emergency {
  color: var(--emergency-red) !important;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--primary-navy);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-orange);
  border-right-color: var(--electric-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--electric-blue) 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  font-family: var(--font-accent);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-orange-custom {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8533 100%);
  color: #ffffff;
  border: none;
  font-family: var(--font-accent);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow-orange);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-orange-custom:hover {
  background: linear-gradient(135deg, var(--accent-orange-hover) 0%, var(--accent-orange) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.5);
}

.btn-emergency-pulse {
  background: linear-gradient(135deg, var(--emergency-red) 0%, #ef4444 100%);
  color: #ffffff !important;
  font-family: var(--font-accent);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow-red);
  position: relative;
  overflow: hidden;
  animation: pulse-red 2s infinite;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.btn-emergency-pulse:hover {
  background: var(--emergency-red-hover);
  transform: scale(1.03);
}

.badge-trust {
  background: rgba(30, 64, 175, 0.1);
  color: var(--electric-blue);
  border: 1px solid rgba(30, 64, 175, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-bs-theme="dark"] .badge-trust {
  background: rgba(30, 64, 175, 0.25);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

/* ==========================================================================
   NAVBAR & TOPBAR
   ========================================================================== */
.topbar {
  background-color: var(--primary-navy);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.topbar a:hover {
  color: var(--accent-orange);
}

.navbar-custom {
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--nav-shadow);
  padding: 14px 0;
  transition: all var(--transition-normal);
}

.navbar-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
  text-decoration: none;
}

.logo-icon-wrap {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--electric-blue), var(--accent-orange));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.nav-link-custom {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main) !important;
  margin: 0 8px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--accent-orange) !important;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-orange);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.85) 100%),
              url('../img/hero-technician.jpg') center/cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 620px;
}

.hero-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 35px;
}

.hero-badge-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.hero-badge-item i {
  font-size: 1.4rem;
  color: var(--accent-orange);
}

.hero-card-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-floating-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero-floating-tag .tag-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section-padding {
  padding: 90px 0;
}

.section-header {
  margin-bottom: 55px;
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-accent);
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

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

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--electric-blue);
}

.service-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img-wrap img {
  transform: scale(1.08);
}

.service-card-icon {
  position: absolute;
  bottom: -24px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--electric-blue), #2563eb);
  color: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--bg-card);
}

.service-card-body {
  padding: 30px 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.service-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.service-benefits-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-benefits-list li i {
  color: var(--success-green);
}

/* ==========================================================================
   24/7 EMERGENCY BANNER
   ========================================================================== */
.emergency-banner-section {
  background: linear-gradient(135deg, #090d16 0%, #1e1b4b 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  color: #ffffff;
  border-top: 4px solid var(--emergency-red);
  border-bottom: 4px solid var(--emergency-red);
}

.emergency-banner-content h2 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.emergency-box-card {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.4);
  padding: 30px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   WHY CHOOSE US (FEATURES)
   ========================================================================== */
.feature-box {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(255, 107, 0, 0.1);
  color: var(--accent-orange);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   STATISTICS COUNTER
   ========================================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 70px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ==========================================================================
   PROJECTS / PORTFOLIO (BEFORE & AFTER LIGHTBOX)
   ========================================================================== */
.portfolio-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 4px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
  background: var(--electric-blue);
  color: #ffffff;
  border-color: var(--electric-blue);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.portfolio-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover img {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.2));
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* ==========================================================================
   HOW WE WORK - TIMELINE
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-step-badge {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--accent-orange), #ff8533);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow-orange);
  z-index: 2;
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
}

/* ==========================================================================
   QUICK QUOTE CALCULATOR FORM
   ========================================================================== */
.quote-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-control-custom,
.form-select-custom {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control-custom:focus,
.form-select-custom:focus {
  background-color: var(--bg-body);
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
  color: var(--text-main);
}

.file-upload-box {
  border: 2px dashed var(--border-color);
  background-color: var(--bg-surface);
  padding: 25px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-upload-box:hover {
  border-color: var(--electric-blue);
  background-color: rgba(30, 64, 175, 0.04);
}

/* ==========================================================================
   TESTIMONIALS SLIDER
   ========================================================================== */
.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.testimonial-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.rating-stars {
  color: #f59e0b;
  font-size: 1rem;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.accordion-custom .accordion-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  margin-bottom: 14px;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  background-color: var(--bg-card);
  padding: 20px 24px;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--electric-blue);
  background-color: var(--bg-surface);
}

.accordion-custom .accordion-body {
  color: var(--text-muted);
  padding: 20px 24px;
  font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER PREMIUM
   ========================================================================== */
.footer-premium {
  background-color: #060911;
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-premium h5 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 24px;
  position: relative;
}

.footer-premium h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 35px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--accent-orange);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (PERSISTENT CRO WIDGET)
   ========================================================================== */
.floating-widget-bar {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.1);
  color: #ffffff;
}

.float-btn-whatsapp {
  background: #25d366;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.float-btn-call {
  background: var(--electric-blue);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.float-btn-emergency {
  background: var(--emergency-red);
  animation: pulse-red 2s infinite;
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 46px;
  height: 46px;
  background: var(--primary-navy);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-orange);
  color: #ffffff;
}
