/* ==========================================================================
   ATC SERVICIOS - PREMIUM STYLE SYSTEM (MULTIPLE PAGES)
   ========================================================================== */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Palette */
  --primary: hsl(355, 85%, 45%);
  --primary-hover: hsl(355, 85%, 38%);
  --primary-light: hsl(355, 85%, 95%);
  --primary-alpha: rgba(200, 16, 46, 0.08);
  --primary-alpha-strong: rgba(200, 16, 46, 0.85);
  
  --dark-bg: hsl(220, 28%, 8%);
  --dark-surface: hsl(220, 24%, 12%);
  --dark-border: hsl(220, 20%, 18%);
  
  --light-bg: hsl(210, 20%, 97%);
  --light-surface: hsl(0, 0%, 100%);
  --light-border: hsl(210, 14%, 88%);

  --text-dark: hsl(220, 25%, 15%);
  --text-muted: hsl(220, 10%, 45%);
  --text-light: hsl(0, 0%, 100%);
  --text-light-muted: hsl(215, 15%, 75%);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(200, 16, 46, 0.25);
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- REUSABLE UTILITIES & LAYOUT --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section-padding {
  padding: 7rem 0;
}

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

.section-header {
  max-width: 750px;
  margin: 0 auto 4.5rem auto;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background-color: var(--primary-alpha);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--dark-bg);
  margin-bottom: 1.2rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  gap: 0.6rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 1.5rem 0;
  background-color: transparent;
}

.navbar.scrolled,
.navbar.nav-subpage {
  background-color: rgba(24, 29, 38, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--dark-border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.logo:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.logo img {
  height: 76px;
  transition: transform var(--transition-normal);
}

.logo:hover img {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-light-muted);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
}

.nav-cta .btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.nav-instagram-btn {
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  border: none;
  transition: all var(--transition-normal);
  margin-right: 1rem;
  box-shadow: 0 4px 10px rgba(193, 53, 132, 0.25);
}

.nav-instagram-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 15px rgba(193, 53, 132, 0.45);
  filter: brightness(1.05);
}

.nav-instagram-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.8rem;
  z-index: 1001;
}

/* --- HOME HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--dark-bg);
  background-image: url('assets/kia.jpeg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 20, 27, 0.96) 0%, rgba(24, 29, 38, 0.82) 55%, rgba(200, 16, 46, 0.15) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  display: inline-block;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  animation: fadeInUp 1s ease 0.1s both;
}

.hero h1 span {
  color: var(--primary);
}
.hero h1 .title-row {
  display: block;
  color: #ffffff;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-light-muted);
  margin-bottom: 2.5rem;
  max-width: 680px;
  line-height: 1.7;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.3s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light-muted);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  opacity: 0.7;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-light-muted);
  border-radius: 12px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  background-color: var(--primary);
  border-radius: 2px;
  animation: scrollDown 1.8s infinite;
}

/* --- ABOUT SECTION --- */
.about {
  background-color: var(--light-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.4rem;
  color: var(--dark-bg);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

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

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feat-item {
  background: var(--light-bg);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-border);
  transition: all var(--transition-normal);
}

.feat-item:hover {
  transform: translateY(-4px);
  background-color: var(--light-surface);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 16, 46, 0.2);
}

.feat-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-alpha);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.feat-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.feat-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--dark-bg);
}

.feat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.about-visual {
  position: relative;
}

.visual-box {
  background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
  padding: 3rem;
  border-radius: var(--radius-lg);
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--dark-border);
}

.visual-box h3 {
  font-size: 1.6rem;
  margin-bottom: 1.8rem;
  color: var(--text-light);
}

.visual-metric {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--dark-border);
}

.visual-metric:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.metric-num {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1;
}

.metric-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--text-light);
}

.metric-text p {
  color: var(--text-light-muted);
  font-size: 0.85rem;
}

/* --- SERVICES CARD GRID (HOME PAGE) --- */
.services {
  background-color: var(--light-bg);
}

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

.service-card {
  background-color: var(--light-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 16, 46, 0.25);
}

.service-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  background-color: var(--dark-bg);
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.service-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(24, 29, 38, 0.8) 100%);
}

