*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #1E2D40; font-family: 'Inter', sans-serif; color: #E8E4DC; overflow-x: hidden; }
::selection { background: #C8A96E; color: #0D0D0D; }

@keyframes dhBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .55; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: 1; }
}
@keyframes dhSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── NAV ── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(30,45,64,0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(200,169,110,0);
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
#main-nav.scrolled {
  background: rgba(30,45,64,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(200,169,110,0.1);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
  height: 80px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 28px; letter-spacing: 4px; color: #C8A96E; text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-link {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px;
  color: #E8E4DC; text-decoration: none; transition: color .3s ease;
}
.nav-link:hover { color: #C8A96E; }

/* ── HERO ── */
#top {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; background: #0D0D0D;
}
.hero-spin {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(
    from 0deg at 50% 48%,
    rgba(232,228,220,0.05) 0deg,
    rgba(13,13,13,0)       4deg,
    rgba(13,13,13,0)       8deg,
    rgba(200,169,110,0.06) 12deg
  );
  animation: dhSpin 120s linear infinite;
}
.hero-radial {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(74,98,128,0.45) 0%, rgba(36,51,70,0.25) 22%, rgba(13,13,13,0.4) 48%, rgba(13,13,13,0.95) 100%);
}
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,45,64,0.55) 0%, rgba(30,45,64,0) 30%);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 24px; max-width: 1100px;
}
.hero-eyebrow {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: 5px; color: #C8A96E; margin: 0 0 36px;
}
.hero-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(56px, 10vw, 132px); line-height: 1; margin: 0; letter-spacing: 1px;
}
.hero-title .name-light { color: #E8E4DC; }
.hero-title .name-gold  { color: #C8A96E; }
.hero-quote {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(18px, 2.4vw, 30px); color: #E8E4DC; opacity: .92; margin: 28px 0 48px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #C8A96E; color: #0D0D0D;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px;
  padding: 16px 34px; text-decoration: none;
  transition: background .3s ease;
}
.hero-cta:hover { background: #d9bd86; }
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2; color: #C8A96E;
  animation: dhBounce 2.2s ease-in-out infinite;
}

/* ── CAPACIDADES ── */
#capacidades { background: #243346; padding: 130px 48px; }
.section-center { max-width: 1280px; margin: 0 auto; }
.cap-header { text-align: center; max-width: 820px; margin: 0 auto 80px; }
.cap-heading {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.05; margin: 0; color: #E8E4DC;
}
.cap-sub {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: clamp(17px, 1.6vw, 21px); color: #8C97AD; margin: 26px 0 0;
}
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: rgba(30,45,64,0.45);
  border: 1px solid rgba(232,228,220,0.08);
  padding: 44px 40px 48px;
  transform: translateY(0);
  transition: border-color .3s ease, transform .3s ease;
  cursor: default;
}
.card:hover { border-color: #C8A96E; transform: translateY(-6px); }
.card-icon {
  width: 56px; height: 56px;
  border: 1px solid rgba(200,169,110,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #C8A96E; margin-bottom: 32px;
}
.card-label {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 12px; letter-spacing: 3px; color: #C8A96E; margin: 0 0 18px;
}
.card-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 28px; line-height: 1.15; margin: 0 0 22px; color: #E8E4DC;
}
.card-body {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: 16px; line-height: 1.7; color: #8C97AD; margin: 0;
}

/* ── SOBRE MÍ ── */
#sobre {
  position: relative; padding: 140px 48px; overflow: hidden; background: #1E2D40;
}
.sobre-lines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(232,228,220,0.04) 0px, rgba(232,228,220,0.04) 1px, transparent 1px, transparent 11px);
}
.sobre-radial {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 50%, rgba(74,98,128,0.18) 0%, rgba(20,32,48,0) 55%);
}
.sobre-overlay { position: absolute; inset: 0; background: rgba(20,32,48,0.55); }
.sobre-inner { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }
.sobre-heading-wrap { border-left: 3px solid #C8A96E; padding-left: 36px; margin-bottom: 60px; }
.sobre-heading {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(36px, 5vw, 62px); line-height: 1.08; margin: 0; color: #E8E4DC;
}
.sobre-paras { display: flex; flex-direction: column; gap: 36px; max-width: 760px; padding-left: 36px; }
.sobre-p {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: 18px; line-height: 1.85; color: #E8E4DC; opacity: .82; margin: 0;
  border-left: 1px solid rgba(200,169,110,0.3); padding-left: 28px;
}

/* ── CONTACTO ── */
#contacto { background: #1E2D40; padding: 140px 48px; text-align: center; }
.contact-inner { max-width: 900px; margin: 0 auto; }
.contact-heading {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(42px, 6.4vw, 84px); line-height: 1.05; margin: 0; color: #E8E4DC;
}
.contact-sub {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: clamp(17px, 1.8vw, 22px); line-height: 1.6;
  color: #8C97AD; max-width: 640px; margin: 32px auto 52px;
}
.contact-mail {
  display: inline-flex; align-items: center; gap: 12px;
  background: #C8A96E; color: #0D0D0D;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 17px;
  padding: 18px 40px; text-decoration: none;
  transition: background .3s ease;
}
.contact-mail:hover { background: #d9bd86; }
.social-row { display: flex; justify-content: center; gap: 18px; margin-top: 44px; }
.social-link {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(200,169,110,0.5); color: #C8A96E;
  text-decoration: none; transition: background .3s ease, color .3s ease;
}
.social-link:hover { background: #C8A96E; color: #0D0D0D; }

/* ── FOOTER ── */
footer { background: #0D0D0D; padding: 80px 48px 56px; }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px; align-items: start;
}
.footer-logo {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 30px; letter-spacing: 4px; color: #C8A96E;
}
.footer-tagline {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: 16px; color: #C8A96E; margin: 20px 0 0; max-width: 300px;
}
.footer-col-label {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 12px; letter-spacing: 2px; color: #4A6280; margin: 0 0 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: 15px; color: #E8E4DC; opacity: .7;
  text-decoration: none; transition: color .3s ease, opacity .3s ease;
}
.footer-link:hover { color: #C8A96E; opacity: 1; }
.footer-copy {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: 14px; color: #4A6280; margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .nav-inner { padding: 0 24px; }
  #capacidades, #sobre, #contacto { padding-left: 24px; padding-right: 24px; }
  footer { padding: 60px 24px 40px; }
}
@media (max-width: 640px) {
  .nav-links { gap: 20px; }
  .nav-link { font-size: 13px; }
  .sobre-paras { padding-left: 0; }
  .sobre-heading-wrap { padding-left: 20px; }
}
/* ── MODAL CONTACTO ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}

.modal-overlay.active {
  opacity: 1; pointer-events: auto;
}

.modal-container {
  background: #1E2D40;
  border: 1px solid rgba(200, 169, 110, 0.3);
  max-width: 520px; width: 100%;
  padding: 48px 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute; top: 20px; right: 24px;
  background: transparent; border: none;
  color: #8C97AD; font-size: 32px; font-weight: 300;
  cursor: pointer; transition: color .3s ease; line-height: 1;
}
.modal-close:hover { color: #C8A96E; }

.modal-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 32px; color: #E8E4DC; margin: 0 0 10px; text-align: left;
}

.modal-sub {
  font-family: 'Inter', sans-serif; font-weight: 300;
  font-size: 15px; color: #8C97AD; margin: 0 0 32px; text-align: left;
}

.modal-form { display: flex; flex-direction: column; gap: 20px; text-align: left; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 12px; letter-spacing: 1.5px; color: #C8A96E; text-transform: uppercase;
}

.form-input {
  background: rgba(13, 13, 13, 0.4);
  border: 1px solid rgba(232, 228, 220, 0.15);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif; font-size: 15px; color: #E8E4DC;
  outline: none; transition: border-color .3s ease;
}

.form-input:focus {
  border-color: #C8A96E;
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-submit {
  background: #C8A96E; color: #0D0D0D; border: none;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px;
  padding: 16px 24px; cursor: pointer; margin-top: 10px;
  transition: background .3s ease;
}
.form-submit:hover { background: #d9bd86; }

#open-contact-modal { cursor: pointer; border: none; }
/* ── PÁGINAS LEGALES ── */
.legal-page {
  padding: 160px 48px 100px;
  background: #1E2D40;
  min-height: 80vh;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  border-bottom: 1px solid rgba(200, 169, 110, 0.3);
  padding-bottom: 32px;
  margin-bottom: 48px;
}

.legal-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 54px);
  color: #E8E4DC;
  margin: 0 0 12px;
}

.legal-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #8C97AD;
  margin: 0;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: #C8A96E;
  margin: 0 0 16px;
}

.legal-section p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: #E8E4DC;
  opacity: 0.88;
  margin: 0;
}

.legal-link {
  color: #C8A96E;
  text-decoration: underline;
  transition: opacity .3s ease;
}

.legal-link:hover {
  opacity: 0.8;
}

.legal-list {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .legal-page {
    padding: 120px 24px 80px;
  }
}