/*
Theme Name: Abogados Legal
Theme URI: https://abogadoslegal.com
Author: Abogados Legal
Author URI: https://abogadoslegal.com
Description: Tema personalizado para Abogados Legal
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
Text Domain: abogados-legal
*/
/* =======================================
   CSS VARIABLES & PALETTE
   ======================================= */
:root {
    /* Color Palette */
    --color-primary: #111A24;
    /* Deep sophisticated navy/slate */
    --color-secondary: #2C3E50;
    /* Lighter slate for depth */
    --color-accent: #C5A880;
    /* Elegant champagne/gold */
    --color-accent-hover: #D8B98C;
    /* Lighter gold for hover */
    --color-bg-light: #F8F9FA;
    /* Off-white for sections */
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-white: #FFFFFF;

    /* Typography */
    --font-main: 'Lato', sans-serif;

    /* Spacing & Layout */
    --section-padding: 6rem 0;
    --container-width: 1200px;

    /* Transitions & Shadows */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(17, 26, 36, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

/* =======================================
   TYPOGRAPHY
   ======================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--color-accent);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-light {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

/* =======================================
   BUTTONS
   ======================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 168, 128, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* =======================================
   HEADER & NAVIGATION
   ======================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
    padding: 1.2rem 0;
}

#header.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 1px;
}


.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right var(--transition-slow);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-list {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    color: var(--color-white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mobile-cta {
    margin-top: 1rem;
}

/* =======================================
   HERO SECTION
   ======================================= */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(17, 26, 36, 0) 100%);
    opacity: 0.05;
}

.shape-1 {
    width: 800px;
    height: 800px;
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: 100px;
    left: -150px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 20%;
    background: var(--color-accent);
    opacity: 0.1;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
}


/* =======================================
   SERVICIOS SECTION
   ======================================= */
.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--color-accent);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 168, 128, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* =======================================
   NOSOTROS & VALORES SECTION
   ======================================= */
.nosotros-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.valor-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.valor-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-top: 0.2rem;
}

.valor-item h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.valor-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.nosotros-image-composition {
    position: relative;
    height: 500px;
}

.img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background-color: var(--color-secondary);
    border-radius: 10px;
    background-image: url('img/nosotros-img-2.webp');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
}

.img-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background-color: var(--color-primary);
    border-radius: 10px;
    background-image: url('img/nosotros-img-1.webp');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    border: 10px solid var(--color-bg-light);
}

/* =======================================
   ESTADÍSTICAS SECTION
   ======================================= */
.estadisticas {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =======================================
   CONTACTO SECTION
   ======================================= */
.contacto {
    background-color: var(--color-primary);
    color: var(--color-white);
    position: relative;
    padding: 8rem 0;
}

.contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contacto h2 {
    color: var(--color-white);
}

.contacto p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-details {
    margin-top: 3rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.2rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.contacto-form-wrapper {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 10px;
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* =======================================
   FOOTER
   ======================================= */
.footer {
    background-color: #0A1016;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer h3 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* =======================================
   WHATSAPP BUTTON
   ======================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform var(--transition-fast);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

/* =======================================
   ANIMATIONS (Intersection Observer)
   ======================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* =======================================
   RESPONSIVE DESIGN
   ======================================= */
@media (max-width: 992px) {

    .hero-container,
    .nosotros-wrapper,
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .nosotros-image-composition {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .nav-list,
    .cta-desktop {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding-top: 8rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-details li {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .valores-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .section {
        padding: 4rem 0;
    }
}