/* Custom properties for an elegant, trustworthy theme */
:root {
    --primary-color: #1a2b4c;       /* Azul Oxford */
    --primary-hover: #0e182a;
    --background: #f4f4f4;          /* Gris Perla */
    --surface: #ffffff;
    --text-main: #1a1a1a;           /* Strong Slate */
    --text-muted: #4a4a4a;          /* Softer Slate */
    --border: #e2e8f0;
    
    --success: #10b981;
    --danger: #ef4444;
    
    --radius: 12px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Typography Details */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}

h1.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.2), 0 2px 4px -1px rgba(29, 78, 216, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(29, 78, 216, 0.3);
}

.btn-large {
    padding: 1.15rem 2.5rem;
    font-size: 1.125rem;
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

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

/* Header Navbar */
.header {
    background-color: var(--primary-color);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--primary-hover);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 10px 0 rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.logo span { color: #f4f4f4; }

.nav {
    display: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff;
}

@media (min-width: 768px) {
    .nav { display: flex; }
}

/* Animations Triggered via JS Observer */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.badge {
    display: inline-block;
    background-color: rgba(29, 78, 216, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.trust-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.trust-item .icon {
    color: var(--success);
    font-weight: bold;
}

.rounded-image {
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* PAS Section */
.pas-section { padding: 5rem 0; background-color: var(--background); }
.pas-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .pas-grid { grid-template-columns: repeat(3, 1fr); }
}

.pas-card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-color { background-color: rgba(245, 158, 11, 0.15); }
.danger-color { background-color: rgba(239, 68, 68, 0.15); }
.success-color { background-color: rgba(16, 185, 129, 0.15); }

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: var(--surface);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 4rem;
}

.desktop-only { display: none; }

@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
    .process-steps .step { flex: 1; }
    .desktop-only { display: block; }
    .process-steps .step-line {
        width: 80px;
        height: 2px;
        background: var(--border);
        margin-top: 25px;
        flex-shrink: 0;
    }
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 8px rgba(29, 78, 216, 0.15);
}

.step-desc {
    color: var(--text-muted);
}

/* Contact / Form Section */
.contact-section {
    padding: 5rem 0;
    background: var(--primary-color);
    color: white;
}

.contact-section .section-title {
    color: white;
}

.contact-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.contact-desc {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1.05rem;
}

.benefit-list .check {
    color: #cbd5e1;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.contact-form-wrapper {
    background: var(--surface);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    color: var(--text-main);
    background: white;
    appearance: none;
}

.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: "▼";
    font-size: 0.8rem;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.form-checkbox input {
    margin-top: 0.3rem;
    accent-color: var(--primary-color);
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
    font-weight: 500;
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: var(--danger);
    background-color: #fef2f2;
}
.form-group.has-error .error-msg {
    display: block;
}
.has-error#privacy-error {
    display: block;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* Radio Button Cards */
.radio-card-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
}

.radio-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
    height: 100%;
    color: var(--text-main);
}

.radio-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.radio-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.radio-card:hover .radio-card-content {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.radio-card input[type="radio"]:checked + .radio-card-content {
    border-color: var(--primary-color);
    background: rgba(26, 43, 76, 0.05);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.form-group.has-error .radio-card-group .radio-card-content {
    border-color: var(--danger);
    background: #fef2f2;
}

@media (max-width: 480px) {
    .radio-card-group {
        grid-template-columns: 1fr;
    }
}

/* Success Message Overlay */
.success-message {
    position: absolute;
    inset: 0;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
    z-index: 10;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message.visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #ecfdf5;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.success-message h3 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.success-message p {
    color: var(--text-muted);
}

/* Expert Lawyer Section */
.expert-section {
    padding: 7rem 0;
    background: var(--background);
}

.expert-grid {
    display: grid;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .expert-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.expert-image-wrapper {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.expert-image {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 6px solid white;
}

.expert-content {
    background: white;
    padding: clamp(1.75rem, 5vw, 3rem);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid var(--border);
}

.expert-content::before {
    content: "“";
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 7rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.expert-desc {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.expert-cred strong {
    color: var(--primary-color);
    font-size: 1.15rem;
}

/* Footer Element */
.footer {
    background: var(--primary-color);
    color: #f4f4f4;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer .disclaimer {
    margin-top: 1rem;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Base Responsive Adjustments */
@media (max-width: 768px) {
    .header .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    .logo {
        font-size: 1.25rem;
    }
    .hero {
        padding: 4rem 0 3rem 0;
    }
    .pas-section, .process-section, .contact-section, .expert-section {
        padding: 3.5rem 0;
    }
    .contact-grid, .expert-grid, .hero-grid {
        gap: 2.5rem;
    }
    .trust-badges {
        flex-direction: column;
        gap: 1rem !important;
    }
    .benefit-list li {
        font-size: 0.95rem;
    }
}