.service-card-icon {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(200, 16, 46, 0.25);
  z-index: 2;
  transition: transform var(--transition-normal);
}

.service-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.service-card:hover .service-card-icon {
  transform: scale(1.08) rotate(15deg);
}

.service-info {
  padding: 2.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-cat {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.service-title {
  font-size: 1.45rem;
  color: var(--dark-bg);
  margin-bottom: 0.8rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.service-btn {
  align-self: flex-start;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--dark-bg);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding-bottom: 4px;
  cursor: pointer;
}

.service-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.service-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-btn {
  color: var(--primary);
}

.service-card:hover .service-btn::after {
  width: 100%;
}

.service-card:hover .service-btn svg {
  transform: translateX(4px);
}

/* --- INTERNAL SUB-PAGE HERO BANNER --- */
.subpage-hero {
  position: relative;
  padding: 10rem 0 6rem 0;
  background-color: var(--dark-bg);
  color: var(--text-light);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(16, 20, 27, 0.94) 0%, rgba(24, 29, 38, 0.97) 100%);
  z-index: 1;
}

.subpage-hero .container {
  position: relative;
  z-index: 2;
}

.subpage-hero .badge {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.subpage-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.subpage-hero p {
  font-size: 1.15rem;
  color: var(--text-light-muted);
  max-width: 750px;
}

/* --- DETAILED SERVICE PAGE LAYOUT --- */
.subpage-content-grid {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 3.5rem;
}

.main-service-content h2 {
  font-size: 2rem;
  color: var(--dark-bg);
  margin-top: 2rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  border-bottom: 2px solid var(--light-border);
  padding-bottom: 0.5rem;
}

.main-service-content h2:first-of-type {
  margin-top: 0;
}

.main-service-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.main-service-content .lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark-bg);
  line-height: 1.8;
}

/* Equipment Lists & Cards */
.bullet-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
  margin-top: 1rem;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background-color: var(--light-surface);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.bullet-item:hover {
  border-color: var(--primary);
}

.bullet-item svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.bullet-item-content h4 {
  font-size: 1.05rem;
  color: var(--dark-bg);
  margin-bottom: 0.2rem;
}

.bullet-item-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Brands Grid */
.brands-section {
  background-color: var(--light-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

.brands-section h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: var(--dark-bg);
  text-align: center;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.brand-tag {
  background-color: var(--light-bg);
  color: var(--text-dark);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  text-align: center;
  border: 1px solid var(--light-border);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.brand-tag:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.brand-logo-card {
  background-color: var(--light-bg);
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  transition: all var(--transition-fast);
}

.brand-logo-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.8);
  transition: all var(--transition-fast);
}

.brand-logo-card:hover {
  background-color: var(--light-surface);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.brand-logo-card:hover img {
  filter: grayscale(0%) opacity(1);
}

/* SIDEBAR SUB-PAGE NAVIGATION */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  position: sticky;
  top: 7rem;
  height: fit-content;
}

.widget-box {
  background-color: var(--light-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--dark-bg);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background-color: var(--light-bg);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  border: 1px solid var(--light-border);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.sidebar-menu a span {
  font-size: 0.8rem;
  opacity: 0.7;
}

.widget-cta-box {
  background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
  color: var(--text-light);
  border: 1px solid var(--dark-border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.widget-cta-box p {
  color: var(--text-light-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.widget-cta-box .btn {
  width: 100%;
}


/* --- CONTACT SECTION --- */
.contact {
  background-color: var(--light-surface);
}

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

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}

.contact-title {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.contact-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-alpha);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--dark-bg);
}

.contact-text p,
.contact-text a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-text a:hover {
  color: var(--primary);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 320px;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Form Panel */
.contact-form-panel {
  background-color: var(--light-bg);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-md);
}

.form-group {
  position: relative;
  margin-bottom: 1.8rem;
}

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

.form-input {
  width: 100%;
  padding: 1rem 1.1rem;
  background-color: var(--light-surface);
  border: 2px solid var(--light-border);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all var(--transition-normal);
}

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

.form-label {
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  color: var(--text-muted);
  transition: all var(--transition-normal);
  pointer-events: none;
  background-color: transparent;
  font-size: 0.95rem;
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -0.6rem;
  left: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--light-surface);
  padding: 0 0.4rem;
  border-radius: var(--radius-sm);
}

.form-input:focus {
  border-color: var(--primary);
  background-color: var(--light-surface);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.08);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='%236B7280' d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 1.4rem;
}

.form-submit-wrapper {
  margin-top: 1rem;
}

.form-submit-wrapper .btn {
  width: 100%;
}

.form-feedback {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  animation: fadeInUp 0.4s ease;
}

.form-feedback.success {
  background-color: hsl(142, 70%, 95%);
  color: hsl(142, 76%, 23%);
  border: 1px solid hsl(142, 60%, 82%);
}

.form-feedback.error {
  background-color: hsl(0, 85%, 96%);
  color: hsl(0, 74%, 23%);
  border: 1px solid hsl(0, 70%, 86%);
}

/* --- FLOATING TELEPHONE AND WHATSAPP FLOATS --- */
.floating-widgets {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-normal);
}

