/* ===============================
DEFENSA PENAL ESTRATÉGICA
Autor: Oscar Ivan Bocanegra Uribe
=============================== */


:root {
  /* Fondos */
  --negro-carbon: #0f0f0f;
  --gris-antracita: #1c1c1c;

  /* Texto */
  --blanco-marfil: #f4f1ec;
  --gris-secundario: #b3b3b3;

  /* Acento */
  --dorado-opaco: #b79a5b;
}

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

/* =========================================================
   BASE
========================================================= */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--negro-carbon);
  color: var(--blanco-marfil);
  line-height: 1.75;
}

/* =========================================================
   TIPOGRAFÍA
========================================================= */
h1,
h2,
.section-title,
.profile-name {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.3px;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

p {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.85;
}

.section-label,
.profile-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dorado-opaco);
}

/* =========================================================
   HEADER
========================================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: var(--negro-carbon);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ================================
   BRAND
================================ */
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo tipo sello */
.logo {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--dorado-opaco);
    color: var(--dorado-opaco);
}

/* Nombre del despacho */
.brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blanco-marfil);
}

/* ================================
   BOTÓN HEADER
================================ */
.btn-header {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(176, 138, 60, 0.6);
    color: var(--dorado-opaco);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-header:hover {
    background-color: var(--dorado-opaco);
    color: var(--negro-carbon);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .header {
        padding: 1.2rem 1.5rem;
    }

    .brand-name {
        display: none;
    }
}

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    min-height: 82vh;
    background: var(--negro-carbon);
    color: var(--blanco-marfil);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.hero {
    background:
        radial-gradient(
            circle at center,
            #161616 0%,
            #0f0f0f 60%,
            #0a0a0a 100%
        );
}

.hero h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    background: var(--dorado-opaco);
    margin: 28px auto 0;
    opacity: 0.9;
}

.hero-content {
    max-width: 920px;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    animation: heroReveal 1.2s ease-out forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-divider {
    width: 72px;
    height: 2px;
    background: var(--dorado-opaco);
    margin: 28px auto 34px;
    opacity: 0.85;
}

.hero-quote {
    opacity: 0;
    animation: heroQuote 0.9s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes heroQuote {
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-quote {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Título principal */
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1.15;
    margin-bottom: 36px;
}

/* Span estratégico */
.hero h1 span {
    display: block;
    font-weight: 400;
    letter-spacing: 2.5px;
    margin-top: 10px;
}

/* Subtítulo */
.hero-sub {
    max-width: 720px;
    margin: 0 auto 48px;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.75;
    color: var(--gris-secundario);
}

/* Cita */
.hero-quote {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dorado-opaco);
}

@media (max-width: 600px) {
    .hero h1 {
        line-height: 1.2;
    }

    .hero-quote {
        letter-spacing: 2px;
    }
}

.hero-scroll {
    margin-top: 80px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gris-secundario);
    opacity: 0.6;
    position: relative;
}

.hero-scroll::after {
    content: "";
    display: block;
    width: 1px;
    height: 40px;
    background: var(--gris-secundario);
    margin: 16px auto 0;
    opacity: 0.4;
}

@media (max-width: 600px) {
    .hero-content {
        padding-top: 40px;
    }

    .hero-scroll {
        margin-top: 60px;
    }
}

.hero h1::after,
.hero h1::before {
    content: none !important;
}

.hero h1 {
    border-bottom: none !important;
}

.hero {
    padding-bottom: 120px;
}

/* =========================================================
   PROFILE
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.profile {
  padding: 120px 20px;
  background: var(--negro-carbon);
}

.profile-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
}

.profile-photo img {
  width: 100%;
  display: block;
}

.profile-content {
  max-width: 640px;
}

.profile-name {
  font-size: 2.4rem;
  margin-bottom: 10px;
  font-weight: 650;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.profile-role {
  font-size: 1rem;
  color: var(--gris-secundario);
  margin-bottom: 30px;
}

.profile-lead {
  font-size: 1.05rem;
  margin-bottom: 26px;
}

.profile-body {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .profile-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .profile-name {
    font-size: 2rem;
  }
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */
.section {
  padding: 100px 8%;
}

.dark {
  background: var(--negro-carbon);
}

.light {
  background: var(--blanco-marfil);
  color: var(--negro-carbon);
}

.section h2 {
  margin-bottom: 30px;
}

/* =========================================================
   LISTAS
========================================================= */
.areas,
.values {
  list-style: none;
  max-width: 700px;
}

.areas li,
.values li {
  margin-bottom: 12px;
  padding-left: 16px;
  position: relative;
}

.areas li::before,
.values li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--dorado-opaco);
}

