/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f5f5f3;
  --gray-200: #e8e8e4;
  --gray-400: #9a9a94;
  --gray-600: #5a5a54;
  --gold: #c9a96e;
  --gold-light: #e8cfa0;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; }

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

.section { padding: 100px 0; }

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}
.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--black);
}

h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--black);
}

p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #b8935a; transform: translateY(-2px); }
.btn-primary.full { width: 100%; text-align: center; }

/* ===== PLACEHOLDER IMAGES ===== */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  letter-spacing: 0.05em;
}
.img-placeholder.dark {
  background: #2a2a28;
  color: #666;
}

/* ===== PREMIOS BANNER ===== */
.premios-banner {
  background: var(--black);
  padding: 20px 0;
  overflow: hidden;
  border-bottom: 1px solid #222;
}
.premios-list {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.premio-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.premio-year {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.premio-text {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.premio-sep {
  color: #333;
  font-size: 18px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  padding: 14px 0;
  background: rgba(10,10,10,0.96);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--white);
}
.logo-main {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.logo-sub {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: var(--black);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a16 0%, #2d2d24 50%, #1a1a16 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('img/p32_1.jpeg') center/cover no-repeat;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  max-width: 720px;
  margin-left: 10%;
}

.hero-tagline {
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 480px;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hero-scroll span {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== NOSOTROS ===== */
.nosotros { background: var(--gray-100); }

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nosotros-img {
  position: relative;
  height: 560px;
}
.nosotros-img .img-placeholder { height: 100%; }

/* Roberto photo */
.roberto-photo {
  width: 100%;
  height: 100%;
  background: var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.roberto-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.roberto-initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.roberto-note {
  font-size: 11px;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.6;
}
.roberto-note code {
  font-size: 11px;
  background: var(--gray-200);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--black);
}

.nosotros-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold);
  color: var(--white);
  padding: 24px 28px;
  text-align: center;
}
.badge-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}
.badge-txt {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.9;
}

.nosotros-text h2 { margin-bottom: 24px; }
.nosotros-text p { margin-bottom: 16px; }

.nosotros-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--black);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ===== SERVICIOS ===== */
.servicios { background: var(--white); }

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

.servicio-card {
  padding: 48px 40px;
  background: var(--gray-100);
  transition: background var(--transition), transform var(--transition);
}
.servicio-card:hover { background: var(--black); }
.servicio-card:hover h3,
.servicio-card:hover p,
.servicio-card:hover li { color: rgba(255,255,255,0.8); }
.servicio-card:hover .servicio-icon svg { stroke: var(--gold); }

.servicio-card.featured {
  background: var(--black);
}
.servicio-card.featured h3,
.servicio-card.featured p,
.servicio-card.featured li { color: rgba(255,255,255,0.8); }
.servicio-card.featured .servicio-icon svg { stroke: var(--gold); }

.servicio-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
}
.servicio-icon svg { width: 100%; height: 100%; stroke: var(--gray-600); transition: stroke var(--transition); }

.servicio-card h3 { margin-bottom: 16px; font-size: 22px; transition: color var(--transition); }
.servicio-card p { font-size: 14px; margin-bottom: 24px; transition: color var(--transition); }

.servicio-card ul { display: flex; flex-direction: column; gap: 8px; }
.servicio-card li {
  font-size: 13px;
  color: var(--gray-400);
  padding-left: 16px;
  position: relative;
  transition: color var(--transition);
}
.servicio-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
}

/* ===== PROYECTOS ===== */
.proyectos { background: var(--gray-100); }

.filtros { display: flex; gap: 8px; }
.filtro {
  padding: 8px 20px;
  background: none;
  border: 1px solid var(--gray-200);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--gray-600);
  transition: all var(--transition);
}
.filtro:hover,
.filtro.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

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

.proyecto-card {
  background: var(--white);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.proyecto-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.proyecto-card.hidden { display: none; }

.proyecto-img {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.proyecto-img .img-placeholder { height: 100%; }
.proyecto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.proyecto-card:hover .proyecto-img img { transform: scale(1.05); }

.proyecto-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.proyecto-info { padding: 24px; }
.proyecto-info h3 { font-size: 20px; margin-bottom: 8px; }
.proyecto-info p { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.proyecto-year, .proyecto-loc {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--black);
  padding: 80px 0;
}
.cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-text .section-label { color: var(--gold); }
.cta-text h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.cta-text p { color: rgba(255,255,255,0.55); }

.cta-opciones {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta-opcion {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color var(--transition), background var(--transition);
}
.cta-opcion:hover {
  border-color: var(--gold);
  background: rgba(201,169,110,0.06);
}
.cta-opcion-icon {
  width: 44px;
  height: 44px;
  background: rgba(201,169,110,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-opcion-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}
.cta-opcion div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cta-opcion strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
}
.cta-opcion span {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .cta-content { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== CONTACTO ===== */
.contacto { background: var(--white); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contacto-info h2 { margin-bottom: 20px; }
.contacto-info > p { margin-bottom: 48px; }

.contacto-datos { display: flex; flex-direction: column; gap: 28px; }

.dato {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.dato svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--gold); margin-top: 2px; }
.dato-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.dato a, .dato span {
  font-size: 15px;
  color: var(--black);
  transition: color var(--transition);
}
.dato a:hover { color: var(--gold); }

/* FORM */
.contacto-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

input, textarea, select {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--black);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
  border-radius: 0;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  margin-top: -4px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand .logo-main,
.footer-brand .logo-sub { display: block; }
.footer-brand p { font-size: 13px; margin-top: 8px; max-width: 240px; }
.footer-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 8px;
}
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  margin-top: 8px;
}
.footer-instagram:hover { color: var(--gold); }

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }

.footer-contact p { font-size: 13px; margin-bottom: 8px; }
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nosotros-grid { grid-template-columns: 1fr; gap: 80px; }
  .nosotros-img { height: 400px; }
  .nosotros-badge { right: 16px; bottom: -16px; }
  .servicios-grid { grid-template-columns: 1fr; gap: 2px; }
  .proyectos-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 18px; }
  .nav-toggle { display: flex; z-index: 1001; }

  .hero-content { margin-left: 0; padding: 0 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .proyectos-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nosotros-stats { flex-wrap: wrap; gap: 24px; }
}
