/* ============================================
   ElectroSer - Ingeniería de Servicios
   Paleta: #0056b3 (azul), #ff8c00 (naranja), #fff
   ============================================ */

:root {
  --color-primary: #0056b3;
  --color-primary-dark: #004494;
  --color-accent: #ff8c00;
  --color-accent-dark: #e67e00;
  --color-white: #ffffff;
  --color-bg: #f8fafc;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 86, 179, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 86, 179, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 86, 179, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Header & Nav ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-svg,
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
}

.nav__menu {
  display: flex;
  gap: 2rem;
}

.nav__menu a {
  font-weight: 500;
  color: var(--color-text);
}

.nav__menu a:hover {
  color: var(--color-primary);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #003366 100%);
  z-index: -1;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero__content {
  text-align: center;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.hero__scroll-icon {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: transparent;
  border-radius: 50%;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ========== Section Titles ========== */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title--light {
  color: var(--color-white);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Services ========== */
.services {
  padding: 5rem 0;
  background: var(--color-bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.services__grid--secondary {
  margin-bottom: 0;
}

.services__subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin: 2.5rem 0 1rem;
  text-align: center;
}

.service-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card--primary {
  border-top: 4px solid var(--color-accent);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.service-card--secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
}

.service-card__badge {
  font-weight: 600;
  color: var(--color-primary);
}

/* ========== B2B Section ========== */
.b2b {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
}

.b2b__intro {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.b2b__features {
  max-width: 560px;
  margin: 0 auto 2rem;
}

.b2b__features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.b2b__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.b2b__content {
  text-align: center;
}

.b2b__content .btn {
  margin-top: 0.5rem;
}

/* ========== Plans ========== */
.plans {
  padding: 5rem 0;
  background: var(--color-white);
}

.plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.plan-card {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.plan-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.plan-card--featured {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: scale(1.02);
}

.plan-card--featured .plan-card__desc,
.plan-card--featured li {
  color: rgba(255, 255, 255, 0.9);
}

.plan-card--featured .btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 20px;
}

.plan-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.plan-card--featured h3 {
  color: var(--color-white);
}

.plan-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.plan-card ul {
  flex: 1;
  margin-bottom: 1.5rem;
}

.plan-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.plan-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.plan-card--featured li::before {
  color: var(--color-accent);
}

/* ========== Trust / Testimonials ========== */
.trust {
  padding: 5rem 0;
  background: var(--color-bg);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.testimonial {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}

.testimonial p {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.testimonial footer {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.brands__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 1rem;
}

.brands__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.brand-logo {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ========== Quote Form ========== */
.quote {
  padding: 5rem 0;
  background: var(--color-white);
}

.quote-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.quote-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========== Footer ========== */
.footer {
  padding: 2.5rem 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__brand .logo-text {
  color: var(--color-white);
}

.footer__brand p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.9);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__copy {
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: center;
}

/* ========== WhatsApp Float ========== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float span {
  display: none;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: left var(--transition);
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .plans__grid {
    grid-template-columns: 1fr;
  }

  .plan-card--featured {
    transform: none;
  }
}
