﻿/* ============================================================
   360SPACES — Sitio estático
   Réplica del diseño original (Hostinger Website Builder)
   Fuentes: Archivo (títulos) + Work Sans (texto)
   ============================================================ */

:root {
  --navy-dark: #0c192c;
  --navy: #0f2b48;
  --navy-hover: #3f556c;
  --orange: #f25c05;
  --orange-hover: #f47c37;
  --brown: #792e02;
  --peach: #f3dacc;
  --light: #f4f6f8;
  --gray-btn: #e1e4e7;
  --gray-btn-hover: #b4b6b8;
  --border: #e1e4e7;
  --white: #ffffff;
  --text: #3a3f4b;
  --text-light: #5c6370;
  --header-height: 98px;
  --radius: 8px;
  --radius-lg: 16px;
  --font-head: 'Archivo', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --shadow: 0 4px 24px rgba(12, 25, 44, 0.08);
  --container: 1224px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-dark);
  line-height: 1.15;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Etiqueta eyebrow ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 20px;
}
.section-title--light { color: var(--light); }

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 680px;
}
.section-subtitle--light { color: rgba(244, 246, 248, 0.85); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--navy-dark);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px 16px;
}

.header__inner {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header__logo img { width: 119px; height: auto; }

.nav { display: flex; align-items: center; gap: 40px; }

.nav__link {
  color: var(--white);
  font-weight: 400;
  font-size: 16px;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--white); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.25s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__link--active::after { width: 100%; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-hover); color: #000; }

.btn--secondary { background: var(--gray-btn); color: #000; }
.btn--secondary:hover { background: var(--gray-btn-hover); color: #000; }

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

/* ============================================================
   HERO — INICIO
   ============================================================ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 25, 44, 0.55);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 96px 24px;
}
.hero__title {
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 700;
  color: var(--light);
  margin-bottom: 24px;
}
.hero__title .accent { color: var(--orange); font-weight: 700; }
.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(244, 246, 248, 0.92);
  max-width: 760px;
  margin: 0 auto 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   HERO — PÁGINAS INTERNAS
   ============================================================ */
.page-hero {
  background: var(--navy);
  color: var(--light);
  padding: 96px 24px;
  text-align: center;
}
.page-hero--orange { background: var(--orange); }
/* Degradado azul original del hero de Servicios */
.page-hero--orange.page-hero--blue-gradient { background: linear-gradient(180deg, var(--navy) 0%, #8c9aa8 100%); }
.page-hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--light);
  margin-bottom: 20px;
}
.page-hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(244, 246, 248, 0.88);
  max-width: 720px;
  margin: 0 auto 36px;
}

/* Hero interno con imagen lateral (Nosotros) */
.page-hero--split {
  background: var(--navy);
  padding: 0;
  text-align: left;
}
.page-hero--split .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px;
}
.page-hero--split img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.page-hero--split .page-hero__title,
.page-hero--split .page-hero__subtitle { text-align: left; }
.page-hero--split .page-hero__subtitle { margin: 0 0 32px; }

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.section { padding: 96px 0; }
.section--light { background: var(--light); }
.section--navy { background: var(--navy); }
.section--center { text-align: center; }
.section--center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Split genérico (imagen + texto) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__media img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
/* Filas más compactas (Nosotros) */
.split--compact { gap: 48px; margin-bottom: 72px; }
.split--compact:last-child { margin-bottom: 0; }
.split--compact .split__media img { height: 380px; }
.split--compact h3 { font-size: 24px; font-weight: 600; margin-bottom: 14px; }
.split--compact p { color: var(--text-light); }

/* ============================================================
   PILARES (checklist con iconos 24px)
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.pillar__icon {
  width: 48px;
  height: 48px;
  color: var(--orange);
  margin-bottom: 20px;
}
.pillar__icon svg { width: 100%; height: 100%; }
.pillar h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.pillar p { font-size: 15.5px; color: var(--text-light); }

/* ============================================================
   VENTAJAS (tarjetas con icono 48px melocotón)
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.benefit {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.benefit:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--brown);
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.benefit p { font-size: 16px; color: var(--text-light); }

/* ============================================================
   PROCESO (pasos 01–04)
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.step { position: relative; padding-top: 16px; }
.step__number {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 15.5px; color: var(--text-light); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 96px 24px;
}
.cta--navy { background: var(--navy); }
.cta--navy-dark { background: var(--navy-dark); }
.cta__title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--light);
  margin-bottom: 20px;
}
.cta__text {
  font-size: 18px;
  color: rgba(244, 246, 248, 0.9);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ============================================================
   SERVICIOS — catálogo con imagen
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.service-card__body { padding: 28px; }
.service-card__body h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.service-card__body p { font-size: 15.5px; color: var(--text-light); }

/* Servicios complementarios (fondo navy) */
.specialties-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 56px;
}
.specialties-layout__media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.specialties-list { display: flex; flex-direction: column; gap: 28px; }
.specialty {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  transition: background 0.25s ease;
}
.specialty:hover { background: rgba(255, 255, 255, 0.1); }
.specialty h3 { color: var(--light); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.specialty p { color: rgba(244, 246, 248, 0.8); font-size: 15.5px; }

/* ============================================================
   NOSOTROS — pilares con imagen
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.feature {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.25s ease;
}
.feature:hover { box-shadow: var(--shadow); }
.feature img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}
.feature h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--text-light); }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 25, 44, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 16px; }
.contact-info p { color: var(--text-light); margin-bottom: 32px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-of-type { border-bottom: 0; }
.contact-detail__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--peach);
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail__icon svg { width: 22px; height: 22px; }
.contact-detail strong { display: block; font-family: var(--font-head); color: var(--navy-dark); font-size: 15px; }
.contact-detail a, .contact-detail span { color: var(--text-light); font-size: 16px; }
.contact-detail a:hover { color: var(--orange); }

.form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form label {
  display: block;
  font-weight: 500;
  font-size: 15px;
  color: var(--navy-dark);
  margin-bottom: 8px;
}
.form .field { margin-bottom: 22px; }
.form input,
.form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--light);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { width: 100%; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; margin: 56px auto 0; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 22px 28px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-dark);
}
.faq-item__question .chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--orange);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-item__question .chevron { transform: rotate(180deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item__answer p {
  padding: 0 28px 24px;
  color: var(--text-light);
  font-size: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(244, 246, 248, 0.75);
  padding: 72px 24px 32px;
}
.footer__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand img { width: 110px; margin-bottom: 18px; }
.footer__brand p { font-size: 15.5px; max-width: 320px; }
.footer h4 {
  color: var(--light);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { font-size: 15.5px; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--orange-hover); }
.footer__contact p { font-size: 15.5px; margin-bottom: 12px; }
.footer__contact a { transition: color 0.2s ease; }
.footer__contact a:hover { color: var(--orange-hover); }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: rgba(244, 246, 248, 0.5);
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-bubble {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-bubble:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
.whatsapp-bubble svg { width: 32px; height: 32px; fill: var(--white); }

/* ============================================================
   ANIMACIÓN DE APARICIÓN (mejora progresiva: solo con JS)
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .specialties-layout { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --header-height: 76px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }

  /* Menú móvil */
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav__link { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 17px; }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link::after { display: none; }
  .nav__link--active { color: var(--orange-hover); }
  .header__logo img { width: 86px; }

  /* Heroes */
  .hero { min-height: 70vh; }
  .hero__content { padding: 72px 20px; }
  .page-hero { padding: 64px 20px; }
  .page-hero--split .split { grid-template-columns: 1fr; gap: 40px; padding: 56px 20px; }
  .page-hero--split img { height: 340px; order: -1; }
  .page-hero--split .page-hero__title,
  .page-hero--split .page-hero__subtitle { text-align: center; }
  .page-hero--split .hero__actions { justify-content: center; }

  /* Layouts */
  .split { grid-template-columns: 1fr; gap: 40px; display: flex; flex-direction: column; }
  .split__media { order: -1; width: 100%; }
  .split__media img { height: 380px; }
  .split--compact { margin-bottom: 56px; gap: 24px; }
  .split--compact .split__media img { height: 300px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .form { padding: 28px 22px; }

  /* Grids a 1 columna */
  .pillars,
  .benefits-grid,
  .process-grid,
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .specialties-layout__media img { height: 320px; }

  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature img { width: 100%; height: 220px; }

  .cta { padding: 64px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .whatsapp-bubble { width: 54px; height: 54px; }
  .whatsapp-bubble svg { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .split__media img { height: 300px; }
  .pillar, .benefit { padding: 28px 22px; }
}
