/* =======================================
   JGR ABOGADOS - Premium Legal Theme
   ======================================= */

:root {
    /* Color Palette */
    --clr-navy: #0A1118;
    /* Very dark premium blue/black */
    --clr-navy-light: #121A25;
    /* Lighter navy for cards */
    --clr-gold: #B8966C;
    /* Soft metallic gold, slightly darker/more serious */
    --clr-gold-light: #CDB28F;
    /* Lighter gold for hover */
    --clr-gold-dark: #917451;
    /* Darker gold */
    --clr-white: #FFFFFF;
    --clr-gray-50: #FCFDFD;
    /* Almost pure white background */
    --clr-gray-100: #F4F7F9;
    --clr-gray-200: #E2E8F0;
    --clr-gray-400: #94A3B8;
    --clr-gray-600: #475569;
    --clr-gray-800: #1E293B;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout & Spacing */
    --container-width: 1200px;
    --section-pad: 6rem 0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 10px 25px -5px rgba(197, 168, 128, 0.25);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =======================================
   BASE STYLES
   ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-gray-600);
    background-color: var(--clr-gray-50);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-navy);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-pad);
}

/* Utils */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-white {
    color: var(--clr-white) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section-subtitle {
    display: block;
    font-family: var(--font-body);
    color: var(--clr-gold);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.divider {
    height: 3px;
    width: 60px;
    background: var(--clr-gold);
    margin-bottom: 1.5rem;
}

.divider.left {
    margin-left: 0;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--clr-gold);
    color: var(--clr-white);
    border-color: var(--clr-gold);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--clr-gold-dark);
    border-color: var(--clr-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: var(--clr-white);
    color: var(--clr-navy);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-gold);
    border-color: var(--clr-gold);
}

.btn-outline:hover {
    background-color: var(--clr-gold);
    color: var(--clr-white);
}

/* =======================================
   HEADER & NAVBAR
   ======================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(11, 19, 32, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}



.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--clr-gray-200);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-gold);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--clr-white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    color: var(--clr-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =======================================
   HERO SECTION
   ======================================= */
.hero {
    min-height: 100vh;
    background-color: var(--clr-navy);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, rgba(11, 19, 32, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(197, 168, 128, 0.1);
    color: var(--clr-gold);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--clr-white);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 300;
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--clr-gray-200);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-white);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--clr-gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-image-wrapper {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 2;
    box-shadow: 20px 20px 0 rgba(197, 168, 128, 0.1);
}

.profile-img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s ease;
}

.image-frame:hover .profile-img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 19, 32, 0.4), transparent 50%);
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    bottom: -1rem;
    left: 0;
    background: var(--clr-white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.badge-icon {
    width: 48px;
    height: 48px;
    background-color: var(--clr-gold);
    color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-family: var(--font-heading);
    color: var(--clr-navy);
    font-size: 1.1rem;
    line-height: 1.2;
}

.badge-text span {
    font-size: 0.85rem;
    color: var(--clr-gray-600);
}

/* =======================================
   ESPECIALIDADES (AREAS DE PRÁCTICA)
   ======================================= */
.areas {
    background-color: var(--clr-gray-50);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--clr-gray-600);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.area-card {
    background-color: var(--clr-white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition-base);
    z-index: 1;
    border: 1px solid var(--clr-gray-200);
}

.card-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--clr-gold);
    transition: var(--transition-slow);
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.area-card:hover .card-border-top {
    width: 100%;
}

.area-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(197, 168, 128, 0.1);
    color: var(--clr-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.area-card:hover .area-icon {
    background-color: var(--clr-gold);
    color: var(--clr-white);
    transform: scale(1.1);
}

.area-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.area-desc-short {
    font-weight: 500;
    color: var(--clr-gray-800);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.area-divider {
    height: 1px;
    background-color: var(--clr-gray-200);
    margin: 1.25rem 0;
}

.area-detail {
    font-size: 0.95rem;
    color: var(--clr-gray-600);
    line-height: 1.7;
}

/* =======================================
   METODOLOGÍA (PARALLAX EFFECT)
   ======================================= */
.methodology {
    position: relative;
    padding: 8rem 0;
    background-color: var(--clr-navy);
    overflow: hidden;
}

.methodology-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1505664177941-ad55c1b6eb4d?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    z-index: 1;
}

.methodology-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11, 19, 32, 0.95) 0%, rgba(11, 19, 32, 0.8) 100%);
    z-index: 2;
}

.methodology-container {
    position: relative;
    z-index: 3;
    display: flex;
}

.methodology-content {
    max-width: 650px;
}

.quote-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--clr-gold);
    padding: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 3rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -15px;
    left: 20px;
    color: var(--clr-gold);
    font-size: 2rem;
    opacity: 0.3;
}

.quote-text {
    font-family: var(--font-heading);
    color: var(--clr-gray-100);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--clr-gray-200);
}

.benefit-item i {
    color: var(--clr-gold);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

/* =======================================
   CONTACT FORM & INFO
   ======================================= */
.contact {
    background-color: var(--clr-gray-100);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 5fr 7fr;
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    background-color: var(--clr-navy);
    padding: 4rem 3rem;
    color: var(--clr-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Background pattern */
.contact-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.contact-title {
    color: var(--clr-white);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--clr-gray-300);
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-base);
}

.contact-method-card.hover-lift:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-color: rgba(197, 168, 128, 0.3);
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.method-icon.whatsapp {
    background: #25D366;
    color: white;
}

.method-icon.email {
    background: rgba(197, 168, 128, 0.2);
    color: var(--clr-gold);
}

.method-icon.location {
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.85rem;
    color: var(--clr-gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-value {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--clr-white);
}

.contact-form-container {
    padding: 4rem 3rem;
    background-color: var(--clr-white);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--clr-navy);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--clr-gray-800);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--clr-gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--clr-gray-50);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-gold);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-disclaimer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--clr-gray-400);
    justify-content: center;
}

/* =======================================
   FOOTER
   ======================================= */
.footer {
    background-color: #070B13;
    /* Even darker blue for footer */
    color: var(--clr-gray-400);
    padding-top: 5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-slogan {
    font-size: 1.05rem;
    color: var(--clr-gray-300);
    line-height: 1.6;
}

.footer h4 {
    color: var(--clr-white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--clr-gray-400);
}

.footer-links a:hover {
    color: var(--clr-gold);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
}

.social-link:hover {
    background: var(--clr-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--clr-gold);
}

.separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.2);
}

/* =======================================
   WHATSAPP FLOATING BUTTON
   ======================================= */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #20C05C;
    color: #FFF;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.6);
}

/* =======================================
   RESPONSIVE DESIGN
   ======================================= */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(11, 19, 32, 0.98);
        padding: 2rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition-base);
    }

    .nav-list.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        padding-left: 0;
        margin-top: 2rem;
    }

    .floating-badge {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        justify-content: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}