/* =====================================================
   Naket — estilos globales
   Compartido entre todas las páginas
   ===================================================== */

:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --red: #DC2626;
  --red-dark: #B91C1C;
  --red-soft: #FEE2E2;
  --text: #1F1F1F;
  --muted: #6B6B6B;
  --border: #D4D4D4;
  --bg-soft: #F5F5F5;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =====================================================
   Header
   ===================================================== */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 0.5px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: block;
  height: 52px;
  width: auto;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo img { height: 100%; width: auto; display: block; }

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav a {
  font-size: 0.9375rem;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
  padding: 0.25rem 0;
}
.nav a:hover { color: var(--red); }
.nav a.active {
  color: var(--red);
}
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
}

/* =====================================================
   Botones — el cambio importante
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}

/* Primary: rojo sólido con texto blanco — alta legibilidad */
.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 1.5px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Outline: borde negro, fondo transparente, hover rellena negro */
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

/* Ghost: solo texto con flecha, sin caja */
.btn-ghost {
  background: transparent;
  color: var(--black);
  border: none;
  padding: 0.5rem 0;
  font-weight: 500;
}
.btn-ghost:hover {
  color: var(--red);
  gap: 0.75rem;
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Menú móvil */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--black);
}
.menu-toggle .icon { width: 26px; height: 26px; }

/* =====================================================
   Hero
   ===================================================== */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 2rem;
  right: -8rem;
  width: 16rem;
  height: 16rem;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.05;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--red);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 1.5rem;
  max-width: 800px;
}
.hero h1 .accent { color: var(--red); }

.hero p.lead {
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* =====================================================
   Sections
   ===================================================== */
section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 1rem;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--red);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 1.25rem;
  max-width: 680px;
  line-height: 1.15;
}

.section-intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 3rem;
  line-height: 1.65;
}

/* =====================================================
   Feature grid (servicios en home)
   ===================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  border-color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.feature .icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.25s;
}
.feature .icon-wrap .icon { width: 24px; height: 24px; }
.feature:hover .icon-wrap {
  background: var(--red);
  color: var(--white);
}

.feature h3 {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.feature .link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}
.feature .link .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.feature:hover .link { color: var(--red); }
.feature:hover .link .icon { transform: translateX(3px); }

/* =====================================================
   CTA band (negra con rojo)
   ===================================================== */
.cta-band {
  background: var(--black);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -4rem;
  left: -4rem;
  width: 12rem;
  height: 12rem;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.15;
}
.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  max-width: 540px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* =====================================================
   Construction page (servicios/proyectos/sobre-mi)
   ===================================================== */
.construction {
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.construction .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.construction-text h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.construction-text p {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 460px;
}

.construction-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--red);
  font-weight: 500;
  background: var(--red-soft);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.construction-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.construction-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.construction-visual .icon-big {
  width: clamp(160px, 24vw, 240px);
  height: clamp(160px, 24vw, 240px);
  background: var(--bg-soft);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  position: relative;
}
.construction-visual .icon-big .icon { width: clamp(64px, 9vw, 96px); height: clamp(64px, 9vw, 96px); }
.construction-visual .icon-big::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px dashed var(--red);
  border-radius: 28px;
  opacity: 0.3;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =====================================================
   Footer
   ===================================================== */
footer {
  padding: 2.5rem 0;
  border-top: 0.5px solid var(--border);
  background: var(--white);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer-inner a:hover { color: var(--red); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* =====================================================
   WhatsApp flotante
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  z-index: 100;
  transition: all 0.25s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 1.5rem;
    border-bottom: 0.5px solid var(--border);
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav.open .btn { width: 100%; justify-content: center; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .construction .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .construction-text p { max-width: 100%; }
  .construction-status,
  .construction-text .btn { margin-left: auto; margin-right: auto; }

  .logo { height: 44px; }
}
