/* 
  styles.css
  Objetivo: base visual limpia, responsive y fácil de extender.
  Nota: evitamos rutas absolutas (C:\... o /Users/...) para que el proyecto sea "portable".
*/

:root{
  /* Layout */
  --max: 1100px;
  --pad: 20px;

  /* Base cromática (más cálida para encajar con el logo oro/ocre) */
  --text: #111827;        /* casi negro, elegante */
  --muted: #6b7280;       /* gris neutro */
  --bg: #ffffff;
  --line: #e7e2d6;        /* línea cálida (no azulada) */

  /* Acento principal: dorado/ocre */
  --accent: #b5832f;        /* ocre pro */
  --accent-strong: #8a5a17; /* ocre más profundo para hover/contraste */

  /* Acento secundario (opcional) */
  --accent-blue: #2563eb;

  /* Fondos suaves */
  --hero-bg: #fbf7ef;     /* crema cálida */
  --card-bg: #ffffff;

  /* Sombras */
  --shadow-accent: 0 12px 26px rgba(181,131,47,.18);
  --shadow-card: 0 10px 22px rgba(17,24,39,.06);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

/* Contenedor central */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ================= HEADER ================= */
.site-header{
  position: sticky;
  top: 0;

  /* Fondo ocre protagonista */
  background: linear-gradient(
    180deg,
    rgba(245,235,215,0.98),
    rgba(251,247,239,0.96)
  );

  backdrop-filter: blur(6px);

  /* Borde inferior marcado pero elegante */
  border-bottom: 2px solid rgba(181,131,47,.45);

  /* Sombra para separar del contenido */
  box-shadow:
    0 8px 24px rgba(181,131,47,.18),
    0 1px 0 rgba(255,255,255,.6) inset;

  z-index: 50;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  /* Se adapta al logo grande */
  min-height: 64px;
  padding: 10px 0;
}

/* Marca */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 180px; /* evita saltos raros del header */
}

/* LOGO REAL */
.brand-logo{
  height: 130px;          /* Tu tamaño elegido */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Logo antiguo (compatibilidad si quedara en algún HTML) */
.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: .5px;
  border: 1px solid rgba(181,131,47,.25);
  background: rgba(181,131,47,.08);
}

.brand-name{
  font-weight: 650;
  letter-spacing: .2px;
}

/* Navegación */
.nav{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a{
  text-decoration: none;
  color: inherit;
  font-size: .95rem;
  padding: 8px;
  border-radius: 10px;
  font-weight: 550; /* más presencia */
}

.nav a:hover{
  background: rgba(181,131,47,.18); /* hover más visible */
}

/* Selector idioma */
.lang{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-left: 1px solid rgba(181,131,47,.22);
  padding-left: 12px;
}

.lang a{
  text-decoration: none;
  color: var(--muted);
  font-size: .9rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

/* Idioma activo: pill dorada */
.lang a.active{
  color: #ffffff;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-color: rgba(138,90,23,.6);
  box-shadow: 0 4px 10px rgba(138,90,23,.35);
}

/* Botón menú móvil */
.menu-btn{
  display: none;
  border: 1px solid rgba(181,131,47,.28);
  background: rgba(255,255,255,.85);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

/* ================= HERO ================= */
.hero{
  padding: 70px 0 40px;
  background: linear-gradient(180deg, var(--hero-bg), #ffffff);
  border-bottom: 1px solid var(--line);
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}

.kicker{
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}

.h1{
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  margin: 10px 0 14px;
  letter-spacing: -.02em;
}

.lead{
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

/* Botones */
.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
}

/* Botón principal (dorado/ocre) */
.btn.primary{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.btn.primary:hover{
  filter: brightness(.97);
}

/* Tarjetas */
.card{
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}

/* ================= MINI RESUMEN ================= */
.hero-summary{
  margin-top: 14px;
  color: var(--muted);
  font-size: .95rem;
}

.hero-summary .dot{
  margin: 0 8px;
  color: rgba(181,131,47,.75);
}

/* ================= VENTAJAS ================= */
.hero-features{
  display: flex;
  gap: 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: .95rem;
}

.hero-features div{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-features strong{
  color: var(--text);
  font-weight: 650;
}

/* ================= SECCIONES ================= */
.section{
  padding: 26px 0;
}

.section h2{
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.muted{ color: var(--muted); }

/* ================= FOOTER ================= */
.site-footer{
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: .95rem;
  background: linear-gradient(180deg, #ffffff, #fbf7ef);
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.footer-title{
  color: var(--text);
  font-weight: 650;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }

  /* Mantener logo grande en móvil */
  .brand-logo{
    height: 130px;
  }

  .nav{
    display: none;
    position: absolute;
    right: var(--pad);
    top: 64px;
    background: rgba(251,247,239,.98);
    border: 1px solid rgba(181,131,47,.25);
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    width: min(320px, calc(100vw - 40px));
    box-shadow: 0 12px 26px rgba(181,131,47,.18);
  }

  body.nav-open .nav{ display: flex; }

  .menu-btn{ display: inline-flex; }
  .lang{ border-left: none; padding-left: 0; }

  .hero-features{
    flex-direction: column;
    gap: 14px;
  }
}

/* ================= PROJECTS (imagenes) ================= */
.project-card{
  overflow: hidden; /* para que la imagen respete bordes redondeados */
  padding: 0;       /* la imagen manda arriba */
}

.project-media{
  width: 100%;
  height: 190px;        /* altura consistente (queda editorial) */
  object-fit: cover;    /* recorte pro */
  display: block;
  background: #f3f4f6;  /* por si tarda en cargar */
}

.project-body{
  padding: 16px 18px 18px;
}

.project-meta{
  font-size: .9rem;
  color: var(--muted);
}

@media (max-width: 860px){
  .project-media{
    height: 210px;
  }
}

/* ================= STUDIO ================= */
.studio-hero{
  padding: 60px 0;
}

.studio-image{
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.studio-intro{
  max-width: 720px;
}
