/* Variables & Reset */
:root {
    --primary-color: #111111;
    /* Dark Brand Color */
    --secondary-color: #D4AF37;
    /* True Gold */
    --accent-color: #f8fafc;
    /* Very Light Gray */
    --text-color: #334155;
    /* Dark Slate */
    --light-text: #94a3b8;
    /* Grayish Blue */
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --max-width: 1200px;
    --nav-height: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--accent-color);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

.separator {
    height: 3px;
    width: 80px;
    background-color: var(--secondary-color);
    margin: 15px auto 30px;
}

.separator-white {
    background-color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #92400e;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    background-color: var(--primary-color);
    /* Navy Blue Background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--white);
    /* White text */
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.btn-contact {
    background-color: var(--secondary-color);
    /* Gold button */
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-contact:hover {
    background-color: #92400e;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
    /* White bars */
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 600px;
    background-image: url('../assets/images/hero.png');
    /* Reverted to Original Hero */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: var(--nav-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5));
    /* Darker overlay for photo readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
}



.bg-dark .section-header h2 {
    color: var(--white);
}

/* About Section */
.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p:not(.lead-text) {
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Practice Areas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(180, 83, 9, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Coverage Strip */
.coverage-strip {
    background-color: #cbd5e1;
    padding: 40px 0;
    text-align: center;
    color: var(--primary-color);
}

.coverage-strip h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info,
.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.info-item h4 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 5px;
}

.info-item p {
    color: #cbd5e1;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: #020617;
    color: #64748b;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 16px 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
    }

    .btn-contact {
        display: inline-block;
        width: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    /* Reducir "aire" en celular */
    .section-padding {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .features-grid {
        margin-top: 25px;
    }

    .features-grid,
    .services-grid,
    .team-grid {
        gap: 15px;
    }
    
    .feature-item {
        padding: 20px;
    }

    .service-card {
        padding: 25px;
    }

    .team-grid {
        margin-bottom: 30px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.team-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-avatar {
    width: 140px;
    height: 140px;
    background-color: #e2e8f0;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 3rem;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.team-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.team-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 5px;
}

.team-card .role {
    font-weight: 600;
    color: var(--primary-color);
}

.team-card .detail {
    font-weight: 400;
    font-style: italic;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Experience Banner */
.experience-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.experience-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
}

.experience-banner i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.experience-banner p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    max-width: 800px;
}

.experience-banner strong {
    color: var(--secondary-color);
}