/* =========================================================
   VARIABLES GLOBALES
========================================================= */

:root {
  --bg: #d9edf7;
  --bg-soft: #b9ddef;
  --bg-deep: #16466a;

  --text: #10263a;
  --muted: #557086;

  --violet: #bd73b8;
  --pink-soft: #efc0dc;
  --fuchsia: #c87cc0;

  --blue: #3383b7;
  --blue-dark: #17486c;
  --orange: #8fbad7;

  --sun: #f1d8e8;

  --border: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 100px rgba(22, 70, 106, 0.22);
}

/* =========================================================
   RESET BASE
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  width: 100%;

  color: var(--text);
  font-family: 'Inter', sans-serif;

  overflow-x: hidden;

  background:
    linear-gradient(
      to bottom,
      #d9edf7 0%,
      #c8e5f5 18%,
      #d8c0ea 38%,
      #efd1e6 54%,
      #8fc5e7 76%,
      #17486c 100%
    );

  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================================================
   CAPA DE RUIDO GLOBAL
   Importante: queda bajo la futura luna 3D
========================================================= */

.noise {
  position: fixed;
  inset: 0;

  pointer-events: none;

  z-index: 70;
  opacity: 0.05;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

/* =========================================================
   BOTONES GLOBALES
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 24px;

  border-radius: 999px;
  border: 1px solid transparent;

  background: var(--sun);
  color: #10263a;

  font-weight: 900;
  line-height: 1;

  cursor: pointer;

  transition:
    transform 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;

  box-shadow: 0 16px 44px rgba(22, 70, 106, 0.22);
}

.btn:hover {
  transform: translateY(-3px);
  background: var(--fuchsia);
  color: #fff;
  box-shadow: 0 20px 60px rgba(189, 115, 184, 0.34);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-color: rgba(255, 255, 255, 0.28);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.24);
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   TRANSICIÓN HERO / INTRO
   No controla la altura del hero. Eso queda en hero.css
========================================================= */

.hero-transition-section {
  position: relative;
  z-index: 30;

  margin-top: 0;
  margin-bottom: 0;
}

.hero-transition-actions {
  position: relative;
  z-index: 40;
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */

.section {
  position: relative;

  padding: 130px 5vw;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.06)
    );

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-kicker {
  color: var(--blue-dark);

  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;

  margin-bottom: 22px;
}

.section-title {
  font-size: clamp(2.4rem, 6vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.07em;

  max-width: 1000px;

  font-weight: 900;
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}

.text-block p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
  margin-top: 24px;
}

/* =========================================================
   TARJETA VISUAL
========================================================= */

.art-card {
  min-height: 520px;

  border-radius: 42px;
  border: 1px solid var(--border);

  background:
    linear-gradient(
      to bottom,
      #2d7ab4,
      #5a95c7 24%,
      #b86fb6 48%,
      #d9a9cb 66%,
      #8fbad7 82%,
      #06192b 100%
    );

  box-shadow: var(--shadow);

  position: relative;
  overflow: hidden;
}

.art-card::before {
  content: '';
  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 9px
    );

  opacity: 0.22;
}

.art-card::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 54%;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  transform: translate(-50%, -50%);

  background: var(--sun);
  box-shadow: 0 0 50px rgba(241, 216, 232, 0.8);
}

.art-symbol {
  position: absolute;
  inset: 32px;

  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);

  display: grid;
  place-items: center;

  z-index: 2;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  background: rgba(8, 6, 18, 0.08);
}

