:root {
  --navy: #0f4964;
  --navy-deep: #0a3144;
  --gold: #cda45d;
  --gold-soft: #e3c793;
  --cream: #f7f2eb;
  --white: #ffffff;
  --ink: #18303c;
  --muted: #6b7a86;
  --line: rgba(15, 73, 100, 0.12);
  --shadow: 0 20px 50px rgba(9, 33, 47, 0.12);
  --shadow-soft: 0 10px 30px rgba(9, 33, 47, 0.08);
  --radius: 24px;
  --radius-small: 16px;
  --container: 1180px;
  --transition: 260ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 14%, rgba(250, 242, 227, 0.92), transparent 24%),
    radial-gradient(circle at 76% 20%, rgba(248, 235, 205, 0.78), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(255, 246, 232, 0.72), transparent 34%),
    linear-gradient(135deg, #e5dcd3 0%, #f1e8df 34%, #fff8ed 100%);
  line-height: 1.65;
  padding-top: 68px;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  line-height: 1.1;
  color: var(--navy-deep);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
}

p {
  margin: 0 0 16px;
  color: var(--ink);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

.text-gold {
  color: var(--gold);
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #b9893f 100%);
  color: var(--white);
  box-shadow: 0 16px 26px rgba(185, 137, 63, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 18px 32px rgba(185, 137, 63, 0.32);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(15, 73, 100, 0.18);
  box-shadow: var(--shadow-soft);
}

.btn-link {
  color: var(--navy);
  font-weight: 700;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: linear-gradient(135deg, rgba(229, 220, 211, 0.98) 0%, rgba(241, 232, 223, 0.98) 36%, rgba(255, 248, 237, 0.98) 100%);
  border-bottom: 1px solid rgba(205, 164, 93, 0.16);
  box-shadow: 0 8px 24px rgba(135, 112, 72, 0.05);
}

.navbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 122px;
  height: auto;
  display: block;
  background: transparent;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(15, 73, 100, 0.15);
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
  aspect-ratio: 1 / 1;
  flex: 0 0 36px;
}

.nav-toggle.btn {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-link,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.82rem 0.94rem;
  border-radius: 999px;
  color: var(--navy-deep);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.dropdown-toggle:hover,
.nav-link.active,
.dropdown-toggle.active {
  background: rgba(15, 73, 100, 0.08);
  color: var(--navy);
}

.dropdown-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 73, 100, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel,
.dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--navy);
}

.dropdown-panel a:hover {
  background: rgba(15, 73, 100, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 56px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(205, 164, 93, 0.06), transparent 24%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 40px;
  align-items: stretch;
}

.hero-card,
.panel,
.card,
.faq-item,
.contact-card,
.team-card,
.service-card,
.blog-card,
.process-card,
.stat-card,
.value-card,
.legal-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 73, 100, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

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

.hero-copy p {
  max-width: 650px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-badge {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(15, 73, 100, 0.06);
  border: 1px solid rgba(15, 73, 100, 0.08);
  font-weight: 600;
  color: var(--navy);
}

.hero-visual {
  position: relative;
  height: 100%;
}

.hero-visual .hero-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-showcase {
  padding: 28px;
  min-height: 100%;
}

.logo-frame {
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fffaf2 0%, #f9f4ea 100%);
  box-shadow: inset 0 0 0 1px rgba(205, 164, 93, 0.2);
}

.logo-frame img {
  width: 100%;
  border-radius: 18px;
}

.service-grid,
.values-grid,
.cards-grid,
.team-grid,
.blog-grid,
.contact-grid,
.stats-grid {
  display: grid;
  gap: 22px;
}

.service-grid,
.values-grid,
.cards-grid,
.team-grid,
.blog-grid,
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card,
.service-card,
.value-card,
.team-card,
.blog-card,
.contact-card,
.process-card,
.stat-card,
.legal-card {
  padding: 28px;
}

.card h3,
.service-card h3,
.value-card h3,
.team-card h3,
.blog-card h3,
.contact-card h3,
.process-card h3,
.stat-card h3,
.legal-card h3 {
  margin-bottom: 12px;
}

.value-card h3,
.process-card h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.icon-badge {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(205, 164, 93, 0.16);
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 12px;
}

.list-clean li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.split > * {
  height: 100%;
}

.info-panel {
  padding: 32px;
}

.info-panel strong {
  color: var(--navy);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 24px 18px;
}

.process-card h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
}

.process-number {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cta-band {
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 58%, #1a698b 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -120px;
  top: -120px;
  background: rgba(205, 164, 93, 0.18);
}

.cta-band h2,
.cta-band h3,
.cta-band p {
  color: var(--white);
}

.cta-band .btn-secondary {
  border-color: rgba(255,255,255,0.18);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--navy);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--navy-deep);
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 320px;
  padding: 0 24px 24px;
}

.quote-box {
  padding: 32px;
  border-left: 4px solid var(--gold);
  background: linear-gradient(180deg, rgba(205, 164, 93, 0.12), rgba(255,255,255,0.9));
  border-radius: 0 var(--radius) var(--radius) 0;
}

.map-wrap iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
  color: var(--navy-deep);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 73, 100, 0.14);
  background: rgba(255,255,255,0.9);
  padding: 15px 16px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(205, 164, 93, 0.16);
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(51, 122, 81, 0.12);
  color: #27573c;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

