﻿/*
  Landing Electricista Local - Recurso gratuito editable
  Identidad visual: azul oscuro + amarillo eléctrico
  Creada por Aguilar Forge
  Web: [aguilarforge.com]
*/
:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #fef9e3;
  --text: #0d1f35;
  --muted: #4a5568;
  --primary: #f5c200;
  --primary-dark: #c99d00;
  --accent: #1e3a5f;
  --navy: #0d1f35;
  --border: #e0ddd0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 31, 53, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding: 4.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  border-bottom: 2px solid var(--primary);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  white-space: nowrap;
}

.site-header .brand {
  color: #ffffff;
}

.menu {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.menu a {
  text-decoration: none;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--primary);
}

.hero {
  background-image: url('assets/Fondo_hero.png');
  background-size: cover;
  background-position: 65% center;
  min-height: 560px;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-size: 0.84rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.lead,
.section-intro {
  max-width: 65ch;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.cta-row {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface-soft);
}

.support-card,
.card,
.contact-card,
.trust-list article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.trust-list article {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.trust-list article:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(17, 42, 58, 0.14);
}

.support-card {
  padding: 1.8rem 1.6rem;
  overflow: hidden;
}

.support-media {
  margin: -1.8rem -1.6rem 1rem;
}

.support-media img {
  width: 100%;
  height: clamp(150px, 22vw, 190px);
  object-fit: cover;
  display: block;
}

.support-card ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.cards-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  padding: 1.4rem;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card--icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--navy);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* Títulos centrados con acento azul en secciones principales */
#servicios .container > h2,
.trust .container > h2,
#contacto .container > h2 {
  text-align: center;
}

#servicios .container > h2::after,
.trust .container > h2::after,
#contacto .container > h2::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--primary);
  margin: 0.55rem auto 0;
  border-radius: 2px;
}

#servicios .section-intro,
#contacto .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Fondo amarillo suave en sección de servicios */
#servicios {
  background: linear-gradient(180deg, #fffdf6 0%, #fef8e0 100%);
}

.trust {
  background: linear-gradient(180deg, #fffdf6 0%, #fef8e0 100%);
}

.trust-list {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-list article {
  padding: 1.1rem;
}

.trust-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trust-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--navy);
}

.trust-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

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

.contact-list {
  margin-top: 1rem;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.contact-list a {
  color: var(--primary-dark);
  overflow-wrap: break-word;
  word-break: break-word;
}

.site-footer {
  padding: 2rem 0 2.8rem;
  background: var(--navy);
  border-top: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-credit {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.6rem;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--primary);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.45);
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: rgba(255, 255, 255, 0.7);
}

/* Contacto reestructurado */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contact-info-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--navy);
}

.contact-info-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.contact-info-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-info-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-info-value {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
}

a.contact-info-value:hover,
a.contact-info-value:focus-visible {
  text-decoration: underline;
}

.contact-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-lg {
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    background-image:
      linear-gradient(to right, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.45) 60%, transparent 100%),
      url('assets/Fondo_hero.png');
    background-position: top center;
    min-height: auto;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .menu {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero {
    background-position: 20% top;
  }

  .hero-grid > div {
    max-width: 68%;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
  }

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

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta .btn {
    width: 100%;
    text-align: center;
  }

  .support-media img {
    height: 145px;
  }
}

