/* ============================================================
   EASYCOMAV.CSS — EasycomAV Soluciones en Audio y Video
   ============================================================ */

/* ─── VARIABLES ──────────────────────────────────────────── */
:root {
  --navy:         #050d1a;
  --navy-mid:     #111111;
  --accent:       #7c3aed;
  --accent-dark:  #6d28d9;
  --accent-light: #a78bfa;
  --accent-pale:  #f5f3ff;
  --white:        #ffffff;
  --off-white:    #f7f7f7;
  --gray-100:     #f0f0f0;
  --gray-200:     #e0e0e0;
  --gray-400:     #a0a0a0;
  --gray-600:     #6b6b6b;
  --text:         #1a1a1a;
  --text-muted:   #555555;
  --wa-green:     #25d366;
  --wa-hover:     #1eb854;

  --font-display: 'Bebas Neue', sans-serif;
  --font-ui:      'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;

  --header-h:   72px;
  --container:  1200px;
  --radius:     6px;
  --radius-lg:  14px;
  --t:          0.32s ease;
  --t-slow:     0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.16);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ─── CONTAINER ──────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7em 1.8em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.38);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}
.btn--outline-dark:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--outline-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
.btn--outline-light:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn--wa {
  background: var(--wa-green);
  color: var(--white);
  border-color: var(--wa-green);
}
.btn--wa:hover {
  background: var(--wa-hover);
  border-color: var(--wa-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

/* ─── HEADER ─────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  height: var(--header-h);
  border-radius: 100px;
  z-index: 1000;
  background: transparent;
  box-shadow: 0 2px 24px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.05);
  transition: box-shadow var(--t);
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  transition: background var(--t);
}
.header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06);
}
.header.scrolled::before {
  background: var(--white);
}
.header__container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}
.header__logo img {
  height: 26px;
  width: auto;
}
.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.header__menu {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.nav-link {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--t);
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.header__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--t);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 12px);
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(5,5,5,0.93) 0%,
    rgba(10,10,10,0.72) 50%,
    rgba(20,20,20,0.40) 100%
  );
}
.hero__container {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 9rem;
}
.hero__content { max-width: 660px; }

.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 0.93;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero__desc {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.72);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  z-index: 2;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50%       { transform: translateX(-50%) translateY(9px); opacity: 0.9; }
}

/* ─── SECTIONS BASE ──────────────────────────────────────── */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--gray  { background: var(--off-white); }
.section--navy  { background: var(--navy); }

.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.6rem;
}
.section__label--light { color: var(--accent-light); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.05;
}
.section__title--white { color: var(--white); }

.section__divider {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 1.1rem auto 0;
}
.section__subtitle {
  margin-top: 1.25rem;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.section__cta { text-align: center; margin-top: 3rem; }

/* ─── QUIÉNES SOMOS ──────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.about__text .section__label,
.about__text .section__title,
.about__text .section__divider { text-align: left; margin-left: 0; }

.about__body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 1.25rem;
}
.about__body strong { color: var(--text); font-weight: 600; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.25rem;
}
.stat {
  padding: 1.2rem 1.4rem;
  background: var(--off-white);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--t), border-color var(--t);
}
.stat:hover { background: var(--accent-pale); }
.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 0.72rem;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about__media { position: relative; }
.about__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}
.about__figure:hover img { transform: scale(1.04); }

.about__badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}
.about__badge svg { color: var(--accent); flex-shrink: 0; }
.about__badge strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.about__badge span {
  font-size: 0.76rem;
  color: var(--gray-600);
}

/* ─── SERVICES ───────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124,58,237,0.28);
}
.service-card__img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 0;
}
.service-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.08) 0%, rgba(5,5,5,0.60) 100%);
}
.service-card__num {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  line-height: 1;
}
.service-card__body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card__icon {
  width: 38px; height: 38px;
  background: var(--accent-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
  transition: background var(--t);
}
.service-card:hover .service-card__icon { background: var(--accent); color: var(--white); }
.service-card__title {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* ─── CONTACT ────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.contact__info .section__label,
.contact__info .section__title,
.contact__info .section__divider { text-align: left; margin-left: 0; }

.contact__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.contact__data {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
}
.contact__item svg { color: var(--accent-light); flex-shrink: 0; }
.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact__label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.contact__input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  width: 100%;
  box-sizing: border-box;
}
.contact__input::placeholder { color: rgba(255,255,255,0.3); }
.contact__input:focus {
  border-color: var(--accent-light);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.contact__textarea {
  resize: vertical;
  min-height: 120px;
}
.contact__submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}
.contact__privacy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin: 0;
}
.contact__input--error {
  border-color: #f56565;
  background: rgba(245,101,101,0.07);
}
.contact__input--error:focus {
  border-color: #f56565;
  box-shadow: 0 0 0 3px rgba(245,101,101,0.15);
}
.contact__error-msg {
  font-size: 0.75rem;
  color: #f56565;
  margin-top: 0.15rem;
}
.contact__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--accent-light);
}
.contact__success p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.25rem 0;
}
.footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer__logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}
.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.22);
}
.footer__back {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  transition: color var(--t);
}
.footer__back:hover { color: var(--white); }
.footer__credit {
  width: 100%;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.18);
  margin-top: 0.25rem;
}
.footer__credit a {
  color: rgba(255,255,255,0.18);
  transition: color var(--t);
}
.footer__credit a:hover { color: rgba(255,255,255,0.5); }

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.33s; }
.reveal-delay-4 { transition-delay: 0.44s; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .about__grid    { grid-template-columns: 1fr; }
  .about__media   { order: -1; }
  .about__badge   { left: 1rem; bottom: -1rem; }
  .contact__grid  { grid-template-columns: 1fr; }
  .contact__visual { order: -1; }
  .contact__form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    inset: calc(var(--header-h) + 14px) 0 0 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform var(--t-slow);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .header__nav.open { transform: translateX(0); }
  .header__menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--gray-200);
  }
  .header__cta   { display: none; }
  .header__toggle { display: flex; }

  .hero__title { font-size: clamp(3.2rem, 13vw, 5rem); }
  .hero__desc  { font-size: 0.95rem; }

  .services__grid { grid-template-columns: 1fr; }
  .about__stats   { grid-template-columns: 1fr 1fr; }

  .footer__container { flex-direction: column; text-align: center; }
  .footer__brand     { justify-content: center; }
}

@media (max-width: 480px) {
  .about__stats  { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .about__badge  { position: static; margin-top: 1rem; max-width: 100%; }
}
