/* ==========================================================================
   TIP & ABOGADOS - Modern Design System & Public Styles
   Brand Identity: Terracotta (#df6b3a), Amber Gold (#ffae4a), Deep Slate (#0a192f)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Sen:wght@400;700;800&display=swap');

:root {
    --primary: #df6b3a;
    --primary-hover: #c45729;
    --primary-light: rgba(223, 107, 58, 0.1);
    --primary-border: rgba(223, 107, 58, 0.25);
    
    --accent: #ffae4a;
    --accent-hover: #f59b2d;
    --accent-glow: rgba(255, 174, 74, 0.35);

    --dark: #0a192f;
    --dark-surface: #0f2444;
    --dark-card: rgba(15, 36, 68, 0.85);
    
    --light-bg: #fbfbfd;
    --light-surface: #ffffff;
    --light-secondary: #fff6ef;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --border: #e2e8f0;
    --border-dark: rgba(255, 255, 255, 0.1);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 35px -8px rgba(10, 25, 47, 0.12);
    --shadow-glow: 0 12px 30px rgba(255, 174, 74, 0.28);
    --shadow-primary: 0 12px 25px rgba(223, 107, 58, 0.3);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --font-serif: 'Sen', sans-serif;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--light-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
}

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

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
    position: relative;
}

.section-title-wrap {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 55px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-hover);
    background: rgba(255, 174, 74, 0.15);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Header & Navigation */
.header-top {
    background: var(--dark);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header-phones {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-phone-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-weight: 500;
}

.header-phone-item:hover {
    color: var(--accent);
}

.header-phone-item i {
    color: var(--accent);
}

.header-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.header-email:hover { color: var(--accent); }

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
    padding: 6px 0;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, #ffae4a, #f78550);
    color: #0a192f;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}
.btn-accent:hover {
    background: linear-gradient(135deg, #f59b2d, #df6b3a);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: transparent;
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fff6ef 0%, #ffffff 50%, #fdfbf8 100%);
    padding: 70px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 174, 74, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(223, 107, 58, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.3rem, 4.5vw, 3.4rem);
    margin-bottom: 22px;
    color: var(--dark);
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    object-fit: cover;
    border: 4px solid #fff;
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #fff;
    padding: 16px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 4px solid var(--accent);
}

.hero-floating-card i {
    font-size: 1.8rem;
    color: var(--accent);
}

.hero-floating-card h5 {
    font-size: 1rem;
    margin-bottom: 2px;
}
.hero-floating-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Pillars Section */
.pillars-section {
    background: #fff;
    padding: 70px 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

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

.pillar-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-light);
}

.pillar-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.pillar-title {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.pillar-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Services Section */
.services-section {
    background: var(--light-secondary);
}

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

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img {
    transform: scale(1.06);
}

.service-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-top: -52px;
    margin-bottom: 16px;
    position: relative;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.service-link:hover {
    color: var(--primary-hover);
    gap: 10px;
}

/* About Section */
.about-section {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-img-box {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    background: var(--dark);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-top: 4px solid var(--accent);
}

.about-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.about-badge .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.02rem;
}

.about-checklist {
    list-style: none;
    margin-bottom: 30px;
}

.about-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.about-checklist li i {
    color: var(--success);
    font-size: 1.1rem;
}

/* Offices Section */
.offices-section {
    background: var(--light-bg);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.office-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.office-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.office-media {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.office-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.office-content {
    padding: 30px;
}

.office-flag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.office-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.office-address {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.office-phone-box {
    background: var(--light-secondary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.office-phone-box i {
    font-size: 1.25rem;
    color: var(--accent-hover);
}

.office-phone-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.office-phone-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

/* FAQ Section */
.faq-section {
    background: #fff;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active {
    border-color: var(--primary-border);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--light-secondary) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 5px solid var(--accent);
}

.contact-info-card h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.contact-info-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 174, 74, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.contact-details .phone-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.15rem;
}

.contact-form-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--text-muted);
    padding: 70px 0 25px;
    border-top: 3px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: 18px;
    object-fit: contain;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

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

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-phone-highlight {
    color: #fff;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: #fff;
    color: var(--dark);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 420px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease forwards;
    border-left: 4px solid var(--primary);
    font-size: 0.92rem;
}

.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }

.toast i { font-size: 1.25rem; }
.toast.toast-success i { color: var(--success); }
.toast.toast-error i { color: var(--danger); }
.toast.toast-warning i { color: var(--warning); }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-lead { margin: 0 auto 35px; }
    .hero-ctas { justify-content: center; }
    .hero-stats { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .offices-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .mobile-menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .pillars-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { text-align: center; justify-content: center; }
}
