:root {
  --bg: #141A14;
  --bg-soft: #121212;
  --text: #F2EEDE;
  --text-soft: #aaaaaa;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

body.loaded {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 120px;
}

/* GENERAL & FOOTER */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid #333;
  padding-bottom: 5px;
}

.footer p {
  font-size: 13px;
  font-weight: 200;
  line-height: 1.65;
  margin: 30px;
  color: var(--text-soft);
  text-align: center;
}

.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  filter: blur(0) !important;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.show-step {
  opacity: 1 !important;
  filter: blur(0) !important;
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1), filter 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- CONTACT --- */
#contact-footer {
  margin-top: 60px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease, transform 1s ease;
}

#contact-footer.show a {
  opacity: 1;
  transform: translateY(0);
}

.contact a {
  display: block;
  font-size: 16px;
  color: var(--text-soft);
  text-decoration: none;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  width: fit-content;
  padding-bottom: 2px;
  opacity: 0;
  transform: translateY(12px);
  transition: border-color 0.35s, letter-spacing 0.35s, opacity 1s ease, transform 1s ease;
}

.contact a:hover {
  border-bottom: 1px solid rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}

/* --- ICONS --- */
.wa-icon-link {
  display: inline-block;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease, transform 1s ease;
  border-bottom: none !important;
  letter-spacing: normal !important;
}

.wa-icon-link svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: var(--text-soft);
  opacity: 0.55;
  transition: opacity 0.35s;
}

.wa-icon-link:hover svg {
  opacity: 0.9;
}

.icon-link {
  display: inline-block;
  margin-top: 8px;
  border-bottom: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
}

.icon-link svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: var(--text-soft);
  opacity: 0.55;
  transition: opacity 0.35s, fill 0.35s;
}

.icon-link:hover svg {
  opacity: 0.9;
}

/* --- INDEX.HTML STYLES --- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 140px 0 80px 0;
}

.logo-wrap {
  width: 170px;
  margin-bottom: 100px;
}

.logo {
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  filter: blur(6px);
}

.logo svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--text);
  opacity: .7;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 68px;
  line-height: 1.08;
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(12px);
}

.hero p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 70px;
  color: var(--text-soft);
  opacity: 0;
  transform: translateY(12px);
}

.services-section {
  padding: 200px 0 150px;
  background-color: var(--bg-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.service-item {
  opacity: 0;
  filter: blur(15px);
}

.service-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
  opacity: .8 !important;
}

.service-item h3 span {
  font-weight: 100;
  font-size: 62px;
  margin-right: 8px;
  opacity: .2 !important;
}

.service-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  font-weight: 300;
}

.trajectory-section {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border: none !important;
  padding: 170px 0;
}

.trajectory-content {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.quote-mark {
  position: absolute;
  left: -50px;
  top: -35px;
  opacity: 0.2;
  line-height: 1;
  pointer-events: none;
}

.trajectory-content .main-phrase {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 40px;
  font-weight: 500;
}

.trajectory-content .sub-phrase {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-soft);
}

.historia-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 3px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(12px);
  transition: border-color 0.35s, letter-spacing 0.35s, opacity 1s ease, transform 1s ease;
}

.historia-link:hover {
  border-bottom-color: var(--text);
  letter-spacing: 0.07em;
}

/* --- HISTORIA.HTML STYLES --- */
.site-header {
  padding: 48px 0 0;
  opacity: 0;
  transform: translateY(12px);
}

.site-header a {
  display: inline-block;
  text-decoration: none;
}

.site-header svg {
  width: 170px;
  height: auto;
  display: block;
  color: var(--text);
  opacity: .7;
  transition: opacity 0.35s;
}

.site-header a:hover svg {
  opacity: 1;
}

.historia-section {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 100px 0 140px;
}

.historia-content {
  max-width: 680px;
}

.historia-content p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(12px);
}

.historia-content p.acento {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin: 48px 0;
}

.historia-content p.cierre {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-top: 50px;
  margin-bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
}

.historia-content p.cierre span {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-top: 50px;
  margin-bottom: 0;
  padding-top: 40px;
}

.volver-wrap {
  background-color: var(--bg-soft);
  text-align: center;
  padding: 35px 0 35px;
}

.volver-link {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
  transition: border-color 0.35s, color 0.35s;
}

.volver-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.nav-footer {
  background-color: var(--bg-soft);
  text-align: center;
  padding: 30px 0;
  border-bottom: 1px solid #222;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container { padding: 0 40px; }
  h1 { font-size: 42px; }
  .trajectory-content .main-phrase { font-size: 32px; }
  .hero, .services-section, .trajectory-section { padding: 80px 0; }
  .quote-mark { left: -20px; top: -40px; }
  .services-grid { grid-template-columns: 1fr; gap: 60px; }
  
  .historia-section { padding: 60px 0 100px; }
  .historia-content p { font-size: 17px; }
  .historia-content p.acento { font-size: 20px; }
  .site-header { padding: 36px 0 0; }
}

/* --- 404 PAGE --- */
.error-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.error-hero {
  flex: 1;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 140px 0 80px 0;
}

.error-page .logo-wrap {
  margin-bottom: 60px;
}

.error-page h1 {
  opacity: 1;
  transform: none;
  margin-bottom: 30px;
}

.error-page .contact a {
  opacity: 1;
  transform: none;
  font-size: 16px;
}
