/*
Theme Name: Vanguardia Legal
Theme URI: https://vanguardialegal.com.mx
Description: Tema profesional para despacho de abogados especializado en Derecho Laboral, Sucesorio y Civil en Querétaro.
Author: Lic. Luis Enrique Vega Trujillo
Author URI: https://vanguardialegal.com.mx
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vanguardia
Domain Path: /languages
Tags: responsive, one-column, custom-logo, legal, lawyer
*/

/* ========================================================================== */
/* ESTILOS GENERALES                                                         */
/* ========================================================================== */

:root {
    --navy-900: #070F1E;
    --navy-800: #0B192C;
    --navy-700: #1E3E62;
    --gold-600: #AA820A;
    --gold-500: #D4AF37;
    --gold-400: #F1C40F;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--gold-500);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-400);
}

/* ========================================================================== */
/* GRADIENTES Y UTILIDADES                                                   */
/* ========================================================================== */

.gold-gradient-text {
    background: linear-gradient(135deg, #F5D77F 0%, #D4AF37 50%, #997819 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-cite {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
    margin-top: 0.5rem;
    display: block;
}

/* ========================================================================== */
/* HEADER Y NAVEGACIÓN                                                        */
/* ========================================================================== */

.site-header {
    background-color: var(--navy-800);
    color: white;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-header nav {
    border-bottom: 1px solid var(--navy-700);
}

.site-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(to top right, var(--gold-600), var(--gold-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--navy-900);
    font-size: 14px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.site-branding .site-title {
    font-size: 18px;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}

.site-branding .site-description {
    font-size: 10px;
    color: var(--gold-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* ========================================================================== */
/* MENÚ MÓVIL                                                                */
/* ========================================================================== */

#mobile-menu {
    display: none;
}

#mobile-menu.active {
    display: block;
}

@media (max-width: 1024px) {
    .menu-desktop {
        display: none !important;
    }
}

/* ========================================================================== */
/* SECCIONES                                                                  */
/* ========================================================================== */

section {
    padding: 4rem 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title .label {
    color: var(--gold-600);
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--navy-900);
    margin-bottom: 1rem;
}

/* ========================================================================== */
/* FORMULARIOS                                                                */
/* ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

button,
.button,
[type="submit"] {
    background-color: var(--navy-900);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
.button:hover,
[type="submit"]:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.button-secondary {
    background-color: transparent;
    border: 2px solid var(--navy-800);
    color: var(--navy-900);
}

.button-secondary:hover {
    background-color: var(--navy-900);
    color: white;
}

.button-primary {
    background-color: var(--gold-500);
    color: var(--navy-900);
    font-weight: bold;
}

.button-primary:hover {
    background-color: var(--gold-400);
}

/* ========================================================================== */
/* TARJETAS                                                                   */
/* ========================================================================== */

.card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-highlight {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: white;
    border: 1px solid #334155;
}

/* ========================================================================== */
/* FOOTER                                                                     */
/* ========================================================================== */

.site-footer {
    background-color: var(--navy-900);
    color: #cbd5e1;
    padding: 2rem 1rem;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 12px;
}

.site-footer a {
    color: var(--gold-400);
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ========================================================================== */
/* RESPONSIVE                                                                 */
/* ========================================================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* ========================================================================== */
/* ACCESIBILIDAD                                                              */
/* ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}
