/* =========================================================
   DanaEMM Print — estilos generales
   ========================================================= */

:root {
  --navy-950: #0b1526;
  --navy-900: #101d33;
  --navy-800: #16274a;
  --navy-700: #1c3159;
  --gold-500: #c9a227;
  --gold-400: #d9b94d;
  --gold-100: #f4e9c9;
  --cream: #faf6ee;
  --cream-alt: #f1ebdd;
  --ink: #1e2230;
  --ink-soft: #4a4f5e;
  --white: #ffffff;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', system-ui, -apple-system, Segoe UI, sans-serif;

  --radius: 14px;
  --shadow-sm: 0 4px 14px rgba(11, 21, 38, 0.08);
  --shadow-md: 0 12px 32px rgba(11, 21, 38, 0.16);
  --shadow-lg: 0 24px 60px rgba(11, 21, 38, 0.28);

  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.75em;
}

.eyebrow-light { color: var(--gold-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 1rem; }

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--navy-800); }

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 162, 39, 0.4); background: var(--gold-400); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 21, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
}
.logo span { color: var(--gold-400); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-400);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,21,38,0.55) 0%, rgba(11,21,38,0.72) 55%, rgba(11,21,38,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-top: 60px;
  padding-bottom: 100px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 0.4em;
}

.hero-subtitle {
  color: var(--gold-100);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 560px;
  margin-bottom: 2em;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 30px;
  height: 46px;
  border: 2px solid rgba(244, 233, 201, 0.6);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { top: 8px; opacity: 1; }
  70% { top: 26px; opacity: 0.2; }
  100% { top: 26px; opacity: 0; }
}

/* =========================================================
   ESPECIALIDAD EN TESIS
   ========================================================= */
.tesis-section {
  padding: 110px 0 90px;
  background: var(--cream);
}

.tesis-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.tesis-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.tesis-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tesis-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 10px solid var(--white);
  border-radius: var(--radius);
  pointer-events: none;
}

.tesis-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.feature-list {
  list-style: none;
  margin: 1.6em 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  font-weight: 500;
}
.feature-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--gold-100);
  stroke: var(--gold-500);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tesis-strip {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tesis-strip figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tesis-strip figure:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tesis-strip img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   NUESTROS SERVICIOS
   ========================================================= */
.servicios-section {
  padding: 110px 0;
  background: var(--navy-950);
  background-image: radial-gradient(circle at 15% 10%, rgba(201,162,39,0.08), transparent 40%),
                     radial-gradient(circle at 85% 90%, rgba(201,162,39,0.06), transparent 45%);
}

.servicios-section h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  max-width: 640px;
}

.servicios-lead {
  color: rgba(250, 246, 238, 0.75);
  max-width: 680px;
  font-size: 1.05rem;
}

.servicios-quote {
  margin: 32px 0 46px;
  padding: 26px 30px;
  border-left: 3px solid var(--gold-500);
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gold-100);
  background: rgba(201, 162, 39, 0.06);
  border-radius: 0 10px 10px 0;
  max-width: 780px;
}

.servicios-list {
  list-style: none;
  margin: 0 0 46px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 780px;
}
.servicios-list li {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold-100);
  font-size: 0.9rem;
  font-weight: 500;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}
.usp-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(250, 246, 238, 0.12);
  background: rgba(250, 246, 238, 0.04);
}
.usp-card h3 {
  color: var(--gold-400);
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.usp-card p {
  color: rgba(250, 246, 238, 0.72);
  font-size: 0.94rem;
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(250, 246, 238, 0.25);
  background: transparent;
  color: rgba(250, 246, 238, 0.85);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--gold-400); color: var(--white); }
.filter-btn.is-active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: default;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(11,21,38,0.92) 0%, rgba(11,21,38,0) 100%);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

.gallery-item.is-hidden { display: none; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contacto-section {
  padding: 110px 0;
  background: var(--cream-alt);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contacto-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }

.contacto-urgent {
  font-size: 1.05rem;
  color: var(--navy-800);
  font-weight: 500;
  padding: 14px 18px;
  background: var(--gold-100);
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 2em;
}

.contact-details {
  list-style: none;
  margin: 0 0 2em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-details svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 9px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--navy-900);
  stroke: var(--gold-400);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-details strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy-900);
}
.contact-details span {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--gold-400);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-links a:hover { background: var(--gold-500); color: var(--navy-950); transform: translateY(-2px); }

.contacto-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid #e2ddd0;
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 10px !important;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--gold-500); }

.contacto-form .btn { align-self: flex-start; margin-top: 8px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-950);
  padding: 40px 0;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: rgba(250, 246, 238, 0.75);
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--gold-400); }
.footer-copy {
  color: rgba(250, 246, 238, 0.5);
  font-size: 0.85rem;
  margin: 0;
  width: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 246, 238, 0.08);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .tesis-grid { grid-template-columns: 1fr; }
  .tesis-image { max-width: 480px; margin: 0 auto; }
  .tesis-strip { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--navy-950);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 24px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .hero { min-height: 100vh; }
  .tesis-section, .servicios-section, .contacto-section { padding: 70px 0; }
  .tesis-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { gap: 8px; }
  .filter-btn { font-size: 0.8rem; padding: 8px 16px; }
  .contacto-form { padding: 26px; }
}