.site-footer {
  margin-top: 50px;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(180deg, var(--navy-deep) 0%, #082838 100%);
}

.footer-top {
  padding: 58px 0 26px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-top h3,
.footer-top h4,
.footer-top p,
.footer-top a,
.footer-bottom,
.footer-bottom a {
  color: rgba(255,255,255,0.88);
}

.footer-brand img {
  width: 160px;
  margin-bottom: 20px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li + li {
  margin-top: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0 28px;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.floating-actions {
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 12px;
  z-index: 35;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 999px;
  color: var(--white);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.float-btn.phone {
  background: linear-gradient(135deg, var(--navy) 0%, #1b6f92 100%);
}

.float-btn.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  padding: 72px 0 40px;
}

.article-content h2 {
  margin-top: 42px;
}

.article-content ul,
.article-content ol {
  padding-left: 1.2rem;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.inline-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(15, 73, 100, 0.08);
  background: rgba(15, 73, 100, 0.04);
}

.notice {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(205, 164, 93, 0.12);
  border: 1px solid rgba(205, 164, 93, 0.22);
}

@media (max-width: 1120px) {
  .hero-grid,
  .split,
  .footer-top,
  .contact-grid,
  .service-grid,
  .values-grid,
  .cards-grid,
  .team-grid,
  .blog-grid,
  .stats-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    inset: 62px 1rem auto 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(15, 73, 100, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(15, 73, 100, 0.04);
    margin-top: 8px;
    display: none;
  }

  .dropdown.open .dropdown-panel {
    display: block;
  }

  .hero-grid,
  .split,
  .footer-top,
  .contact-grid,
  .service-grid,
  .values-grid,
  .cards-grid,
  .team-grid,
  .blog-grid,
  .stats-grid,
  .process-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 114px;
  }

  body {
    padding-top: 62px;
  }

  .nav-toggle svg {
    width: 14px;
    height: 14px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .btn,
  .btn-group {
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  .floating-actions {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .float-btn {
    justify-content: center;
  }
}


.home-intro-image {
  padding-top: 12px;
}

.home-intro-image-wrap {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.home-intro-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.logo-showcase {
  padding: 0;
  min-height: 100%;
}

.logo-frame {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logo-frame img {
  width: 100%;
  border-radius: 0;
  display: block;
}

.contact-photo {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.contact-photo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 560px) {
  .nav-toggle,
  .nav-toggle.btn {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    flex: 0 0 36px !important;
  }
}


.logo-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 100%;
}

.logo-frame {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logo-frame img {
  width: 100%;
  border-radius: 0;
  display: block;
}

.logo-showcase img {
  width: min(100%, 540px);
  height: auto;
  display: block;
}

.logo-support-copy {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  max-width: 540px;
}

.logo-support-copy h3 {
  margin-bottom: 10px;
}

.logo-support-copy p {
  margin-bottom: 0;
}

.home-intro-image-wrap {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 860px) {
  .brand img {
    width: 108px;
  }

  .logo-showcase img {
    width: min(100%, 440px);
  }
}


/* V6 seamless logo-background integration */
html {
  background: #f7f2eb;
}

body {
  background: transparent !important;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('/assets/img/fondo-logo-seamless.png') center top / cover no-repeat fixed;
}

.site-header,
.hero,
.hero::after,
.hero-visual,
.logo-showcase,
.logo-frame,
.logo-support-copy,
#site-header,
main {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.site-header {
  backdrop-filter: none !important;
}

.navbar {
  min-height: 78px;
}

.brand img {
  width: 146px;
  height: auto;
  display: block;
  background: transparent !important;
}

.hero {
  padding-top: 96px;
  padding-bottom: 64px;
}

.hero-grid {
  align-items: center;
}

.logo-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.logo-frame img,
.logo-showcase img {
  width: min(100%, 560px);
  max-width: 560px;
  background: transparent !important;
  filter: none !important;
}

.logo-support-copy {
  max-width: 560px;
}

.hero-copy,
.logo-support-copy,
.hero-badge,
.nav-link,
.dropdown-toggle {
  position: relative;
  z-index: 1;
}

.hero-badge {
  background: rgba(255, 251, 245, 0.58);
  border: 1px solid rgba(205, 164, 93, 0.10);
  backdrop-filter: blur(1px);
}

.hero-copy h1,
.hero-copy h2,
.hero-copy h3,
.logo-support-copy h3,
.nav-link,
.dropdown-toggle {
  color: #12394d !important;
}

.hero-copy p,
.logo-support-copy p {
  color: #35515f !important;
}

.hero-copy .text-gold {
  color: #b9893f !important;
}

.brand,
.brand * {
  filter: none !important;
}

.brand img,
.logo-frame img,
.logo-showcase img {
  mix-blend-mode: multiply;
}

@media (max-width: 860px) {
  .brand img {
    width: 126px;
  }
  .hero {
    padding-top: 88px;
  }
  .logo-frame img,
  .logo-showcase img {
    width: min(100%, 470px);
  }
}


/* V7 portada integrada sin recuadro */
.home-intro-image {
  padding-top: 18px;
  padding-bottom: 20px;
}

.home-intro-image .container {
  width: min(calc(100% - 2rem), 1240px);
}

.home-intro-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.home-intro-image-wrap::before {
  content: none !important;
}

.home-intro-image-wrap img {
  position: relative;
  z-index: 1;
  width: min(100%, 1024px);
  height: auto;
  display: block;
  mix-blend-mode: normal !important;
  filter: saturate(1.18) contrast(1.1) drop-shadow(0 4px 10px rgba(185, 137, 63, 0.08)) !important;
}

@media (max-width: 860px) {
  .home-intro-image {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .home-intro-image-wrap img {
    width: min(100%, 920px);
  }
}
