:root {
  --chocolate: #3b2a24;
  --chocolate-soft: #5a4035;
  --orange-soft: #f5a667;
  --bg-dark: #050506;
  --bg-deep: #070709;
  --card-dark: #111113;
  --text-soft: rgba(255, 255, 255, 0.78);
  --border-soft: rgba(255, 255, 255, 0.12);
  --radius-lg: 24px;
  --shadow-3d: 0 24px 60px rgba(0, 0, 0, 0.7);
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 0 0, rgba(245, 166, 103, 0.05), var(--bg-deep));
  color: #ffffff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Utilidades */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-inner {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 2rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 38rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.2s ease-out, border-color 0.2s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-soft), var(--chocolate-soft));
  color: #050505;
  border-color: rgba(0, 0, 0, 0.75);
  box-shadow: var(--shadow-3d);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
}

.btn-ghost {
  background: rgba(8, 8, 8, 0.7);
  color: var(--text-soft);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
  background: rgba(12, 12, 12, 0.9);
}

/* HEADER / NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 6, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 60px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
  transform: translateZ(0);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

/* Main nav */
.main-nav {
  display: flex;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a,
.dropdown-toggle {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.16rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Subrayado animado */
.main-nav a::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--orange-soft);
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after,
.dropdown-toggle:hover::after {
  width: 100%;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-icon {
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 140%;
  left: 0;
  background: rgba(8, 8, 9, 0.98);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 220px;
  padding: 0.4rem 0.3rem;
  list-style: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.dropdown-menu a:hover {
  background: rgba(245, 166, 103, 0.08);
}

.dropdown-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Nav CTA */
.nav-cta {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 166, 103, 0.45);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: radial-gradient(circle at 0 0, rgba(245, 166, 103, 0.24), rgba(20, 14, 10, 0.97));
  text-decoration: none;
  color: #fefefe;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* HERO */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg-orbit {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 166, 103, 0.14), transparent 55%),
    radial-gradient(circle at 100% 10%, rgba(91, 64, 53, 0.7), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(10, 10, 10, 1), transparent 60%);
  opacity: 0.95;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.hero-content {
  animation: heroFadeUp 0.9s ease-out;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.7rem;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 3.4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.hero-title span {
  color: var(--orange-soft);
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--text-soft);
  max-width: 40rem;
  text-align: justify;
  margin-bottom: 1.6rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.hero-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Hero panel 3D */
.hero-panel {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(245, 166, 103, 0.14), #141218);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-3d);
  padding: 1.8rem 1.6rem 1.7rem;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(245, 166, 103, 0.16), transparent 55%);
  opacity: 0.6;
}

.hero-logo-orbit {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.hero-logo-image {
  width: 140px;
  max-width: 70%;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85);
  transform-origin: center;
  transform: perspective(1200px) rotateY(-8deg) rotateX(6deg);
}

.hero-panel-text {
  position: relative;
  z-index: 1;
}

.hero-panel-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.hero-panel-text p {
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* SOBRE EL ESTUDIO */
.section-about {
  position: relative;
  color: #ffffff;
  overflow: hidden;
}

.section-bg.about-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.2)),
    url("about-bg.png") center/cover no-repeat;
  opacity: 0.9;
  z-index: 0;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(245, 166, 103, 0.12), transparent 60%);
  z-index: 0;
}

.about-body {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.9);
}

.about-body p {
  margin-bottom: 0.9rem;
  text-align: justify;
}

/* ÁREAS */
.section-areas {
  background: radial-gradient(circle at 0 0, rgba(245, 166, 103, 0.08), #050506);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.area-card {
  background: rgba(10, 10, 12, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
  border-color: rgba(245, 166, 103, 0.6);
}

.area-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.area-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.35s ease-out;
}

.area-card:hover .area-image {
  transform: scale(1.06);
}

.area-content {
  padding: 1.4rem 1.4rem 1.5rem;
}

.area-content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--orange-soft);
}

.area-content p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ENFOQUE */
.section-enfoque {
  background: radial-gradient(circle at 100% 0%, rgba(91, 64, 53, 0.6), #050506);
}

.enfoque-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.enfoque-card {
  background: rgba(10, 10, 11, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.3rem 1.3rem 1.2rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.75);
  font-size: 0.88rem;
  color: var(--text-soft);
}

.enfoque-card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: rgba(245, 166, 103, 0.95);
}

/* ALIANZA / COLABORACIÓN */
.section-alianza {
  background: radial-gradient(circle at 0 0, rgba(245, 166, 103, 0.1), #050506);
}

.alianza-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.alianza-main {
  background: rgba(10, 10, 12, 0.96);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.alianza-logo-wrap {
  margin-bottom: 1rem;
}

.alianza-logo {
  max-width: 220px;
  height: auto;
  display: block;
}

.alianza-text {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
  text-align: justify;
}

.alianza-side {
  background: rgba(10, 10, 11, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.8);
  font-size: 0.88rem;
}

.social-row-alt {
  margin-top: 1rem;
}

/* CONTACTO */
.section-contact {
  background: #040405;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-text {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88);
}

.contact-text p {
  margin-bottom: 0.9rem;
  text-align: justify;
}

.contact-info {
  background: rgba(8, 8, 9, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 1.3rem 1.6rem;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.85);
}

.contact-item {
  margin-bottom: 0.7rem;
}

.contact-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
}

.contact-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-cta {
  margin-top: 1.1rem;
  width: 100%;
}

/* Redes sociales */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-main {
  margin-top: 1.4rem; /* Más espacio respecto al botón de WhatsApp */
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 11, 0.95);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
}

/* FOOTER */
.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030304;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    margin-top: 1.4rem;
  }

  .areas-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .enfoque-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .alianza-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-bar {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(5, 5, 6, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
  }

  .main-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 1rem 1rem;
    gap: 0.5rem;
  }

  .has-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    margin-top: 0.2rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 5.5rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
