/*
Theme Name: Arteaga Firma Legal
Theme URI: https://arteaga-firmalegal.com/
Author: SCOELLOV SYSTEMS
Author URI: https://wa.me/51979679324?text=Hola%2C%20estoy%20interesado%20en%20el%20dise%C3%B1o%20y%20desarrollo%20de%20una%20p%C3%A1gina%20web%20profesional.
Description: Tema institucional exclusivo, de alto rendimiento y diseño corporativo aprobado para ARTEAGA FIRMA LEGAL (Avenida Manuel Olguín N.° 335, Oficina 1203, Santiago de Surco, Lima, Perú). Completamente editable y administrable desde WordPress: CPTs para Equipo, Clientes, Especialidades, Publicaciones (con subida de PDFs) y Casos, Personalizador visual para textos, fotografías, logotipos e identidad corporativa protegida.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: arteaga-legal
*/

:root {
  --petroleo: #0a2230;
  --petroleo-dark: #061822;
  --petroleo-deep: #041017;
  --champagne: #c5a475;
  --champagne-light: #e1bd7b;
  --champagne-dark: #b08e5f;
  --marfil: #f7f4ef;
  --blanco: #ffffff;
  --ink: #1b2734;
  --muted: #66717d;
  --border-gold: rgba(197, 164, 117, 0.35);
  --shadow: 0 16px 40px rgba(6, 24, 34, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--marfil); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(1200px, 92%); margin: auto; }
.site-header .container.nav { width: min(1560px, 95%); margin: auto; }

/* Tipografía */
h1, h2, h3, h4, .font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }

