@font-face {
  font-family: 'Citrica';
  src: url('../fonts/Citrica-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Comfortaa';
  src: url('../fonts/Comfortaa-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #111010;
  --cream:       #f4f0e8;
  --text-dark:   #1a1814;
  --text-light:  #f0ece4;
  --text-muted:  #8c8882;
  --accent:      #c9a87c;
  --soft-gold:    #d1c5b7;
  --medium-gold:  #baa380;
  --dark-gold:    #b1946e;
  --accent-dim:  rgba(201,168,124,.15);
  --border-dark: rgba(255,255,255,.06);
  --nav-h:       72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ============================================================
   CURSOR
============================================================ */
.cursor {
  width: 8px; height: 8px;
  background: var(--text-light);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .2s;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(240,236,228,.35);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, border-color .2s;
}
.cursor.dark       { background: var(--text-dark); }
.cursor-ring.dark  { border-color: rgba(26,24,20,.4); }
.cursor.hovering   { width: 4px; height: 4px; background: var(--accent); }
.cursor-ring.hovering { width: 48px; height: 48px; border-color: var(--accent); }

/* ============================================================
   LÍNEAS DECORATIVAS DE FONDO
============================================================ */
.bg-lines {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  display: flex; justify-content: space-between;
  padding: 0 80px;
}
.bg-line {
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(201,168,124,.06) 20%,
    rgba(201,168,124,.06) 80%,
    transparent 100%);
}

/* ============================================================
   NAV
============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 0 48px; height: var(--nav-h);
  background: rgba(17,16,16,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark-gold);
}
.nav-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  align-self: center;
  margin-right: 0px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text-light);
  letter-spacing: 0.1em;
  font-size: 20px;
  font-weight: 400;
  font-family: 'Citrica', serif;
}

.nav-logo span {
  margin-left: 8px;
  color: var(--accent);
  font-weight: 300;
  font-family: 'Comfortaa', serif;
  font-size: 10px;
  position: relative;
  top: 3px;
}

.nav-center { flex: 1; display: flex; justify-content: center; gap: 52px; align-items: center; }
.nav-center > a {
  text-decoration: none; color: rgba(240,236,228,.6);
  font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; font-weight: 300;
  position: relative; padding-bottom: 4px; transition: color .3s;
}
.nav-center > a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .35s;
}
.nav-center > a:hover::after { width: 100%; }
.nav-center > a:hover { color: var(--accent); }
.nav-social { flex: 0 0 auto; display: flex; align-items: center; gap: 22px; }
.nav-social a { color: rgba(240,236,228,.38); text-decoration: none; display: flex; transition: color .3s; }
.nav-social a:hover { color: var(--text-light); }
.nav-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Dropdown */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropbtn {
  background: none; border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; font-weight: 300;
  color: rgba(240,236,228,.6);
  display: flex; align-items: center; gap: 6px;
  position: relative; padding-bottom: 4px;
  cursor: none; transition: color .3s;
}
.nav-dropbtn::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width .35s;
}
.nav-dropdown:hover .nav-dropbtn::after { width: 100%; }
.nav-dropdown:hover .nav-dropbtn { color: var(--accent); }
.nav-dropbtn svg {
  width: 10px; height: 10px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform .3s;
}
.nav-dropdown:hover .nav-dropbtn svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 20px); left: 50%;
  background: rgba(17,16,16,.98); backdrop-filter: blur(20px);
  border: 1px solid rgba(240,236,228,.08);
  min-width: 220px; padding: 8px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px; background: rgba(17,16,16,.98);
  border-left: 1px solid rgba(240,236,228,.08);
  border-top: 1px solid rgba(240,236,228,.08);
}
.nav-dropdown-menu::after {
  content: ''; position: absolute; top: -20px;
  left: 0; right: 0; height: 20px;
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 28px; text-decoration: none;
  color: rgba(240,236,228,.55);
  font-size: 10px; letter-spacing: .24em;
  text-transform: uppercase; font-weight: 300;
  transition: color .25s, padding-left .25s;
}
.nav-dropdown-menu a::before {
  content: ''; width: 0; height: 1px;
  background: var(--accent); transition: width .25s; flex-shrink: 0;
}
.nav-dropdown-menu a:hover { color: var(--text-light); padding-left: 36px; }
.nav-dropdown-menu a:hover::before { width: 8px; }
.nav-dropdown-menu a + a { border-top: 1px solid rgba(240,236,228,.05); }

/* ============================================================
   ANIMACIONES DE ENTRADA
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fadeUp .9s ease forwards;
}
.delay-1 { animation-delay: .3s; }
.delay-2 { animation-delay: .55s; }
.delay-3 { animation-delay: .8s; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0; transform: translateY(48px);
  transition: opacity .9s ease, transform .9s ease;
}
[data-reveal].visible { opacity: 1; transform: none; }

[data-reveal-item] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal-item].visible { opacity: 1; transform: none; }


/* ============================================================
   SECCIÓN FUNDADORES
============================================================ */
.founders-section {
  padding: 140px 80px;
  background: var(--cream);
  position: relative; 
  z-index: 1;
}