/* =========================================================
   COLUMNAS
========================================================= */
.columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.center {
  text-align: center;
  margin-top: 60px;
}

/* =========================================================
   ESPECIALIZACIÓN
========================================================= */
.expertise {
  padding: 120px 20px;
  background: var(--gris-antracita);
}

.expertise-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.expertise-header {
  max-width: 600px;
  margin-bottom: 80px;
}

.expertise-intro {
  font-size: 1rem;
  color: var(--gris-secundario);
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
}

.expertise-item h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.expertise-item p {
  font-size: 0.9rem;
  color: var(--gris-secundario);
}

/* Responsive */
@media (max-width: 900px) {
  .expertise-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PRINCIPIOS
========================================================= */
.principles {
  padding: 120px 20px;
  background: #000;
}

.principles-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.principle-block h3 {
  margin-bottom: 18px;
}

.principle-block p,
.principle-block li {
  font-size: 0.95rem;
  color: var(--gris-secundario);
}

/* Responsive */
@media (max-width: 1000px) {
  .principles-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   COMPROMISO PROFESIONAL
========================================================= */
.commitment {
  background: #0a0a0a;
  padding: 120px 20px;
  display: flex;
  justify-content: center;
}

.commitment-inner {
  max-width: 760px;
  text-align: center;
}

.commitment-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  margin-bottom: 32px;
}

.commitment-text {
  font-size: 1rem;
  color: var(--gris-secundario);
}

/* =========================================================
   AVISO DE PRIVACIDAD
========================================================= */
.aviso {
  background: #0a0a0a;
  padding: 80px 20px;
}

.aviso-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.aviso h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.aviso p {
  font-size: 0.95rem;
  color: var(--gris-secundario);
}

.aviso strong {
  color: var(--blanco-marfil);
}

/* =========================================================
   CONTACTO
========================================================= */
.contacto {
  background: var(--blanco-marfil);
  padding: 100px 20px;
  color: var(--negro-carbon);
}

.contacto-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.confidential {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 50px;
}

/* =========================================================
   FORMULARIO
========================================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 10px;
  border: none;
  border-bottom: 1px solid #aaa;
  background: transparent;
  font-size: 0.95rem;
  color: var(--negro-carbon);
}

.form-group label {
  position: absolute;
  top: 14px;
  left: 10px;
  font-size: 0.85rem;
  color: #777;
  transition: all 0.2s ease;
}

/* Floating label */
.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
  top: -8px;
  font-size: 0.7rem;
}

/* Botón */
.btn-primary {
  margin-top: 30px;
  padding: 14px 40px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: currentColor;
  color: var(--blanco-marfil);
}

/* =========================================================
   FOOTER
========================================================= */
.footer {
  text-align: center;
  padding: 40px 8%;
  background: #000;
  font-size: 0.85rem;
  color: var(--gris-secundario);
}

/* ================================
   HEADER FIXED (NON-DESTRUCTIVE)
================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Compensación del header fijo */
body {
    padding-top: 110px;
}

/* ================================
   MOBILE COMPACT (SAFE)
================================ */
@media (max-width: 768px) {

    body {
        padding-top: 80px;
    }

    .header {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .logo {
        transform: scale(0.9);
        transform-origin: left center;
    }

    .btn-outline {
        font-size: 0.7rem;
        padding: 10px 14px;
    }

    .brand-name {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
}

.header {
    transition: 
        padding 0.35s ease,
        background-color 0.35s ease,
        box-shadow 0.35s ease;
}

/* Estado al hacer scroll */
.header.scrolled {
    padding-top: 18px;
    padding-bottom: 18px;
    background-color: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* Ajustes internos sutiles */
.header.scrolled .logo {
    transform: scale(0.92);
}

.header.scrolled .brand-name {
    opacity: 0.85;
}

/* Transiciones internas */
.logo,
.brand-name {
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ================================
   MOBILE REFINEMENT
================================ */
@media (max-width: 768px) {

    .header.scrolled {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .header.scrolled .btn-outline {
        padding: 8px 12px;
        font-size: 0.65rem;
    }
}

/* Hero fade sincronizado */
.hero {
    transition: opacity 0.8s ease;
}

.hero.dimmed {
    opacity: 0.65;
}

/* Hero typography transition */
.hero h1 {
    transition: 
        opacity 0.8s ease,
        font-weight 0.6s ease,
        letter-spacing 0.6s ease;
}

.hero.dimmed h1 {
    font-weight: 500;
    letter-spacing: 1.2px;
}