/* ============================================================
   DCS Studio — style.css
   Hoja de estilos principal compartida por todas las páginas
   ============================================================ */


/* ------------------------------------------------------------
   RESET Y BASE
   Elimina márgenes y paddings por defecto del navegador,
   y establece box-sizing para que el tamaño incluya el borde
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f7f8fc;   /* fondo general: blanco levemente azulado */
  color: #1a1d2e;         /* color de texto principal: azul muy oscuro */
  min-height: 100vh;
}


/* ------------------------------------------------------------
   FONDO DE LADRILLITOS
   Se genera con gradientes CSS repetidos que simulan una grilla
   de bloques sutiles. Está fijo para que no scrollee.
   ------------------------------------------------------------ */
.brick-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-color: #f7f8fc;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 23px,
      rgba(100,120,180,0.10) 23px, rgba(100,120,180,0.10) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 47px,
      rgba(100,120,180,0.10) 47px, rgba(100,120,180,0.10) 48px
    );
}

/* Segunda capa: grilla desplazada media fila para simular ladrillos */
.brick-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 23px,
      rgba(100,120,180,0.07) 23px, rgba(100,120,180,0.07) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 24px,
      rgba(100,120,180,0.07) 24px, rgba(100,120,180,0.07) 25px,
      transparent 25px
    );
  background-position: 0 12px;
  background-size: 48px 24px, 48px 24px;
}

/* ------------------------------------------------------------
   OPCIÓN ALTERNATIVA: imagen de fondo "under construction"
   Para activarla, descomentar este bloque y comentar el de arriba
   ------------------------------------------------------------ */
/*
.brick-bg {
  background-image: url('../img/under_construction.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
}
.brick-bg::after { content: none; }
*/


/* ------------------------------------------------------------
   CARTELITO "EN CONSTRUCCIÓN"
   Banda fija debajo del nav, visible en todos los dispositivos.
   Se activa/desactiva desde includes/config.php
   ------------------------------------------------------------ */
.wip-badge-mobile {
  display: block;
  position: fixed;
  top: 58px;              /* justo debajo del nav */
  left: 0; right: 0;
  z-index: 98;
  text-align: center;
  padding: 4px 0;
  background: rgba(100,120,180,0.06);
  border-bottom: 0.5px solid rgba(100,120,180,0.12);
}

.wip-badge-mobile img {
  height: 140px;           /* ajustá a tu gusto */
  width: auto;
  opacity: 0.6;   /* 1 = opaco, 0 = invisible */
}


/* ------------------------------------------------------------
   NAVEGACIÓN FIJA
   Barra superior fija con efecto blur (vidrio esmerilado)
   ------------------------------------------------------------ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 58px;
  background: rgba(247,248,252,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(100,120,180,0.12);
}

/* Logo */
.nav-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #1a1d2e;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-logo span { color: #a0aac8; }

/* Links del menú */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: #6b7494;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: #1a1d2e; }

/* Item activo: negrita en la página actual */
.nav-links a.activo {
  color: #1a1d2e;
  font-weight: 600;
}

/* Ocultar Contacto en desktop — aparece solo en hamburguesa móvil */
.nav-link-contacto { display: none; }