.founders-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* — FOTO — */
.founders-photo-wrap {
  position: relative;
}

.photo-frame {
  position: relative;
  height: 620px;
  overflow: hidden;
}

.founders-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 1.2s ease;
}
.founders-photo-wrap:hover .founders-photo { transform: scale(1.04); }

.photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(26,24,20,.4) 100%);
  pointer-events: none;
}

/* Etiqueta flotante */
.photo-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent);
  padding: 20px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  animation: fadeUp .8s ease 1.2s both;
}
.badge-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300; line-height: 1;
  color: var(--bg);
}
.badge-label {
  font-size: 8px; letter-spacing: .35em;
  text-transform: uppercase; color: rgba(17,16,16,.7);
  font-weight: 400;
}

/* Líneas decorativas */
.photo-accent-h {
  position: absolute; top: -16px; left: -16px; right: 40px;
  height: 1px; background: var(--accent); opacity: .4;
}
.photo-accent-v {
  position: absolute; top: -16px; left: -16px; bottom: 40px;
  width: 1px; background: var(--accent); opacity: .4;
}

/* — TEXTO — */
.founders-text {
  display: flex; flex-direction: column; gap: 0;
}

.section-tag {
  font-size: 9px; letter-spacing: .45em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 400; margin-bottom: 20px; display: block;
}

.founders-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 300; line-height: 1;
  letter-spacing: .01em; color: var(--text-dark);
  margin-bottom: 12px;
}

.founders-role {
  font-size: 10px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 40px; font-weight: 300;
}

.founders-bio { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.founders-bio p {
  font-size: 13.5px; line-height: 1.95;
  color: #4a4744; font-weight: 300;
}

/* Stats */
.founders-stats {
  display: flex; align-items: center; gap: 0;
  padding-top: 32px;
  border-top: 1px solid rgba(26,24,20,.1);
}
.stat {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 8px; padding: 0 16px;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 300; line-height: 1;
  color: var(--text-dark);
}
.stat-num::after { content: '+'; font-size: 24px; color: var(--accent); }
.stat-label {
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-muted);
  text-align: center; font-weight: 300;
}
.stat-divider { width: 1px; height: 60px; background: rgba(26,24,20,.1); }


/* ============================================================
   STRIP ESPECIALIDADES
============================================================ */
.services-strip {
  background: var(--cream);
  padding: 80px;
  border-top: 1px solid rgba(26,24,20,.08);
}

.strip-inner {
  display: flex; align-items: center;
  max-width: 1100px; margin: 0 auto;
  gap: 0;
}

.strip-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  padding: 40px 32px; text-align: center;
  transition: transform .4s ease;
}
.strip-item:hover { transform: translateY(-8px); }

.strip-icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(26,24,20,.15);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, background .3s;
}
.strip-icon svg {
  width: 20px; height: 20px;
  stroke: var(--text-dark); fill: none; stroke-width: 1.5;
  transition: stroke .3s;
}
.strip-item:hover .strip-icon { border-color: var(--accent); background: var(--accent); }
.strip-item:hover .strip-icon svg { stroke: #fff; }

.strip-item h4 a{
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 300;
  color: var(--text-dark); line-height: 1.2;
  text-decoration: none;
}
.strip-item p {
  font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-muted);
  font-weight: 300;
}

.strip-divider {
  width: 1px; height: 80px;
  background: rgba(26,24,20,.1); flex-shrink: 0;
}


/* ============================================================
   FOOTER
============================================================ */
.project-footer {
  background: var(--bg);
  text-align: center;
  padding: 60px 48px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.project-footer .footer-social {
  display: flex; gap: 16px; margin-bottom: 40px;
}
.project-footer .footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .3s, transform .3s;
}
.project-footer .footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.project-footer .footer-social svg { width: 18px; height: 18px; fill: var(--bg); }
.project-footer .footer-nav {
  display: flex; gap: 40px; margin-bottom: 40px;
  position: relative; top: auto; left: auto; right: auto;
  height: auto; padding: 0; background: transparent;
  backdrop-filter: none; border: none;
}
.project-footer .footer-nav a {
  font-size: 12px; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(240,236,228,.7);
  text-decoration: none; font-weight: 300;
  position: relative; padding-bottom: 4px; transition: color .3s;
}
.project-footer .footer-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width .35s;
}
.project-footer .footer-nav a:hover { color: var(--accent); }
.project-footer .footer-nav a:hover::after { width: 100%; }
.project-footer .footer-divider {
  width: 100%; max-width: 600px; height: 1px;
  background: rgba(240,236,228,.12); margin-bottom: 30px;
}
.project-footer .footer-copyright {
  font-size: 11px; letter-spacing: .1em;
  color: rgba(240,236,228,.4); font-weight: 300;
}
.project-footer .footer-copyright span { color: var(--accent); font-weight: 400; }


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .founders-inner { gap: 60px; }
  .history-inner  { gap: 48px; }
  .history-quote  { position: relative; top: auto; }
}