.art-symbol span {
  font-family: 'Playfair Display', serif;
  font-size: clamp(7rem, 15vw, 13rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
}

/* =========================================================
   CARDS
========================================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;

  margin-top: 60px;
}

.service-card {
  min-height: 310px;

  padding: 34px;

  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);

  background: rgba(255, 255, 255, 0.28);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  position: relative;
  overflow: hidden;

  box-shadow: 0 22px 70px rgba(22, 70, 106, 0.12);

  transition:
    transform 0.45s ease,
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: auto -30% -55% -30%;

  height: 70%;

  background:
    radial-gradient(circle, rgba(189, 115, 184, 0.28), transparent 70%);

  opacity: 0;
  transition: opacity 0.45s ease;
}

.service-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(189, 115, 184, 0.42);
  box-shadow: 0 30px 90px rgba(22, 70, 106, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-number {
  color: var(--blue-dark);
  font-weight: 900;
  margin-bottom: 70px;
}

.service-card h3 {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  margin-bottom: 16px;

  position: relative;
  z-index: 2;

  color: var(--text);
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;

  position: relative;
  z-index: 2;
}

/* =========================================================
   MARQUEE
========================================================= */

.marquee {
  overflow: hidden;

  border-block: 1px solid rgba(255, 255, 255, 0.26);

  padding: 34px 0;

  background: rgba(255, 255, 255, 0.14);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;

  animation: marquee 24s linear infinite;
}

.marquee span {
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.07em;

  color: transparent;

  -webkit-text-stroke: 1px rgba(16, 38, 58, 0.36);

  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   EXPERIENCE / SECCIÓN SOFÁ
========================================================= */

.experience-section {
  position: relative;

  min-height: 100vh;

  overflow: hidden;
  display: block;

  margin-top: 0;
  margin-bottom: 0;

  background-color: #eaf4f8;
}

.experience-layer {
  object-fit: cover;
  object-position: center center;
}

/* =========================================================
   QUOTE SECTION
========================================================= */

.quote-section {
  position: relative;

  min-height: 100vh;
  padding: 150px 5vw;

  display: flex;
  align-items: center;

  margin-top: 0;
  margin-bottom: 0;

  background:
    radial-gradient(circle at center, rgba(189, 115, 184, 0.22), transparent 36%),
    linear-gradient(to bottom, rgba(217, 237, 247, 0.28), rgba(22, 70, 106, 0.54));

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.quote-section .section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.quote-content {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.quote-content h2 {
  font-size: clamp(2.2rem, 5.8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 900;
  color: #10263a;
}

/* Compatibilidad por si alguna parte usa quote-box */
.quote-box {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.quote-box h2 {
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 900;
  color: white;

  text-shadow:
    0 8px 30px rgba(0, 0, 0, 0.16),
    0 20px 80px rgba(0, 0, 0, 0.22);
}

.quote-box p {
  margin-top: 28px;

  color: rgba(255, 255, 255, 0.88);

  font-size: 1.15rem;
  line-height: 1.8;
}

/* =========================================================
   CTA ORIGINAL
========================================================= */

.cta {
  position: relative;

  padding: 150px 5vw;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08),
      rgba(22, 70, 106, 0.34)
    );
}

.cta-panel {
  width: min(1180px, 100%);
  margin: 0 auto;

  min-height: 520px;

  border-radius: 48px;

  padding: clamp(36px, 7vw, 90px);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid rgba(255, 255, 255, 0.28);

  background:
    radial-gradient(circle at 20% 15%, rgba(241, 216, 232, 0.42), transparent 24%),
    linear-gradient(135deg, rgba(189, 115, 184, 0.28), transparent),
    linear-gradient(315deg, rgba(51, 131, 183, 0.42), transparent),
    rgba(255, 255, 255, 0.24);

  box-shadow: var(--shadow);

  overflow: hidden;
  position: relative;
}

.cta-panel h2 {
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  font-weight: 900;

  max-width: 900px;

  color: white;

  text-shadow:
    0 8px 30px rgba(0, 0, 0, 0.14),
    0 20px 80px rgba(0, 0, 0, 0.22);
}

.cta-bottom {
  margin-top: 60px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-bottom p {
  max-width: 560px;

  color: rgba(255, 255, 255, 0.86);

  line-height: 1.8;
  font-size: 1.08rem;
}

/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
  position: relative;
  padding: 120px 5vw 150px;

  margin-top: 0;
  margin-bottom: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(22, 70, 106, 0.54),
      rgba(12, 35, 58, 0.92)
    );
}

.contact-panel {
  width: min(1180px, 100%);
  margin: 0 auto;

  min-height: 440px;

  padding: clamp(34px, 7vw, 84px);

  border-radius: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);

  background:
    radial-gradient(circle at 20% 15%, rgba(241, 216, 232, 0.35), transparent 26%),
    linear-gradient(135deg, rgba(189, 115, 184, 0.32), transparent),
    linear-gradient(315deg, rgba(51, 131, 183, 0.38), transparent),
    rgba(255, 255, 255, 0.18);

  box-shadow: 0 30px 100px rgba(22, 70, 106, 0.24);

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.contact-text {
  max-width: 760px;
}

.section-tag.light {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;
  padding: 0 15px;
  margin-bottom: 24px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-text h2 {
  color: white;
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 900;

  text-shadow:
    0 8px 30px rgba(0, 0, 0, 0.14),
    0 20px 80px rgba(0, 0, 0, 0.22);
}

.contact-text p {
  max-width: 620px;
  margin-top: 26px;

  color: rgba(255, 255, 255, 0.86);

  line-height: 1.8;
  font-size: 1.08rem;
}

.contact-actions {
  display: flex;
  align-items: center;
}

.btn-primary-contact {
  min-height: 58px;
  padding: 0 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: #ffffff;
  color: #17486c;

  font-weight: 900;
  text-decoration: none;

  box-shadow: 0 20px 60px rgba(23, 72, 108, 0.22);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary-contact:hover {
  transform: translateY(-3px);
  background: #f1d8e8;
  color: #10263a;
  box-shadow: 0 26px 76px rgba(189, 115, 184, 0.3);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 44px 5vw;

  border-top: 1px solid rgba(255, 255, 255, 0.22);

  color: rgba(255, 255, 255, 0.82);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;

  font-size: 0.9rem;

  background: rgba(22, 70, 106, 0.82);
}

/* =========================================================
   ANIMACIONES GENERALES
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(60px);
}

/* =========================================================
   ELIMINACIÓN DE CORTES ENTRE BLOQUES
========================================================= */

.intro-section,
.experience-section,
.quote-section,
.contact-section,
.hero-transition-section {
  margin-top: 0;
  margin-bottom: 0;
}

/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .art-card {
    min-height: 390px;
    border-radius: 34px;
  }

  .art-symbol {
    inset: 24px;
    border-radius: 26px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 90px 5vw;
  }

  .section-title {
    font-size: clamp(2.5rem, 12vw, 5.5rem);
  }

  .quote-section {
    min-height: auto;
    padding: 100px 5vw;
  }

  .quote-content h2,
  .quote-box h2,
  .cta-panel h2 {
    font-size: clamp(3rem, 14vw, 5.5rem);
  }

  .cta {
    padding: 90px 5vw;
  }

  .cta-panel {
    min-height: 460px;
  }

  .cta-bottom {
    align-items: flex-start;
  }
}

/* =========================================================
   RESPONSIVE MOBILE / TABLET PEQUEÑO
========================================================= */

@media (max-width: 768px) {
  .experience-section {
    min-height: 82vh;
  }

  .experience-layer {
    object-position: center bottom;
  }

  .quote-section {
    min-height: auto;
    padding: 100px 20px;
  }

  .quote-content h2 {
    font-size: clamp(2rem, 10vw, 4.2rem);
    letter-spacing: -0.055em;
  }

  .contact-section {
    padding: 90px 20px 110px;
  }

  .contact-panel {
    border-radius: 32px;
    min-height: auto;
    align-items: flex-start;
  }

  .contact-text h2 {
    font-size: clamp(2.4rem, 12vw, 5rem);
  }

  .contact-text p {
    font-size: 1rem;
  }

  .contact-actions,
  .btn-primary-contact {
    width: 100%;
  }
}

/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 520px) {
  .hero-transition-actions {
    width: min(92vw, 420px);
    flex-direction: column;
    border-radius: 32px;
    padding: 12px;
    gap: 10px;
  }

  .transition-btn {
    width: 100%;
    min-height: 52px;
  }

  .section {
    padding: 76px 18px;
  }

  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .section-title {
    font-size: clamp(2.35rem, 15vw, 4.4rem);
    line-height: 0.94;
  }

  .text-block p,
  .quote-box p,
  .cta-bottom p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .btn {
    width: 100%;
    min-height: 50px;
  }

  .art-card {
    min-height: 340px;
    border-radius: 28px;
  }

  .art-symbol {
    inset: 18px;
    border-radius: 22px;
  }

  .service-card {
    min-height: auto;
    padding: 28px;
    border-radius: 28px;
  }

  .service-number {
    margin-bottom: 46px;
  }

  .service-card h3 {
    font-size: 1.45rem;
  }

  .marquee {
    padding: 24px 0;
  }

  .marquee-track {
    gap: 32px;
    animation-duration: 28s;
  }

  .quote-section {
    padding: 90px 18px;
  }

  .quote-box h2,
  .quote-content h2 {
    line-height: 0.95;
  }

  .cta {
    padding: 80px 18px;
  }

  .cta-panel {
    min-height: 420px;
    border-radius: 32px;
  }

  .cta-bottom {
    margin-top: 46px;
  }

  .contact-section {
    padding: 80px 18px 100px;
  }

  .contact-panel {
    padding: 34px 24px;
  }

  .site-footer {
    padding: 34px 18px;
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   ACCESIBILIDAD / REDUCCIÓN DE MOVIMIENTO
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   FIX GLOBAL MOBILE OVERFLOW
   Evita desplazamiento lateral de la página completa.
========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip !important;
}

body {
  position: relative;
}

main,
.site-main,
section,
header,
footer {
  max-width: 100%;
  overflow-x: clip;
}

iframe,
embed,
object {
  max-width: 100%;
}
/* =========================================================
   SEO CONTENT SECTION
========================================================= */

.seo-content-section {
  position: relative;
  padding: 110px 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(162, 215, 236, 0.28), transparent 34%),
    radial-gradient(circle at 80% 40%, rgba(230, 71, 150, 0.18), transparent 36%),
    linear-gradient(180deg, #eef8fb 0%, #f7eef8 100%);
  overflow: hidden;
}

.seo-content-inner {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: center;
}

.seo-content-inner h2 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  color: #102033;
}

.seo-content-inner p {
  width: min(100%, 720px);
  margin: 24px auto 0;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 600;
  color: rgba(16, 32, 51, 0.68);
}

@media (max-width: 768px) {
  .seo-content-section {
    padding: 84px 18px;
  }

  .seo-content-inner {
    text-align: left;
  }

  .seo-content-inner h2 {
    font-size: clamp(2.15rem, 11vw, 3.8rem);
  }

  .seo-content-inner p {
    font-size: 0.94rem;
    line-height: 1.65;
  }
}
/* =========================================================
   SESIONES PAGE
========================================================= */

.sesiones-hero {
  padding-top: 150px;
}

.sesiones-actions {
  justify-content: center;
  margin-top: 34px;
}

.seo-cards-grid {
  width: min(100%, 980px);
  margin: 42px auto 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.seo-card {
  min-height: 210px;
  padding: 24px;

  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 28px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.52),
      rgba(255, 255, 255, 0.24)
    );

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow: 0 22px 54px rgba(85, 67, 110, 0.14);

  text-align: left;
}

.seo-card h3 {
  margin: 0 0 14px;

  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;

  color: #102033;
}

.seo-card p {
  margin: 0;

  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;

  color: rgba(16, 32, 51, 0.66);
}

@media (max-width: 980px) {
  .seo-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sesiones-hero {
    padding-top: 128px;
  }

  .sesiones-actions {
    justify-content: flex-start;
  }

  .seo-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
  }

  .seo-card {
    min-height: auto;
    padding: 22px;
    border-radius: 24px;
  }
}