/* ============================================================
   EURO OFICINAS — One Page · Puerto Vallarta (versión original)
   Paleta: naranja (logo) + grises
   ============================================================ */

:root {
  --orange: #ee7218;
  --orange-dark: #cf5e0e;
  --orange-light: #fff3e8;
  --ink: #2b2f33;
  --ink-2: #3d4348;
  --gray: #6b7280;
  --gray-light: #eceef0;
  --bg: #f7f7f6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 47, 51, 0.08);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.container--narrow { width: min(820px, 100% - 2.5rem); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(238, 114, 24, 0.35);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }

.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn--full { width: 100%; justify-content: center; }

.link-arrow {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.logo__img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo__word {
  font-family: "Comfortaa", var(--font);
  font-weight: 600;
  font-size: 1.18rem;
  color: #7d7f82;
  letter-spacing: 0.01em;
}
.logo__word em {
  font-style: normal;
  color: var(--orange);
}
.logo__tagline {
  align-self: flex-end;
  font-family: "Comfortaa", var(--font);
  font-weight: 500;
  font-size: 0.62rem;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
}
.nav > a:not(.nav__cta) {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.15s;
}
.nav > a:not(.nav__cta):hover { color: var(--orange); }
.nav__cta { padding: 0.6rem 1.2rem; font-size: 0.88rem; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: 0.5rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.85rem;
}
.lang-switch__sep { color: var(--gray); }
.lang-switch__btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  font: inherit;
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
}
.lang-switch__btn.is-active { color: var(--orange); }
.lang-switch__btn:hover { color: var(--ink); }

.header__phone {
  color: var(--ink-2);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background 0.15s;
}
.header__phone:hover { background: var(--gray-light); color: var(--orange); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__slider, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(24, 26, 28, 0.85) 0%, rgba(24, 26, 28, 0.55) 55%, rgba(238, 114, 24, 0.25) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 60px;
  max-width: 780px;
}

.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); }
.hero__tagline {
  margin-top: 0.9rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--orange);
}
.hero__sub {
  margin-top: 1rem;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero__dot.is-active { background: var(--orange); transform: scale(1.25); }

/* ---------- Placeholders (marcados claramente) ---------- */
.ph {
  position: relative;
  background: linear-gradient(135deg, #3d4348 0%, #2b2f33 60%, #4a4038 100%);
}
.ph--2 { background: linear-gradient(135deg, #5a4632 0%, #8a6a44 60%, #3d4348 100%); }
.ph--3 { background: linear-gradient(135deg, #4a4e54 0%, #6e757c 60%, #35393d 100%); }
.ph--4 { background: linear-gradient(135deg, #7a5a30 0%, #b08346 60%, #4a4e54 100%); }
.ph--5 { background: linear-gradient(135deg, #35393d 0%, #57504a 60%, #6e757c 100%); }

.ph::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.15);
}

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--ink);
  color: var(--white);
  padding: 1rem 0;
}
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trustbar__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.trustbar__icon {
  color: var(--orange);
  font-size: 1.05rem;
  display: inline-grid;
  place-items: center;
  width: 22px;
  flex-shrink: 0;
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 5.5rem 0; }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-head p { margin-top: 1rem; color: var(--gray); font-size: 1.05rem; }

.section-cta { margin-top: 2.5rem; text-align: center; }

.section--problem { background: var(--white); }
.section--services { background: var(--bg); }
.section--process { background: var(--ink); color: var(--white); }
.section--portfolio { background: var(--white); }
.section--why { background: var(--bg); }
.section--testimonials { background: var(--white); }
.section--extra { background: var(--ink); color: var(--white); }
.section--faq { background: var(--bg); }
.section--contact { background: var(--white); }

.section--process .section-head p,
.section--extra .section-head p { color: rgba(255, 255, 255, 0.7); }
.section--extra .link-arrow { color: var(--orange); }

/* ---------- Problema / dolores ---------- */
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pain {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  border-top: 4px solid var(--orange);
}
.pain__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.35;
}
.pain h3 { margin-top: 0.5rem; font-size: 1.05rem; }
.pain p { margin-top: 0.5rem; color: var(--gray); font-size: 0.95rem; }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(43, 47, 51, 0.14); }
.service-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--orange-light);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.service-card__icon i {
  font-size: 1.35rem;
  color: var(--orange);
}
.service-card h3 { font-size: 1.1rem; }
.service-card p { margin-top: 0.5rem; color: var(--gray); font-size: 0.94rem; }
.service-card--featured {
  background: var(--orange);
  color: var(--white);
}
.service-card--featured .service-card__icon { background: rgba(255, 255, 255, 0.2); }
.service-card--featured .service-card__icon i { color: var(--white); }
.service-card--featured p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Proceso ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
}
.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1rem; }
.step p { margin-top: 0.4rem; color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; }

/* ---------- Portafolio: antes/después ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}
.project-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card__img img { transform: scale(1.04); }
.project-card__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
}
.project-card__info h3 { font-size: 1rem; }
.project-card__tag {
  flex-shrink: 0;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Por qué ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow);
}
.why-item__icon {
  color: var(--orange);
  font-size: 1.4rem;
  display: inline-block;
}
.why-item__icon i { color: var(--orange); }
.why-item h3 { margin-top: 0.8rem; font-size: 1rem; }
.why-item p { margin-top: 0.4rem; color: var(--gray); font-size: 0.9rem; }

/* ---------- Testimonios ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--gray-light);
  border-top: 4px solid var(--orange);
  box-shadow: var(--shadow);
}
.testimonial__stars {
  color: var(--orange);
  display: flex;
  gap: 0.2rem;
  font-size: 0.85rem;
}
.testimonial blockquote {
  margin-top: 0.8rem;
  font-size: 0.98rem;
  color: var(--ink-2);
  font-style: italic;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.testimonial__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  flex-shrink: 0;
}
.testimonial figcaption strong { display: block; font-size: 0.92rem; }
.testimonial figcaption span { font-size: 0.8rem; color: var(--gray); }

/* ---------- Capacidades adicionales ---------- */
.extra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.extra-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.extra-item i {
  color: var(--orange);
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.accordion__item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.accordion__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  text-align: left;
}
.accordion__btn:hover { color: var(--orange); }
.accordion__chev {
  color: var(--orange);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.accordion__item.is-open .accordion__chev { transform: rotate(180deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion__panel p { padding: 0 1.5rem 1.3rem; color: var(--gray); font-size: 0.95rem; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.contact-info > p { margin-top: 1rem; color: var(--gray); font-size: 1.05rem; }
.contact-info__direct {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-info__address {
  color: var(--gray);
  font-size: 0.95rem;
}
.contact-info__address i { color: var(--orange); margin-right: 0.2rem; }
.contact-map {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
}

.contact-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
}
.form-success {
  margin-top: 0.9rem;
  font-weight: 700;
  color: #1a7f37;
  text-align: center;
}
.form-error {
  margin-top: 0.9rem;
  font-weight: 600;
  color: #d64545;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer .logo__word { color: #e8e9ea; }
.footer__brand p { margin-top: 1rem; font-size: 0.9rem; }
.footer__col { display: grid; gap: 0.5rem; align-content: start; }
.footer__col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer__col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer__col a:hover { color: var(--orange); }
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  text-align: center;
}

.footer-credit {
  margin-top: 0.4rem;
  opacity: 0.75;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Animación reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .header__inner { gap: 0.8rem; }
  .nav { gap: 0.7rem; margin-left: auto; }
  .nav > a:not(.nav__cta) {
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .nav__cta { padding: 0.5rem 0.9rem; font-size: 0.78rem; white-space: nowrap; }
  .header__actions { gap: 0.4rem; margin-left: 0; }
  .logo__word { font-size: 1rem; }
  .header__phone { display: none; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .extra-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav.is-open { transform: none; }
  .nav > a:not(.nav__cta) {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 1rem;
  }
  .nav__cta { margin-top: 1rem; justify-content: center; padding: 0.8rem 1.2rem; font-size: 0.9rem; }
  .hamburger { display: flex; }
  /* Idioma + hamburguesa alineados a la derecha */
  .header__actions { margin-left: auto; }
}

@media (max-width: 768px) {
  .hero { min-height: 88vh; }
  .pains, .portfolio-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  /* En movil: titulo, formulario y al final la direccion + mapa */
  .contact-grid { gap: 0; }
  .contact-info { display: contents; opacity: 1; transform: none; }
  .contact-info > h2 { order: 1; }
  .contact-info > p { order: 2; }
  .contact-form { order: 3; margin-top: 2.5rem; }
  .contact-info__direct { order: 4; margin-top: 2.5rem; }
}

@media (max-width: 520px) {
  .services-grid, .process-grid, .why-grid, .extra-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}
