/* ============================================================
   Prisma Assets & Investments — Hoja de estilos
   Paleta heredada del logo: teal #3E9998 · gris #5E5B58
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --teal: #3E9998;
  --teal-dark: #2F7A79;
  --teal-light: #EAF2F2;
  --charcoal: #5E5B58;
  --charcoal-dark: #3D3B39;
  --ink: #2A2827;
  --muted: #6E6B68;
  --bg: #FFFFFF;
  --bg-alt: #F7F8F8;
  --line: #E6E7E7;

  --container: 1140px;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(61, 59, 57, 0.28);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Tipografía de secciones ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow-light { color: #9FD6D4; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--charcoal-dark);
  margin-bottom: 24px;
}
.section-title.light { color: #fff; }

.lead-text {
  font-size: 1.18rem;
  color: var(--ink);
  margin-bottom: 20px;
}

p { color: var(--muted); }
p + p { margin-top: 16px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--charcoal-dark); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ============================================================
   Cabecera
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(61, 59, 57, 0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand-logo { height: 46px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-dark);
  position: relative;
  transition: color var(--transition);
}
.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-menu a:not(.nav-cta):hover { color: var(--teal); }
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  padding: 10px 22px;
  background: var(--teal);
  color: #fff !important;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--charcoal-dark);
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FBFCFC 0%, #F2F6F6 100%);
  padding-top: 78px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: #EDF3F3 url('../img/hero.jpg') center right / cover no-repeat;
  pointer-events: none;
}
/* Velo claro que aclara la izquierda para que el texto oscuro se lea bien */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(255,255,255,0.94) 0%,
      rgba(255,255,255,0.86) 32%,
      rgba(255,255,255,0.45) 58%,
      rgba(255,255,255,0.05) 80%,
      rgba(255,255,255,0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 40px;
  padding-bottom: 60px;
}
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--charcoal-dark);
  margin-bottom: 28px;
}
.hero-title em { color: var(--teal); font-style: italic; }
.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(94, 91, 88, 0.4);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 4px; height: 8px;
  background: var(--teal);
  border-radius: 4px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}

/* ============================================================
   Secciones genéricas
   ============================================================ */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: 60px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
}
.align-center { align-items: center; }

/* Imagen de la sección Empresa */
.figure-photo {
  margin: 0;
}
.figure-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* ---------- Tarjetas Misión / Visión ---------- */
.card-plain {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-plain:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 56px; height: 56px;
  margin-bottom: 24px;
}
.card-icon svg { width: 100%; height: 100%; }
.card-plain h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--charcoal-dark);
  margin-bottom: 14px;
}

/* ---------- Valores ---------- */
.grid-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.value-card {
  padding: 36px 30px;
  border-top: 3px solid var(--teal);
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.section-alt .value-card { background: #fff; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--teal);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 18px;
}
.value-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal-dark);
  margin-bottom: 12px;
}
.value-card p { font-size: 0.98rem; }

/* ---------- Proyectos ---------- */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.project + .project { margin-top: clamp(60px, 8vw, 100px); }
.project-reverse .project-media { order: 2; }

.project-media { position: relative; }
.project-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-placeholder img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.project-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.project-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--charcoal-dark);
  margin-bottom: 18px;
}
.project-note {
  margin-top: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--teal-dark);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal-dark);
  transition: gap var(--transition), color var(--transition);
}
.project-link span { transition: transform var(--transition); }
.project-link:hover { color: var(--teal); }
.project-link:hover span { transform: translateX(4px); }

/* ============================================================
   Contacto
   ============================================================ */
.section-contact {
  background: linear-gradient(135deg, var(--charcoal-dark) 0%, #34322F 100%);
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(62,153,152,0.35) 0%, transparent 70%);
}
.contact-lead { color: #C9C7C4; font-size: 1.12rem; max-width: 460px; }

.contact-list { display: flex; flex-direction: column; gap: 28px; }
.contact-list li { display: flex; align-items: flex-start; gap: 20px; }
.contact-ico {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-ico svg { width: 24px; height: 24px; }
.contact-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8FA8A7;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  transition: color var(--transition);
}
a.contact-value:hover { color: var(--teal); }

/* ============================================================
   Pie
   ============================================================ */
.site-footer { background: #26241F; color: #B8B6B3; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 64px;
  padding-bottom: 44px;
}
.footer-logo {
  height: 60px;
  margin-bottom: 18px;
  /* Se usa la versión clara del logo (logo-prisma-blanco.png), sin filtros. */
  opacity: 0.95;
}
.footer-brand p { color: #8B8987; font-size: 0.95rem; line-height: 1.6; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.footer-nav a {
  font-size: 0.92rem;
  color: #B8B6B3;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}
.footer-bottom p { font-size: 0.85rem; color: #6E6C69; }

/* ============================================================
   Animaciones de aparición (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; z-index: 110; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    background: #fff;
    box-shadow: -20px 0 60px -30px rgba(0,0,0,0.4);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a { font-size: 1.15rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2 { grid-template-columns: 1fr; }
  .figure-prism { order: -1; }
  .grid-values { grid-template-columns: 1fr; }

  .project,
  .project-reverse { grid-template-columns: 1fr; }
  .project-reverse .project-media { order: 0; }

  .hero { min-height: auto; padding-top: 120px; padding-bottom: 80px; }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(255,255,255,0.92) 0%,
      rgba(255,255,255,0.80) 50%,
      rgba(255,255,255,0.60) 100%);
  }
  .hero-scroll { display: none; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   Banner de cookies (LSSI-CE / AEPD)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 200;
  max-width: 940px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px -20px rgba(38, 36, 31, 0.4);
  padding: 24px 28px;
  transform: translateY(140%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1 1 340px; }
.cookie-text strong {
  display: block;
  color: var(--charcoal-dark);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.cookie-text p { font-size: 0.92rem; margin: 0; }
.cookie-text a { color: var(--teal); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-cookie {
  padding: 11px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--charcoal-dark);
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-cookie:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--teal); }
.btn-cookie.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-cookie.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

/* ---------- Panel de configuración ---------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-modal.show { display: flex; }
.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 36, 31, 0.55);
  backdrop-filter: blur(2px);
}
.cookie-modal-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: var(--shadow);
}
.cookie-modal-dialog h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--charcoal-dark);
  margin-bottom: 10px;
}
.cookie-modal-dialog > p { font-size: 0.95rem; margin-bottom: 24px; }

.cookie-cat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-cat-head h3 { font-size: 1rem; color: var(--charcoal-dark); }
.cookie-cat p { font-size: 0.88rem; margin: 0; }
.cookie-fixed { font-size: 0.8rem; font-weight: 600; color: var(--teal); }

/* Interruptor */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #CBD3D3;
  border-radius: 100px;
  transition: background var(--transition);
}
.switch .slider::before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}
.switch input:checked + .slider { background: var(--teal); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.cookie-modal-actions .btn-cookie { flex: 1 1 auto; }

.cookie-config-link { cursor: pointer; }

@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn-cookie { flex: 1 1 auto; }
  .cookie-modal-dialog { padding: 28px 22px; }
}
