/* Base Styles & Variables */
:root {
    --primary-color: #0b1930;
    --primary-color-hover: #16305a;
    --accent-color: #c9a45c;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

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

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

ul {
    list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

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

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

.btn-outline:hover {
    background-color: rgba(11, 25, 48, 0.05);
}

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

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
    border: 1px solid #25d366;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* Header */
header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-gm {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 3px;
    font-weight: 600;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

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

.header-contact .phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Section */
.hero {
    background-color: var(--white);
    background-image: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 1) 40%, 
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 70%,
        rgba(255, 255, 255, 0) 100%), 
        url('hero.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    padding: 120px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-phone {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background-image: url('logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-content {
    flex: 1;
}

.section-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
    line-height: 1.3;
}

.about-content p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.section-title {
    font-size: 24px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    background-color: var(--white);
    display: flex;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: left;
    width: 450px;
}

.member-image {
    width: 200px;
    flex-shrink: 0;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.member-role {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-degree {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.member-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
}

.social-link:hover {
    background-color: var(--primary-color-hover);
}

/* Practice Areas */
.practice-areas {
    padding: 80px 0;
    background-color: var(--white);
}

.areas-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.area-card {
    flex: 1;
    min-width: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: var(--white);
}

.area-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.area-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.area-header h3 {
    font-size: 18px;
    line-height: 1.3;
    color: var(--white);
}

.area-lists {
    display: flex;
    gap: 30px;
}

.area-lists ul {
    flex: 1;
}

.area-lists li {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.area-lists li::before {
    content: "•";
    color: var(--accent-color);
    margin-right: 8px;
    font-weight: bold;
}

.area-lists li.muted {
    color: #999;
}

.area-lists li.muted::before {
    color: #999;
}

/* Features */
.features {
    padding: 60px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-item {
    flex: 1;
    text-align: center;
}

.feature-icon {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-container {
    display: flex;
    gap: 40px;
}

.contact-info-col {
    flex: 1;
}

.contact-info-col h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-color);
}

.contact-list i {
    font-size: 18px;
    color: var(--text-color);
    margin-top: 2px;
}

.contact-form-col {
    flex: 2;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input, .form-row textarea {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    background-color: var(--bg-light);
}

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

.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-map-col {
    flex: 1;
}

.contact-map-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo {
    flex: 1;
}

.footer-desc {
    flex: 2;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-links {
    flex: 1;
}

.footer-links h4, .footer-social h4 {
    font-size: 12px;
    font-family: var(--font-body);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

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

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

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

.footer-social {
    flex: 1;
    text-align: center;
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-circle:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.footer-copy {
    flex: 1;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-align: right;
    line-height: 1.6;
}

/* Responsive Enhancements */
@media (max-width: 992px) {
    .hero {
        background-image: linear-gradient(to bottom, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(255, 255, 255, 0.9) 100%), 
            url('hero.jpg');
        background-position: center;
        padding: 100px 0 60px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        margin: 0 auto 30px auto;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .about-container, .contact-container, .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content h2, .section-title {
        font-size: 28px;
    }
    
    .about::before {
        display: none;
    }
    
    .team-grid, .areas-grid, .features-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .area-card {
        width: 100%;
        min-width: 100%;
    }
    
    .area-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row input, .form-row textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-copy {
        text-align: center;
        margin-top: 20px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 2px 5px 15px rgba(0,0,0,0.25);
    color: #FFF;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary-color); /* Fondo oscuro elegante */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader img {
    max-height: 120px;
    animation: pulse 1s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