@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .bg-lines { padding: 0 24px; }

  .about-hero { padding: 0 32px; min-height: 80vh; }
  .hero-number { font-size: 30vw; right: 0; opacity: .5; }

  .founders-section,
  .history-section,
  .services-strip { padding: 80px 32px; }

  .founders-inner { grid-template-columns: 1fr; gap: 48px; }
  .photo-frame    { height: 420px; }
  .photo-badge    { right: 0; bottom: -16px; }

  .history-inner { grid-template-columns: 1fr; }
  .history-quote { order: -1; }

  .strip-inner { flex-direction: column; gap: 0; }
  .strip-divider { width: 80%; height: 1px; }

  .founders-stats { gap: 0; }

  .project-footer .footer-nav { gap: 20px; flex-wrap: wrap; }
}

/* ============================================================
   OCULTAR CURSOR PERSONALIZADO EN DISPOSITIVOS TÁCTILES
============================================================ */
@media (hover: none) and (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none !important;
  }
}

/* También por si queremos forzar con clase JS */
.touch-device .cursor,
.touch-device .cursor-ring {
  display: none !important;
}

/* ============================================================
   HAMBURGER & SIDEBAR — solo móvil/tablet
============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-light);
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-hamburger:hover span {
  background: var(--accent);
}

/* Overlay */
.nav-sidebar-overlay {
  display: block;
  pointer-events: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity .35s ease;
}
.nav-sidebar-overlay.visible {
  pointer-events: all;
  opacity: 1; 
}

/* Sidebar panel */
.nav-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: rgba(17,16,16,.98);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255,255,255,.06);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 32px 40px 48px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}
.nav-sidebar.open { transform: translateX(0); }

/* Close button */
.sidebar-close {
  align-self: flex-end;
  background: none; border: none;
  color: rgba(240,236,228,.5);
  cursor: none;
  padding: 4px;
  transition: color .3s;
  margin-bottom: 40px;
}
.sidebar-close:hover { color: var(--accent); }
.sidebar-close svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
}

/* Logo en sidebar */
.sidebar-logo {
  text-decoration: none;
  color: var(--text-light);
  font-family: 'Citrica', serif;
  font-size: 22px; letter-spacing: .1em;
  margin-bottom: 52px; display: block;
}
.sidebar-logo span {
  color: var(--accent);
  font-family: 'Comfortaa', serif;
  font-size: 11px;
}

/* Links */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.sidebar-links > a {
  text-decoration: none;
  color: rgba(240,236,228,.65);
  font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; font-weight: 300;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .3s;
}
.sidebar-links > a:hover { color: var(--accent); }

/* Dropdown dentro del sidebar */
.sidebar-dropdown { border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-dropbtn {
  width: 100%; background: none; border: none;
  text-align: left;
  color: rgba(240,236,228,.65);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; font-weight: 300;
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: none; transition: color .3s;
}
.sidebar-dropbtn:hover { color: var(--accent); }
.sidebar-dropbtn svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform .3s;
}
.sidebar-dropdown.open .sidebar-dropbtn svg { transform: rotate(180deg); }

.sidebar-submenu {
  display: none;
  flex-direction: column;
  padding: 0 0 12px 16px;
  gap: 0;
}
.sidebar-dropdown.open .sidebar-submenu { display: flex; }
.sidebar-submenu a {
  text-decoration: none;
  color: rgba(240,236,228,.4);
  font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 300;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .3s;
}
.sidebar-submenu a:hover { color: var(--text-light); }

/* Social en sidebar */
.sidebar-social {
  display: flex; gap: 20px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-social a {
  color: rgba(240,236,228,.35);
  text-decoration: none; display: flex;
  transition: color .3s;
}
.sidebar-social a:hover { color: var(--accent); }
.sidebar-social svg {
  width: 17px; height: 17px;
  fill: currentColor;
}

/* Mostrar hamburguesa y ocultar nav normal en móvil */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-center    { display: none; }
  .nav-social    { display: none; }
  .nav-sidebar-overlay { display: block; }
  .founders-bio {
    padding-right: 16px;
  }

  /* Más margen arriba y derecha en la foto */
  .founders-photo-wrap {
    margin-top: 40px;
    margin-right: 24px;
  }
}

@media (max-width: 480px) {
  .founders-bio {
    padding-right: 20px;
  }

  .founders-photo-wrap {
    margin-top: 32px;
    margin-right: 16px;
  }
}