/* Cabecera */
.site-header { position: sticky; top: 0; left: 0; right: 0; z-index: 50; background: rgba(6, 24, 34, 0.98); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-gold); transition: all 0.3s ease; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.nav { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; flex-shrink: 0; white-space: nowrap; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-divider { width: 1px; height: 32px; background: rgba(197, 164, 117, 0.4); }
.brand-text strong { display: block; font: 700 20px 'Cormorant Garamond', Georgia, serif; letter-spacing: 3.5px; color: #ffffff; line-height: 1.1; }
.brand-text small { display: block; color: var(--champagne); font-size: 8.5px; letter-spacing: 4px; font-weight: 600; line-height: 1.2; }

.main-menu { display: flex; flex: 1; align-items: center; justify-content: flex-end; list-style: none; margin: 0 0 0 auto; padding: 0; gap: clamp(8px, 1.1vw, 20px); }
.main-menu li { list-style: none; margin: 0; padding: 0; position: relative; display: inline-flex; align-items: center; white-space: nowrap !important; }
.main-menu a { color: #eef3f8; opacity: 0.92; position: relative; padding: 28px 4px; transition: color 0.2s ease, opacity 0.2s ease; font-weight: 500; font-size: clamp(12px, 0.88vw, 13px); letter-spacing: clamp(0.35px, 0.04vw, 0.7px); text-transform: uppercase; text-decoration: none !important; display: inline-block; white-space: nowrap !important; line-height: 1.3; }
.main-menu a:hover,
.main-menu a:focus,
.main-menu a:active,
.main-menu a.active,
.main-menu .current_page_item > a,
.main-menu .current-menu-item > a,
.main-menu .current_page_ancestor > a {
  color: var(--champagne-light);
  opacity: 1;
  text-decoration: none !important;
}
.main-menu a.active::after,
.main-menu .current_page_item > a::after,
.main-menu .current-menu-item > a::after,
.main-menu .current_page_ancestor > a::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--champagne);
  border-radius: 1px;
  pointer-events: none;
}

.nav-cta { padding: 8px 16px !important; border: 1px solid var(--champagne); color: #fff !important; border-radius: 4px; font-weight: 600 !important; white-space: nowrap !important; transition: all 0.25s ease; font-size: clamp(12px, 0.88vw, 13px) !important; letter-spacing: clamp(0.4px, 0.04vw, 0.8px); }
.nav-cta:hover { background: var(--champagne); color: var(--petroleo-dark) !important; transform: translateY(-1px); }
.nav-wa { display: inline-flex; align-items: center; gap: 6px; color: #25a85a !important; font-weight: 700 !important; text-decoration: none; padding: 7px 12px !important; border-radius: 4px; border: 1px solid rgba(37, 168, 90, 0.4); white-space: nowrap !important; transition: all 0.25s ease; font-size: 11.5px !important; }
.nav-wa:hover { background: rgba(37, 168, 90, 0.15); border-color: #25a85a; color: #2ecc71 !important; transform: translateY(-1px); }

.menu-toggle { display: none; background: transparent; border: 1px solid var(--border-gold); border-radius: 6px; width: 44px; height: 44px; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; transition: all 0.25s ease; flex-shrink: 0; }
.menu-toggle:hover { background: rgba(197, 164, 117, 0.12); border-color: var(--champagne); }
.menu-toggle .bar { display: block; width: 22px; height: 2px; background: var(--champagne); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-toggle.is-active .bar-1 { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .bar-2 { opacity: 0; }
.menu-toggle.is-active .bar-3 { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--petroleo-dark) 0%, var(--petroleo) 100%); color: #fff; padding: 75px 0 95px; border-bottom: 1px solid var(--border-gold); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-eyebrow { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--champagne); font-weight: 700; margin-bottom: 12px; }
.hero h1 { font: 600 clamp(42px, 5.5vw, 70px)/1.08 'Cormorant Garamond', Georgia, serif; margin-bottom: 16px; }
.hero h1 span { color: var(--champagne-light); }
.hero-line { width: 56px; height: 4px; background: var(--champagne); border-radius: 2px; margin: 20px 0; }
.hero-p { font-size: 15.5px; color: #e5ebf1; line-height: 1.8; max-width: 540px; margin-bottom: 32px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; border-radius: 4px; transition: all 0.25s ease; cursor: pointer; border: 1px solid transparent; }
.btn-gold { background: var(--champagne); color: var(--petroleo-dark); }
.btn-gold:hover { background: var(--champagne-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(197, 164, 117, 0.3); }
.btn-outline { border: 1px solid var(--champagne); color: #fff; }
.btn-outline:hover { background: rgba(197, 164, 117, 0.15); border-color: var(--champagne-light); }

/* Especialidades Flotantes */
.floating-bar { background: #ffffff; border-radius: 16px; box-shadow: 0 20px 50px rgba(6, 24, 34, 0.1); border: 1px solid var(--border-gold); margin-top: -45px; position: relative; z-index: 20; }
.floating-grid { display: grid; grid-template-columns: repeat(4, 1fr); divide-x: 1px solid #f1ece4; padding: 10px 0; }
.floating-card { padding: 24px 20px; text-align: center; }
.floating-icon { font-size: 26px; margin-bottom: 8px; color: var(--champagne); }
.floating-card h3 { font: 600 17px 'Cormorant Garamond', Georgia, serif; color: var(--petroleo); }

/* 4 Tarjetas de Acceso */
.cards-section { padding: 80px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.nav-card { background: #ffffff; border-radius: 14px; overflow: hidden; border: 1px solid #e0dbd1; transition: all 0.3s ease; display: flex; flex-direction: column; }
.nav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--champagne); }
.nav-card img { width: 100%; height: 180px; object-fit: cover; }
.nav-card-content { padding: 22px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.nav-card h4 { font-size: 20px; color: var(--petroleo); margin-bottom: 6px; }
.nav-card p { font-size: 12.5px; color: #66717d; line-height: 1.6; }

/* Presentación Institucional */
.presentation-section { background: #ffffff; padding: 85px 0; border-top: 1px solid #e0dbd1; border-bottom: 1px solid #e0dbd1; }
.presentation-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }

/* Especialidades Penales */
.specialties-section { padding: 85px 0; background: var(--marfil); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-header .eyebrow { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--champagne); font-weight: 700; margin-bottom: 8px; display: block; }
.section-header h2 { font: 600 clamp(32px, 4.5vw, 48px) 'Cormorant Garamond', Georgia, serif; color: var(--petroleo); }
.section-header .gold-divider { width: 50px; height: 2px; background: var(--champagne); margin: 16px auto; }
.specialties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.specialty-card { background: #ffffff; padding: 36px 30px; border-radius: 14px; border: 1px solid #e0dbd1; transition: all 0.3s ease; position: relative; }
.specialty-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--champagne); }
.specialty-num { font-size: 13px; font-weight: 700; color: var(--champagne); font-family: monospace; letter-spacing: 1px; }
.specialty-card h3 { font: 600 24px 'Cormorant Garamond', Georgia, serif; color: var(--petroleo); margin: 10px 0 12px; }
.specialty-card p { font-size: 13px; color: #56626e; line-height: 1.7; }

/* Sección Nuestro Equipo — Propuesta 01 (Marco Rectangular Vertical 3:4, Dinámico CPT) */
.team-section { background: #ffffff; padding: 85px 0; border-top: 1px solid #e0dbd1; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.team-card { background: var(--marfil); border-radius: 16px; overflow: hidden; border: 1px solid #e0dbd1; box-shadow: 0 4px 20px rgba(0,0,0,0.03); display: flex; flex-direction: column; transition: all 0.3s ease; }
.team-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(6, 24, 34, 0.09); border-color: var(--champagne); }
.team-photo-wrap { position: relative; width: 100%; aspect-ratio: 3/4; background: #071822; overflow: hidden; border-bottom: 2px solid var(--champagne); }
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.team-card:hover .team-photo-wrap img { transform: scale(1.03); }
.team-photo-gold-line { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--champagne), transparent); }
.team-body { padding: 26px 24px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.team-role { font-size: 10.5px; text-transform: uppercase; letter-spacing: 2px; color: var(--champagne-dark); font-weight: 700; display: block; margin-bottom: 8px; }
.team-name { font: 700 24px/1.2 'Cormorant Garamond', Georgia, serif; color: var(--petroleo); margin-bottom: 12px; }
.team-bio { font-size: 12.5px; color: #56626e; line-height: 1.7; margin-bottom: 18px; flex: 1; }
.team-edu-wrap { padding-top: 14px; border-top: 1px solid #e5dfd4; display: flex; align-items: center; justify-content: space-between; }
.team-edu-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #88939e; font-weight: 600; }
.team-edu-val { font-size: 11px; font-weight: 600; color: var(--petroleo); background: #ffffff; padding: 4px 10px; border-radius: 4px; border: 1px solid #d8d1c5; }

/* Página Oficial Nuestros Clientes — Propuesta 04 */
.clients-page { background: radial-gradient(circle at 50% 25%, #0d2a3d 0%, #061822 65%, #030e15 100%); color: #ffffff; min-height: 85vh; padding: 70px 0 100px; position: relative; overflow: hidden; }
.clients-decor-ribbon { position: absolute; pointer-events: none; }
.clients-decor-ribbon.top-left { top: 0; left: 0; width: 320px; height: 160px; }
.clients-decor-ribbon.bottom-corner { bottom: 0; width: 450px; height: 160px; }
.clients-decor-ribbon.bottom-left { left: 0; }
.clients-decor-ribbon.bottom-right { right: 0; }
.clients-statue-wrap { position: absolute; right: 0; bottom: 0; height: 95%; max-height: 820px; pointer-events: none; opacity: 0.95; z-index: 1; }
.clients-container { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.clients-header { text-align: center; max-width: 860px; margin: 0 auto 50px; }
.clients-header .eyebrow { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--champagne); font-weight: 700; margin-bottom: 12px; display: block; }
.clients-header h1 { font: 700 clamp(36px, 5.5vw, 60px)/1.1 'Cormorant Garamond', Georgia, serif; margin-bottom: 18px; letter-spacing: 2px; }
.clients-header h1 span { color: var(--champagne-light); }
.clients-intro { font: italic 400 clamp(15px, 2vw, 18px)/1.7 'Cormorant Garamond', Georgia, serif; color: #e5edf5; max-width: 760px; margin: 0 auto; }
.clients-divider { width: 70px; height: 2px; background: var(--champagne); margin: 20px auto 0; border-radius: 2px; }
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.client-card { background: #fbf9f4; border: 1px solid #ded4c3; border-radius: 16px; padding: 22px 26px; display: flex; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; min-height: 112px; }
.client-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(197, 164, 117, 0.22); border-color: var(--champagne); }
.client-logo-wrap { width: 86px; height: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.client-divider-line { width: 1.5px; height: 58px; background: #d8cebe; margin: 0 20px; flex-shrink: 0; }
.client-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.client-name { font: 700 20px/1.2 'Cormorant Garamond', Georgia, serif; color: #0b1f2e; }
.client-suffix { font: 700 20px/1.2 'Cormorant Garamond', Georgia, serif; color: #0b1f2e; }
.client-desc { font: italic 13px/1.4 'Cormorant Garamond', Georgia, serif; color: #4b5966; margin-top: 3px; }
.clients-closing { margin-top: 55px; text-align: center; }
.clients-closing-symbol { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 14px; }
.clients-closing-symbol .line { height: 1px; width: 80px; background: linear-gradient(90deg, transparent, var(--champagne-light)); }
.clients-closing-symbol .line.reverse { background: linear-gradient(90deg, var(--champagne-light), transparent); }
.clients-closing-p { font: italic 400 clamp(17px, 2.3vw, 22px)/1.7 'Cormorant Garamond', Georgia, serif; color: #ffffff; max-width: 820px; margin: 0 auto; }
.clients-closing-p strong { color: var(--champagne-light); font-weight: 700; font-style: normal; }

/* Página de Contacto y Formulario */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info-box { background: #ffffff; padding: 32px; border-radius: 12px; border: 1px solid #e0dbd1; line-height: 2.2; font-size: 13.5px; }
.contact-form-box { background: #ffffff; padding: 40px; border-radius: 14px; border: 1px solid #e0dbd1; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--petroleo); font-weight: 700; margin-bottom: 6px; }
.form-control { width: 100%; padding: 13px 16px; border: 1px solid #dad4ca; border-radius: 6px; font-family: inherit; font-size: 13px; background: #fbfaf7; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--champagne); background: #ffffff; }

/* Footer Global Oficial */
.footer { background: var(--petroleo-dark); color: #b6c0ca; padding: 40px 0; border-top: 1px solid var(--border-gold); font-size: 11px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr 1.2fr; gap: 36px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-address { display: flex; align-items: center; gap: 12px; color: #cbd5e1; border-left: 1px solid rgba(197, 164, 117, 0.35); padding-left: 28px; }
.footer-copy { text-align: right; border-left: 1px solid rgba(197, 164, 117, 0.35); padding-left: 28px; line-height: 1.7; }
.footer-copy a { color: var(--champagne); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.footer-copy a:hover { color: var(--champagne-light); }

/* Botón WhatsApp Flotante Oficial */
.floating-whatsapp { position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25a85a; color: #ffffff; display: flex; align-items: center; justify-content: center; z-index: 40; box-shadow: 0 12px 30px rgba(0,0,0,0.25); transition: transform 0.2s ease; }
.floating-whatsapp:hover { transform: scale(1.08); background: #1f8c4a; }

/* Responsive Media Queries */
@keyframes slideDownMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1240px) {
  .menu-toggle { display: flex; }
  .main-menu { display: none; position: absolute; top: 84px; left: 0; right: 0; background: rgba(6, 24, 34, 0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); flex-direction: column; padding: 16px 24px 24px; border-bottom: 1px solid var(--border-gold); margin-left: 0; gap: 0; z-index: 100; box-shadow: 0 20px 45px rgba(0,0,0,0.5); list-style: none; max-height: calc(100vh - 90px); overflow-y: auto; }
  .main-menu.open { display: flex; animation: slideDownMenu 0.25s ease-out forwards; }
  .main-menu li { width: 100%; display: block; list-style: none; }
  .main-menu a { padding: 13px 16px; width: 100%; min-height: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); text-decoration: none !important; position: relative; display: flex; align-items: center; justify-content: space-between; border-left: 3px solid transparent; transition: all 0.2s ease; font-size: 13px; letter-spacing: 0.8px; box-sizing: border-box; }
  .main-menu a:hover,
  .main-menu a:focus,
  .main-menu a:active {
    background: rgba(197, 164, 117, 0.08);
    color: var(--champagne-light);
    text-decoration: none !important;
  }
  /* En versión móvil/tablet, el indicador activo Champagne NUNCA atraviesa el texto: acento vertical en el lateral izquierdo */
  .main-menu a.active,
  .main-menu .current_page_item > a,
  .main-menu .current-menu-item > a,
  .main-menu .current_page_ancestor > a {
    color: var(--champagne-light) !important;
    background: rgba(197, 164, 117, 0.12);
    border-left: 3px solid var(--champagne) !important;
    padding-left: 20px;
    font-weight: 700;
  }
  /* Desactivar cualquier línea horizontal superpuesta en móvil o tablet */
  .main-menu a.active::after,
  .main-menu .current_page_item > a::after,
  .main-menu .current-menu-item > a::after,
  .main-menu .current_page_ancestor > a::after {
    display: none !important;
    content: none !important;
  }
  .main-menu .nav-cta {
    margin-top: 14px;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 13px 18px !important;
    font-size: 13px !important;
  }
  .main-menu .nav-wa {
    margin-top: 8px;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 18px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 980px) {
  .hero-grid, .presentation-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .floating-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-brand { justify-content: center; }
  .footer-address { border-left: none; padding-left: 0; justify-content: center; text-align: center; }
  .footer-copy { border-left: none; padding-left: 0; text-align: center; }
}

@media (max-width: 640px) {
  .floating-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
}
