/* ==========================================================================
   MAKA TÉCNICA (www.makatecnica.ar) - Official PDF Specification Design
   Soluciones Integrales en Distribución de Energía, Iluminación y Sonido
   ========================================================================== */

:root {
  --bg-dark: #0a0b10;
  --bg-card: rgba(18, 19, 26, 0.75);
  --bg-card-hover: rgba(28, 30, 42, 0.9);
  --bg-surface: #12141d;
  --bg-elevated: #1a1c29;

  /* Brand Colors from PDF */
  --maka-red: #e11d48;
  --maka-red-glow: #ff2a5f;
  --accent-gold: #f59e0b;
  --accent-amber: #d97706;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-red: rgba(225, 29, 72, 0.35);

  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-red: 0 0 25px rgba(225, 29, 72, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #1f0b14 0%, #0a0b10 70%);
}

img, video, canvas, svg, iframe {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--maka-red-glow) 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-red {
  background: linear-gradient(135deg, var(--maka-red-glow) 0%, #be123c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-gold {
  background: linear-gradient(135deg, #fef08a 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--maka-red) 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(225, 29, 72, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  font-weight: 600;
}

.btn-whatsapp svg {
  fill: #ffffff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  color: #ffffff !important;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition-normal);
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff4b72 0%, var(--maka-red) 60%, #880e2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: var(--shadow-red);
  letter-spacing: -0.5px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.brand-domain {
  font-size: 0.75rem;
  color: var(--maka-red-glow);
  font-weight: 500;
  letter-spacing: 0.5px;
  display: block;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--maka-red-glow);
}

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

/* Hero Section */
.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--maka-red-glow);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-red);
  box-shadow: var(--shadow-red);
}

.floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  padding: 1.2rem 1.5rem;
  background: rgba(18, 19, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

/* Service Cards */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  color: var(--maka-red-glow);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

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

.service-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(225, 29, 72, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

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

/* Calculator & Power Tool */
.power-calc-card {
  background: linear-gradient(145deg, rgba(26, 28, 41, 0.9), rgba(18, 19, 26, 0.95));
  border: 1px solid var(--border-red);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calc-input-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-input-group input, .calc-input-group select {
  padding: 0.8rem 1.2rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}

.calc-input-group input:focus, .calc-input-group select:focus {
  border-color: var(--maka-red);
}

.calc-result-box {
  background: rgba(10, 11, 16, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.calc-result-value {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
  margin: 0.5rem 0;
}

/* Form inputs */
.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

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

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  padding: 0.85rem 1.2rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--maka-red-glow);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.3);
}

/* Contact Card */
.contact-person-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.contact-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--maka-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  border: 2px solid white;
}

/* Footer */
.footer {
  background: #06070a;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
}

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

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--maka-red-glow);
}

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

body.no-scroll {
  overflow: hidden !important;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

.w-full {
  width: 100%;
}

.mobile-only-action {
  display: none;
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 42px;
  height: 42px;
  padding: 10px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition-fast);
}

.mobile-nav-toggle:hover, .mobile-nav-toggle.open {
  background: rgba(225, 29, 72, 0.15);
  border-color: var(--border-red);
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--maka-red-glow);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--maka-red-glow);
}

/* Mobile Nav Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Component Specific Base Classes */
.hero-cta-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.quote-card-box {
  padding: 3rem;
  max-width: 850px;
  margin: 0 auto;
  border-color: var(--border-red);
}

.contact-card-box {
  padding: 2.5rem;
  border-color: var(--border-red);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 11, 16, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-red);
    padding: 5.5rem 1.8rem 2.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.9);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    width: 100%;
  }

  .mobile-only-action {
    display: block;
    margin-top: auto;
    padding-top: 1rem;
  }

  .mobile-only-action a.btn-whatsapp {
    border-bottom: none !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem !important;
    margin-top: 0.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .quote-form-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section-padding {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.2rem;
  }

  .navbar {
    padding: 0.85rem 0;
  }

  .brand-logo-img {
    height: 40px;
  }

  .hero {
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 2rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.5rem;
  }

  .power-calc-card {
    padding: 1.5rem 1.2rem;
  }

  .calc-result-value {
    font-size: 2.2rem;
  }

  .quote-card-box {
    padding: 1.8rem 1.4rem;
  }

  .contact-card-box {
    padding: 1.8rem 1.4rem;
  }

  .contact-person-card {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Dedicated Mobile Viewports (Covers 412px Android/Pixel/Galaxy & iPhone devices) */
@media (max-width: 430px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: clamp(1.7rem, 6.5vw, 1.95rem);
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .hero-cta-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-btns .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  .calc-result-box {
    padding: 1.2rem 0.75rem;
  }

  .calc-result-value {
    font-size: clamp(1.75rem, 6.5vw, 2.1rem);
  }

  .quote-card-box {
    padding: 1.4rem 1rem;
  }

  .contact-card-box {
    padding: 1.4rem 1rem;
  }
}

/* iOS & Mobile Form Input Zoom Protection */
@media (max-width: 768px) {
  input[type="text"],
  input[type="number"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Extra Small Devices (Galaxy Fold Cover, 320px - 360px viewports) */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }

  .brand-logo-img {
    height: 34px;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.88rem;
  }

  .calc-result-value {
    font-size: 1.6rem;
  }

  .service-card {
    padding: 1.2rem;
  }
}