.floating-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-phone {
  background-color: var(--primary);
}

.floating-phone svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.floating-whatsapp {
  background-color: #25D366;
}

.floating-whatsapp svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.floating-instagram {
  background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  box-shadow: 0 4px 15px rgba(193, 53, 132, 0.35);
}

.floating-instagram:hover {
  box-shadow: 0 6px 20px rgba(193, 53, 132, 0.55);
}

.floating-instagram svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--dark-bg);
  color: var(--text-light-muted);
  border-top: 1px solid var(--dark-border);
}

.footer-top {
  padding: 5rem 0 3.5rem 0;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
  gap: 3.5rem;
}

.footer-brand .logo-footer {
  height: 76px;
  background-color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: inline-block;
  box-sizing: content-box;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.social-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-column h4 {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 6px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-menu a {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-menu a::before {
  content: '→';
  font-family: inherit;
  color: var(--primary);
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--text-light);
}

.footer-menu a:hover::before {
  transform: translateX(3px);
}

.footer-column .contact-item {
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-column .contact-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
}

.footer-column .contact-icon svg {
  width: 14px;
  height: 14px;
}

.footer-column .contact-text h4 {
  display: none;
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.8rem;
}

.footer-bottom-links a:hover {
  color: var(--text-light);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(200, 16, 46, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0);
  }
}

@keyframes scrollDown {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}


/* --- WORKSHOP & LABORATORY GALLERY --- */
.lab-gallery-section {
  margin: 4rem 0;
}

.lab-gallery-section h3 {
  font-size: 1.8rem;
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.lab-gallery-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* --- PROCESS SHOWCASE GALLERY --- */
.process-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.process-column {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.process-row-nested {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.8rem;
}

.process-column-header {
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
}

.process-column-header.diagnostico {
  background-color: hsl(0, 85%, 96%);
  color: hsl(0, 74%, 23%);
  border-left: 4px solid hsl(355, 85%, 45%);
}

.process-column-header.laboratorio {
  background-color: hsl(210, 85%, 96%);
  color: hsl(210, 75%, 25%);
  border-left: 4px solid hsl(210, 85%, 45%);
}

.process-column-header.resultado {
  background-color: hsl(142, 70%, 95%);
  color: hsl(142, 76%, 20%);
  border-left: 4px solid hsl(142, 70%, 35%);
}

.process-gallery-card {
  background-color: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.process-gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.process-gallery-card.card-diagnostico:hover {
  border-color: hsl(355, 85%, 45%);
}

.process-gallery-card.card-laboratorio:hover {
  border-color: hsl(210, 85%, 45%);
}

.process-gallery-card.card-resultado:hover {
  border-color: hsl(142, 70%, 35%);
}

.process-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 180px;
  background-color: var(--dark-bg);
}

.process-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.process-gallery-card:hover .process-img-wrapper img {
  transform: scale(1.08);
}

.process-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: var(--text-light);
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.process-tag.tag-diagnostico {
  background-color: hsl(355, 85%, 45%);
}

.process-tag.tag-laboratorio {
  background-color: hsl(210, 85%, 45%);
}

.process-tag.tag-resultado {
  background-color: hsl(142, 70%, 35%);
}

.process-info {
  padding: 1.25rem;
  flex-grow: 1;
}

.process-info h4 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.process-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
  .about-grid {
    gap: 3rem;
  }
  .contact-grid {
    gap: 3rem;
  }
}

@media (max-width: 1024px) {
  .section-padding {
    padding: 5.5rem 0;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .about-visual {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
  }
  .services-grid {
    gap: 1.8rem;
  }
  .subpage-content-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .sidebar-panel {
    position: static;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .map-container {
    height: 250px;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .process-gallery-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .process-gallery-grid > .process-column:nth-child(1) { order: 1; }
  .process-gallery-grid > .process-column:nth-child(2) { order: 2; }
  .process-gallery-grid > .process-row-nested {
    order: 3;
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-top: 0;
  }
  .process-gallery-grid > .process-column:nth-child(3) { order: 4; }
}

@media (max-width: 768px) {
  .logo img {
    height: 55px;
  }
  .footer-brand .logo-footer {
    height: 55px;
  }
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--dark-surface);
    border-left: 1px solid var(--dark-border);
    flex-direction: column;
    padding: 7rem 2rem 3rem 2rem;
    gap: 1.8rem;
    align-items: flex-start;
    transition: right var(--transition-normal);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-cta {
    display: none;
  }
  
  .navbar.scrolled .nav-links,
  .navbar.nav-subpage .nav-links {
    background-color: var(--dark-surface);
  }

  .hero h1 {
    font-size: 2.4rem;
  }
  .hero h1 .title-row {
    display: block;
  }
  .hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  .container {
    padding: 0 1.5rem;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .contact-form-panel {
    padding: 2.5rem 1.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .brands-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ATC SERVOMOTORES - MICROSITE COMPLEMENTARY STYLES
   ========================================================================== */

:root {
  /* Tech Accent Colors */
  --tech-blue: hsl(215, 95%, 50%);
  --tech-blue-hover: hsl(215, 95%, 42%);
  --tech-indigo: hsl(245, 75%, 45%);
  --radius-lg: 20px;
}

/* Navbar Link highlight for Fire Protection */
.link-incendio {
  color: hsl(0, 85%, 75%) !important;
  font-weight: 600 !important;
}

.link-incendio:hover {
  color: var(--text-light) !important;
}

/* ==========================================================================
   BMS & IOT SECTION STYLES
   ========================================================================== */
.bms-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.bms-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.bms-info p {
  color: var(--text-light-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.95rem;
  color: var(--text-light-muted);
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.check-list li strong {
  color: var(--text-light);
}

.bms-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-border);
}

.bms-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.chart-showcase {
  background-color: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 4rem;
}

.chart-header {
  margin-bottom: 2rem;
}

.chart-header h4 {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.chart-header p {
  color: var(--text-light-muted);
  font-size: 0.9rem;
}

.chart-img-wrapper {
  background-color: #ffffff;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
}

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

/* ==========================================================================
   SISTEMAS CONTRA INCENDIO REDIRECT BANNER
   ========================================================================== */
.fire-redirect-banner {
  background-color: hsl(0, 75%, 97%);
  border-top: 2px solid rgba(200, 16, 46, 0.1);
  border-bottom: 2px solid rgba(200, 16, 46, 0.1);
  padding: 4rem 0;
}

.redirect-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.redirect-content {
  max-width: 750px;
}

.redirect-content h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.redirect-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.badge-fire {
  background-color: rgba(200, 16, 46, 0.1);
  color: var(--primary);
}

.btn-fire {
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.25);
  white-space: nowrap;
}

/* ==========================================================================
   FORM VALIDATION & FLOATING LABEL FIXES
   ========================================================================== */
/* Float label support for select dropdown in HTML5 CSS */
.form-select:focus ~ .form-label,
.form-select:valid ~ .form-label {
  top: -0.6rem;
  left: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--light-surface);
  padding: 0 0.4rem;
  border-radius: var(--radius-sm);
  z-index: 10;
}

/* Form validation status visual highlights */
.form-input.invalid {
  border-color: hsl(0, 85%, 60%) !important;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15) !important;
}

.form-input.valid {
  border-color: hsl(142, 70%, 45%) !important;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media (max-width: 992px) {
  .bms-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .redirect-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .btn-fire {
    width: 100%;
    text-align: center;
  }
}

