/* ============================================
   ELEODORO ARELLANO — ARQUITECTO
   Minimalismo · Elegancia · Precisión
   ============================================ */

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

:root {
  --white:     #ffffff;
  --off-white: #f9f8f6;
  --gray-50:   #f2f0ed;
  --gray-100:  #e6e3df;
  --gray-300:  #b8b3ac;
  --gray-500:  #82786e;
  --gray-700:  #4d4540;
  --dark:      #282320;
  --black:     #161210;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-width:  1200px;
  --nav-height: 68px;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── CURSOR EN CRUZ ── */
* { cursor: none !important; }

.cursor-cross {
  position: fixed;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-cross::before,
.cursor-cross::after {
  content: '';
  position: absolute;
  background: white;
}
.cursor-cross::before {
  top: 50%; left: 0;
  width: 100%; height: 1px;
  transform: translateY(-50%);
}
.cursor-cross::after {
  left: 50%; top: 0;
  width: 1px; height: 100%;
  transform: translateX(-50%);
}

@media (hover: none) {
  .cursor-cross { display: none; }
  * { cursor: auto !important; }
}

/* ── TIPOGRAFÍA ── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(3.5rem, 10vw, 9rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
p  { color: var(--gray-500); line-height: 1.85; }
em { font-family: var(--font-display); font-style: italic; font-weight: 300; }
a  { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 6vw, 4rem);
}

/* ── LABELS ── */
.section-label {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 1rem;
}
.section-label--light { color: rgba(255,255,255,0.35); }

.section-header { margin-bottom: 5rem; }
.section-header h2 { margin-top: 0.5rem; }

.link-arrow {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-700);
  transition: letter-spacing 0.4s var(--ease);
}
.link-arrow:hover { letter-spacing: 0.18em; }

/* ── WHATSAPP FLOTANTE ── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 50px;
  height: 50px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--gray-100);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-inline: clamp(1.5rem, 6vw, 4rem);
}
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: color 0.5s;
}
.nav__logo-title {
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.5s;
}
.nav.scrolled .nav__logo-name  { color: var(--dark); }
.nav.scrolled .nav__logo-title { color: var(--gray-300); }

.nav__links {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--white); }
.nav.scrolled .nav__links a       { color: var(--gray-500); }
.nav.scrolled .nav__links a:hover { color: var(--dark); }
.nav__cta                         { color: var(--white) !important; }
.nav.scrolled .nav__cta           { color: var(--dark) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: background 0.5s;
}
.nav.scrolled .nav__burger span { background: var(--dark); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 1.5rem clamp(1.5rem, 6vw, 4rem);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 0.875rem 0;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--dark); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero__fondo {
  position: absolute;
  inset: 0;
}
.hero__fondo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.12) saturate(0.3);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,12,10,0.85) 0%, rgba(16,12,10,0.5) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 6vw, 4rem);
  padding-block: clamp(3rem, 8vw, 5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__foto-wrap {
  width: clamp(160px, 22vw, 280px);
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.hero__foto {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: grayscale(15%);
}
.hero__texto {
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.45s forwards;
}
.hero__label {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}
.hero__nombre {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero__nombre em {
  font-style: italic;
  color: rgba(255,255,255,0.55);
}
.hero__frase {
  margin-top: 1.5rem;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 420px;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: #25D366;
  color: white;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.cta-wa:hover { background: #1db954; transform: translateY(-1px); }

.cta-agenda {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.3s, background 0.3s;
}
.cta-agenda:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}

/* ── AGENDAR ── */
.agendar {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--off-white);
  border-top: 1px solid var(--gray-100);
}
.agendar__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.agendar__texto h2 { margin-top: 0.5rem; margin-bottom: 1rem; color: var(--dark); }
.agendar__texto > p { font-size: 0.95rem; max-width: 340px; }
.agendar__datos { margin-top: 2rem; }
.agendar__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: #1db954;
  text-decoration: none;
  transition: opacity 0.2s;
}
.agendar__wa:hover { opacity: 0.75; }
.agendar__cal {
  background: var(--white);
  border: 1px solid var(--gray-100);
}

/* ── MANIFIESTO ── */
.manifesto {
  padding: clamp(5rem, 12vw, 9rem) 0;
  border-top: 1px solid var(--gray-100);
}
.manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--gray-700);
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}

