:root {
  --pine: #21484d;
  --pine-dark: #163236;
  --sand: #dbc49e;
  --gold: #ecd3a0;
  --mist: #f6f0e4;
  --paper: #fdfbf7;
  --ink: #1f2d2f;
  --muted: #566567;
}

/* Language toggle: show only the active language */
html[lang="es"] .en { display: none !important; }
html[lang="en"] .es { display: none !important; }

body {
  font-family: "Figtree", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2, h3, .navbar-brand {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  color: var(--pine);
}

/* Nav */
.site-nav { background: var(--paper); border-bottom: 1px solid var(--sand); }
.navbar-brand { font-size: 1.5rem; }
.site-nav .nav-link { color: var(--ink); font-weight: 500; }
.site-nav .nav-link:hover { color: var(--pine); }
.lang-btn {
  border: 1.5px solid var(--pine);
  color: var(--pine);
  font-weight: 600;
}
.lang-btn:hover { background: var(--pine); color: #fff; }

/* Buttons */
.btn-brand { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn-brand:hover { background: var(--pine-dark); border-color: var(--pine-dark); color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--pine); color: var(--pine); }
.btn-outline-brand:hover { background: var(--pine); color: #fff; }

:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

/* Hero */
.hero {
  background: var(--pine);
  color: #fff;
  padding: 5rem 0 5.5rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.hero-cred { color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.hero-sub { max-width: 52ch; font-size: 1.15rem; color: #d7e7e4; margin-bottom: 2rem; }
.hero .btn-brand { background: var(--gold); border-color: var(--gold); color: var(--pine); }
.hero .btn-brand:hover { background: var(--sand); border-color: var(--sand); color: var(--pine); }
.hero .btn-outline-brand { border-color: var(--sand); color: #fff; }
.hero .btn-outline-brand:hover { background: var(--sand); color: var(--pine); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-tint { background: var(--mist); }
.section h2 { font-size: 2.1rem; margin-bottom: 1rem; }
.section h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.narrow { max-width: 720px; }
.note { color: var(--muted); font-size: .95rem; }

/* Services: simple top rule instead of boxed cards */
#servicios .col-md-4 { border-top: 3px solid var(--sand); padding-top: 1rem; }

/* Contact */
.contact-list { display: grid; grid-template-columns: 8rem 1fr; gap: .6rem 1rem; margin-bottom: 1.5rem; }
.contact-list dt { font-weight: 600; color: var(--pine); }
.contact-list dd { margin: 0; }
.contact-list a { color: var(--ink); }

/* Footer */
.site-footer { background: var(--pine-dark); color: var(--sand); padding: 2.5rem 0; font-size: .9rem; }
.site-footer p { max-width: 80ch; }

@media (max-width: 575px) {
  .contact-list { grid-template-columns: 1fr; gap: 0; }
  .contact-list dd { margin-bottom: .8rem; }
}

/* Hero logo */
.hero-logo-wrap {
  position: relative;
  overflow: hidden;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
}
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 274%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -49%);
}

@media (max-width: 991px) {
  .hero-logo-wrap { width: min(100%, 240px); margin-top: 1rem; }
}

/* About photo */
.about-photo {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 1rem;
}
/* Slogan */
.hero-slogan {
    text-align: center;
    margin: 1.25rem 0 0;
    font-family: "Young Serif", Georgia, serif;
    font-size: 1.4rem;
    color: var(--gold);
}
.footer-slogan {
    font-family: "Young Serif", Georgia, serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: .75rem;
}

/* ===== Mobile and responsive polish ===== */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.site-nav { padding-block: .6rem; }
.lang-btn { min-height: 44px; padding-inline: 1rem; }
.contact-list a { display: inline-block; padding: .35rem 0; }

@media (max-width: 767px) {
    .hero { padding: 3rem 0 3.5rem; }
    .section { padding: 3rem 0; }
    .section h2 { font-size: 1.8rem; }
    .hero-sub { font-size: 1.05rem; }
    .hero .btn-lg { width: 100%; }
    .hero-logo-wrap { margin-top: 0; }
    .about-photo { max-width: 320px; }
}

/* Credentials and language note */
.credentials { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.credentials li { border-left: 3px solid var(--sand); padding: .35rem 0 .35rem 1rem; margin-bottom: .75rem; font-weight: 500; }
.language-note { margin-top: 1.5rem; color: var(--pine); font-weight: 500; }

/* Footer social links */
.footer-social a {
    display: inline-block;
    color: var(--gold);
    margin-right: 1.25rem;
    padding: .4rem 0;
}
.footer-social a:hover { color: #fff; }

/* Social icons */
.social-label { margin: 1.5rem 0 .5rem; font-weight: 600; color: var(--pine); }
.social-links { display: flex; gap: .75rem; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--pine);
    border-radius: 50%;
    color: var(--pine);
    transition: background .15s, color .15s;
}
.social-links a:hover { background: var(--pine); color: #fff; }
.social-links svg { fill: currentColor; }