/* ============================================================
   Akribeia — style.css
   Probitas Diligens · akribeia.net
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #8B1A1A;
  --dark:      #0F0F0F;
  --dark2:     #1A1A1A;
  --dark3:     #2A2A2A;
  --gray:      #3A3A3A;
  --gray2:     #666666;
  --gray3:     #999999;
  --light:     #F5F4F0;
  --white:     #FFFFFF;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5vw;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-lang {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.45);
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}

.lang-btn.active {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.lang-btn:hover:not(.active) {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ---- HERO ---- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: -1px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center center;
  filter: grayscale(100%);
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 35%,
    rgba(0,0,0,0.72) 72%,
    rgba(0,0,0,0.98) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5vw 8vh;
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: 0.3s;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--red);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
}

.hero-subtitle {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
  transition: gap 0.2s, color 0.2s;
}

.hero-cta:hover { gap: 1.2rem; color: rgba(255,255,255,0.8); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 5vw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.35;
}

.hero-scroll span {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50%       { transform: scaleY(0.35); opacity: 0.08; }
}

/* ---- SECTIONS BASE ---- */
section { padding: 7rem 5vw; }

.section-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.section-lead {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--gray);
  max-width: 620px;
  font-weight: 300;
}

/* ---- SERVICIOS ---- */
#servicios {
  background: var(--light);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(0,0,0,0.08);
  margin-top: 4rem;
  border: 1px solid rgba(0,0,0,0.08);
}

.service-card {
  background: var(--light);
  padding: 2.5rem 2rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height 0.3s ease;
}

.service-card:hover { background: var(--white); }
.service-card:hover::before { height: 100%; }

.service-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(0,0,0,0.06);
  line-height: 1;
  margin-bottom: 1.2rem;
  display: block;
}

.service-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.service-desc {
  font-size: 0.82rem;
  line-height: 1.78;
  color: var(--gray2);
  font-weight: 300;
}

/* ---- METODOLOGÍA ---- */
#metodologia {
  background: var(--dark2);
  color: var(--white);
  overflow: hidden;
}

#metodologia .section-title { color: var(--white); }
#metodologia .section-lead  { color: rgba(255,255,255,0.5); }
#metodologia .section-label { color: var(--red); }
#metodologia .section-label::before { background: var(--red); }

.metodo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
  margin-top: 4rem;
}

.metodo-img {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.metodo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  opacity: 0.7;
}

.metodo-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,26,26,0.1) 0%, transparent 55%);
}

.rapid-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.rapid-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rapid-item:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.rapid-letter {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--red);
  line-height: 1;
  min-width: 42px;
  padding-top: 2px;
}

.rapid-text h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.rapid-text p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.42);
  font-weight: 300;
}

/* ---- SOBRE NOSOTROS ---- */
#nosotros { background: var(--white); }

.nosotros-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
}

.nosotros-values {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.value-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.value-text h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.value-text p {
  font-size: 0.82rem;
  line-height: 1.72;
  color: var(--gray2);
  font-weight: 300;
}

.nosotros-right { padding-top: 4rem; }

.quote-block {
  border-left: 2px solid var(--red);
  padding: 1.5rem 0 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.quote-block blockquote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--dark);
}

.quote-block cite {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray3);
  margin-top: 1rem;
  font-style: normal;
}

.nosotros-body {
  font-size: 0.85rem;
  line-height: 1.88;
  color: var(--gray);
  font-weight: 300;
}

/* ---- CONTACTO ---- */
#contacto {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 7rem 5vw;
}

#contacto .section-label   { justify-content: center; }
#contacto .section-label::before { display: none; }
#contacto .section-title   { color: var(--white); margin: 0 auto 1rem; text-align: center; }
#contacto .section-lead    { color: rgba(255,255,255,0.42); margin: 0 auto 3rem; text-align: center; }

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 6px;
  transition: border-color 0.2s, color 0.2s;
  margin-bottom: 3rem;
  display: inline-block;
}

.contact-email:hover {
  border-color: var(--red);
  color: rgba(255,255,255,0.75);
}

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  flex-wrap: wrap;
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 1.5rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 28px;
}

.footer-copy {
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.18);
  text-align: right;
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- LANG ---- */
[data-lang]:not(.lang-btn)        { display: none; }
[data-lang].active:not(.lang-btn) { display: block; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .metodo-layout    { grid-template-columns: 1fr; }
  .metodo-img       { height: 280px; order: -1; }
  .nosotros-layout  { grid-template-columns: 1fr; }
  .nosotros-right   { padding-top: 0; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  section    { padding: 5rem 6vw; }
  .services-grid { grid-template-columns: 1fr; }
}
