/* =============================================
   EUGENIA & ASOCIADOS — Main Stylesheet
   Clean, Modern, Minimalistic Design
   ============================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #f1f3f5;
    --gray: #6c757d;
    --dark-gray: #495057;
    --charcoal: #2b2b2b;
    --black: #1a1a1a;
    --gold: #b8960c;
    --gold-light: #d4af37;
    --gold-subtle: #f5f0e0;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* ---------- Section Headers ---------- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 300;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--black);
    font-weight: 600;
}

.btn-white:hover {
    background: var(--gold-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-logo span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-logo span {
    color: var(--black);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--dark-gray);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--black);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1001;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.navbar.scrolled .lang-toggle {
    background: var(--light-gray);
    border-color: var(--light-gray);
}

.lang-flag {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--white);
    letter-spacing: 0.5px;
}

.navbar.scrolled .lang-flag {
    color: var(--black);
}

.lang-toggle:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.05);
}

.lang-toggle:hover .lang-flag {
    color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--black);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('aboga.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 20, 20, 0.85) 0%,
        rgba(30, 30, 30, 0.7) 50%,
        rgba(40, 40, 40, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid rgba(184, 150, 12, 0.4);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-accent {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 2px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* ---------- About Section ---------- */
.about {
    background: var(--white);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 4px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    z-index: -1;
}

.about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.2;
}

.about-role {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--light-gray);
}

.stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gold-subtle);
    border-radius: 50%;
    color: var(--gold);
    flex-shrink: 0;
}

.stat strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
}

.stat span {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ---------- Services Section ---------- */
.services {
    background: var(--off-white);
}

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 150, 12, 0.15);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--gold-subtle);
    border-radius: 12px;
    color: var(--gold);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ---------- Why Us Section ---------- */
.why-us {
    background: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-us-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 40px;
    line-height: 1.2;
}

.why-us-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-item-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.5;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 4px;
}

.why-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 6px;
}

.why-item p {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.7;
}

.why-us-image-wrapper img {
    border-radius: 4px;
    width: 100%;
    height: 580px;
    object-fit: cover;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: var(--black);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Contact Section ---------- */
.contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 24px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.contact-card:hover {
    border-color: rgba(184, 150, 12, 0.2);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gold-subtle);
    border-radius: 50%;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.contact-card a {
    font-size: 0.875rem;
    color: var(--gray);
}

.contact-card a:hover {
    color: var(--gold);
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: var(--shadow-sm);
}

.contact-map iframe {
    display: block;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--black);
    padding: 64px 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

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

.footer-contact p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact a:hover {
    color: var(--gold-light);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

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

.footer-social a:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ---------- Scroll Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-wrapper img {
        height: 400px;
    }

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

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why-us-image {
        order: -1;
    }

    .why-us-image-wrapper img {
        height: 400px;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.25rem;
        color: var(--white) !important;
    }

    .mobile-menu-btn.active span {
        background: var(--white) !important;
    }

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

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .about-image-accent {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-banner {
        padding: 56px 0;
    }

    .contact-map {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-logo span {
        font-size: 0.85rem;
    }

    .service-card {
        padding: 28px 24px;
    }
}