/* ── SERVICIOS ── */
.servicios {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: var(--off-white);
  border-top: 1px solid var(--gray-100);
}
.servicios__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--gray-100);
}
.servicio {
  display: flex;
  gap: 2rem;
  padding: 2.75rem 4rem 2.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.servicios__grid .servicio:nth-child(odd) {
  border-right: 1px solid var(--gray-100);
}
.servicios__grid .servicio:nth-child(even) {
  padding-left: 4rem;
  padding-right: 0;
}
.servicio__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: var(--gray-300);
  flex-shrink: 0;
  padding-top: 0.1rem;
  min-width: 2rem;
}
.servicio__body h3 { margin-bottom: 0.6rem; color: var(--dark); }
.servicio__body p  { font-size: 0.85rem; line-height: 1.75; }

/* ── PROYECTOS ── */
.proyectos {
  padding: clamp(5rem, 12vw, 9rem) 0;
  border-top: 1px solid var(--gray-100);
}
.proyectos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-100);
}
.proyecto__img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-50);
}
.proyecto__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease), filter 0.6s;
  filter: grayscale(15%) brightness(0.95);
}
.proyecto__img:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(0.7);
}
.proyecto__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.proyecto__img:hover .proyecto__overlay { opacity: 1; }
.proyecto__overlay span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em;
}
.proyecto__overlay small {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── SOBRE MÍ ── */
.sobre-mi {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.sobre-mi__grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 6rem;
  align-items: start;
}
.sobre-mi__aside { padding-top: 0.5rem; }
.sobre-mi__foto {
  margin-top: 2rem;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.sobre-mi__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: grayscale(10%);
  transition: filter 0.5s;
}
.sobre-mi__foto:hover img { filter: grayscale(0%); }
.sobre-mi__content h2 { margin-bottom: 2rem; color: var(--dark); }
.sobre-mi__bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
}
.sobre-mi__bio p { font-size: 0.95rem; }
.sobre-mi__dato {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.sobre-mi__dato::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--gray-300);
}
.sobre-mi__dato span {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ── CONTACTO ── */
.contacto {
  padding: clamp(5rem, 12vw, 9rem) 0;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.contacto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}
.contacto__text h2 {
  color: var(--white);
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}
.contacto__text > p {
  color: rgba(255,255,255,0.35);
  font-size: 0.875rem;
}
.contacto__datos {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2.5rem;
}
.contacto__datos a {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  transition: color 0.25s;
}
.contacto__datos a:hover { color: var(--white); }
.contacto__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4ade80 !important;
}
.contacto__wa:hover { color: #86efac !important; }

.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  padding: 1rem 1.25rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.25s;
  resize: vertical;
  -webkit-appearance: none;
}
.form-group select option    { background: var(--dark); color: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(255,255,255,0.3); }

.btn-submit {
  width: 100%;
  background: var(--white);
  color: var(--dark);
  border: none;
  padding: 1.05rem 2rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s;
  margin-top: 0.25rem;
}
.btn-submit:hover { background: var(--gray-100); }

/* Preguntas condicionales */
.preguntas-grupo {
  display: none;
  flex-direction: column;
  gap: 0.875rem;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 1rem;
  margin-left: 0.25rem;
}
.preguntas-grupo.activo {
  display: flex;
  animation: fadeUp 0.4s var(--ease) forwards;
}

/* Calendly */
.calendly-wrap {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.calendly-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.calendly-divider::before,
.calendly-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.calendly-divider span {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

.form-success {
  display: none;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.form-success.show { display: block; }

/* ── FOOTER ── */
.footer {
  background: var(--black);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
}
.footer__copy {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
}

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .proyectos__grid { grid-template-columns: repeat(2, 1fr); }
  .sobre-mi__grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .agendar__inner  { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 900px) {
  .servicios__grid { grid-template-columns: 1fr; }
  .servicios__grid .servicio:nth-child(odd)  { border-right: none; padding-right: 0; }
  .servicios__grid .servicio:nth-child(even) { padding-left: 0; }
}
@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__foto-wrap { width: 140px; aspect-ratio: 1/1; border-radius: 50%; margin-inline: auto; }
  .hero__ctas  { justify-content: center; }
  .hero__frase { margin-inline: auto; }
  .proyectos__grid { grid-template-columns: 1fr; }
  .footer__inner   { flex-direction: column; text-align: center; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--gray-300); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
