:root {
    --primary-es: #2e7d32;
    --primary-spain: #0d47a1;
    --dark-bg: #11141a;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --border-color: #cbd5e1;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

/* Hero Moderno */
.hero {
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    color: var(--text-light);
}

.hero-es {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
}

.hero-spain {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
}

.hero h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-btn {
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn-es { background-color: var(--primary-es); color: #fff; }
.btn-es:hover { background-color: #215d25; transform: translateY(-2px); }
.btn-spain { background-color: var(--primary-spain); color: #fff; }
.btn-spain:hover { background-color: #0a377e; transform: translateY(-2px); }

/* Seções Principais */
.section-container {
    padding: 70px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #0f172a;
}

.section-subtitle {
    color: #64748b;
    font-size: 1rem;
}

/* Áreas de Atuação Grid Vitrine */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.showcase-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 15%, rgba(15, 23, 42, 0.25));
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.showcase-overlay h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.showcase-card:hover img {
    transform: scale(1.05);
}

/* Painel de Filtros e Dropdowns Padronizados */
.search-wrapper {
    background: var(--light-bg);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 60px 24px;
}

.search-box {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 850px;
    margin: 0 auto;
}

.search-select {
    padding: 14px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.95rem;
    width: 250px;
    font-family: 'Inter', sans-serif;
    outline: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.search-select:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.15);
}

.search-btn-action {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

/* Resultados Dinâmicos */
.results-wrapper {
    max-width: 850px;
    margin: 35px auto 0;
}

.advogado-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.advogado-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(2px);
}

.advogado-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.advogado-field {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #475569;
}

.advogado-field strong {
    color: #1e293b;
}

.advogado-links {
    margin-top: 14px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.advogado-link-btn {
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Paginação */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    background: #f1f5f9;
}

.page-btn.active {
    background-color: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SEO Grid */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.seo-block h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}

.seo-links-list {
    list-style: none;
}

.seo-links-list li {
    margin-bottom: 10px;
}

.seo-links-list li a {
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.seo-links-list li a:hover {
    color: #0f172a;
    font-weight: 500;
}

/* Rodapé */
footer {
    background-color: var(--dark-bg);
    color: #94a3b8;
    padding: 60px 24px 30px;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 30px;
}

.footer-logo h2 {
    color: #ffffff;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 20px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-credits {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}
.footer-legal-links {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.footer-legal-links a {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #f8fafc;
}

.footer-separator {
    color: #334155;
    font-size: 0.85rem;
    user-select: none;
}


@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .footer-legal-links {
        margin-top: 5px;
    }
}