/* Botón hamburguesa — oculto en desktop, visible en móvil */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1d2e;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Link "Volver" en la página de contacto */
.nav-back {
  font-size: 12px;
  color: #6b7494;
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.nav-back:hover { color: #1a1d2e; }


/* ------------------------------------------------------------
   SECCIÓN HERO (portada principal)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  z-index: 1;
  padding: 150px 2.5rem 90px;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8090b8;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 500;
  line-height: 1.15;
  color: #1a1d2e;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: #8090b8;
}

.hero p {
  font-size: 16px;
  color: #5a6480;
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}


/* ------------------------------------------------------------
   BOTONES
   ------------------------------------------------------------ */
.btn-primary {
  background: #1a1d2e;
  border: none;
  color: #f7f8fc;
  padding: 12px 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover { background: #2e3350; }

.btn-secondary {
  font-size: 13px;
  color: #8090b8;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.btn-secondary:hover { color: #1a1d2e; }


/* ------------------------------------------------------------
   SEPARADOR HORIZONTAL
   ------------------------------------------------------------ */
.divider {
  position: relative;
  z-index: 1;
  height: 0.5px;
  background: rgba(100,120,180,0.12);
  margin: 0 2.5rem;
}


/* ------------------------------------------------------------
   SECCIÓN SERVICIOS — Cards del inicio
   ------------------------------------------------------------ */
.services {
  position: relative;
  z-index: 1;
  padding: 80px 2.5rem;
}

.services-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a0aac8;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  border: 0.5px solid rgba(100,120,180,0.15);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: rgba(255,255,255,0.7);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}

.service-card:hover { background: #fff; }

.service-icon {
  font-size: 20px;
  color: #8090b8;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: #1a1d2e;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 13px;
  color: #6b7494;
  line-height: 1.7;
}


/* ------------------------------------------------------------
   SECCIÓN TRABAJOS
   ------------------------------------------------------------ */
.works {
  position: relative;
  z-index: 1;
  padding: 80px 2.5rem;
  border-top: 0.5px solid rgba(100,120,180,0.1);
}

.works-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a0aac8;
  margin-bottom: 3rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: #fff;
  border: 0.5px solid rgba(100,120,180,0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.work-card:hover {
  box-shadow: 0 4px 24px rgba(100,120,180,0.10);
}

.work-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e8ecf7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aac8;
  font-size: 13px;
}

.work-card-body { padding: 1.25rem 1.5rem; }

.work-card-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8090b8;
  margin-bottom: 0.5rem;
}

.work-card h3 {
  font-size: 15px;
  font-weight: 500;
  color: #1a1d2e;
  margin-bottom: 0.5rem;
}

.work-card p {
  font-size: 13px;
  color: #6b7494;
  line-height: 1.7;
}


/* ------------------------------------------------------------
   SECCIÓN SOBRE MÍ
   ------------------------------------------------------------ */
.about {
  position: relative;
  z-index: 1;
  padding: 80px 2.5rem;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  border-top: 0.5px solid rgba(100,120,180,0.1);
}

.about-num {
  font-size: 64px;
  font-weight: 500;
  color: #d8ddf0;
  line-height: 1;
  min-width: 80px;
  letter-spacing: -0.03em;
}

.about-text h2 {
  font-size: 22px;
  font-weight: 500;
  color: #1a1d2e;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 14px;
  color: #5a6480;
  line-height: 1.85;
  max-width: 500px;
}


/* ------------------------------------------------------------
   FORMULARIO DE CONTACTO
   ------------------------------------------------------------ */
.contact-main {
  position: relative;
  z-index: 1;
  padding: 120px 2.5rem 80px;
  max-width: 640px;
  margin: 0 auto;
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8090b8;
  margin-bottom: 1rem;
}

.contact-main h1 {
  font-size: 32px;
  font-weight: 500;
  color: #1a1d2e;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.contact-main > p {
  font-size: 14px;
  color: #6b7494;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.form-card {
  background: #fff;
  border: 0.5px solid rgba(100,120,180,0.15);
  border-radius: 10px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

label {
  font-size: 12px;
  font-weight: 500;
  color: #4a5580;
  letter-spacing: 0.04em;
}

label .req { color: #8090b8; font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: #1a1d2e;
  background: #f7f8fc;
  border: 0.5px solid rgba(100,120,180,0.2);
  border-radius: 5px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  border-color: #8090b8;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-submit {
  background: #1a1d2e;
  color: #f7f8fc;
  border: none;
  padding: 12px 32px;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-submit:hover { background: #2e3350; }

.form-note {
  font-size: 12px;
  color: #a0aac8;
}

.alert {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.alert-ok {
  background: #eaf4ee;
  color: #2a6040;
  border: 0.5px solid #a0d4b8;
}

.alert-err {
  background: #fceaea;
  color: #7a2020;
  border: 0.5px solid #f0a8a8;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer {
  position: relative;
  z-index: 1;
  padding: 2rem 2.5rem;
  border-top: 0.5px solid rgba(100,120,180,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-size: 12px;
  color: #a0aac8;
  letter-spacing: 0.04em;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c8d0e8;
}


/* ------------------------------------------------------------
   PÁGINA SERVICIOS — Tarjetas de detalle
   ------------------------------------------------------------ */
.services-detail {
  position: relative;
  z-index: 1;
  padding: 80px 2.5rem;
  max-width: 860px;
}

.service-detail-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2.5rem 0;
}

.service-detail-icon {
  font-size: 28px;
  color: #8090b8;
  min-width: 48px;
  padding-top: 4px;
}

.service-detail-body h2 {
  font-size: 20px;
  font-weight: 500;
  color: #1a1d2e;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.service-detail-body p {
  font-size: 14px;
  color: #5a6480;
  line-height: 1.85;
  margin-bottom: 0.75rem;
  max-width: 580px;
}

.service-detail-casos { margin-top: 1.25rem; }

.service-detail-casos-label {
  font-size: 11px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a0aac8 !important;
  margin-bottom: 0.6rem !important;
}

.service-detail-casos ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-detail-casos ul li {
  font-size: 13px;
  color: #6b7494;
  padding-left: 1rem;
  position: relative;
}

.service-detail-casos ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #8090b8;
}

.service-detail-divider {
  height: 0.5px;
  background: rgba(100,120,180,0.1);
}

.services-cta {
  position: relative;
  z-index: 1;
  padding: 60px 2.5rem 80px;
  border-top: 0.5px solid rgba(100,120,180,0.1);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.services-cta p {
  font-size: 18px;
  color: #5a6480;
  font-weight: 400;
}


/* ------------------------------------------------------------
   RESPONSIVE — MÓVIL (pantallas menores a 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {

  nav { padding: 0 1.25rem; }

  /* Ocultar links — se muestran al abrir el hamburger */
  .nav-links { display: none; }

  /* Menú abierto: panel vertical debajo del nav */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 58px;
    left: 0; right: 0;
    background: rgba(247,248,252,0.97);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 0.5px solid rgba(100,120,180,0.15);
    z-index: 99;
  }

  /* Mostrar hamburger y Contacto dentro del menú */
  .hamburger { display: flex; }
  .nav-link-contacto { display: block; }

  /* Hero: más espacio arriba por el cartelito wip */
  .hero { padding: 130px 1.25rem 70px; }

  .services, .works, .about { padding: 60px 1.25rem; }
  .about { flex-direction: column; gap: 1rem; }
  .about-num { font-size: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-main { padding: 120px 1.25rem 60px; }

  footer {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .services-detail { padding: 60px 1.25rem; }
  .service-detail-card { flex-direction: column; gap: 1rem; }
  .services-cta { padding: 40px 1.25rem 60px; flex-direction: column; align-items: flex-start; gap: 1rem; }

}
