/* 
   Abogar es Ley - Elegant Minimalist Dark Theme
   Typography: Cormorant Garamond (Serif/Headings), Montserrat (Sans-Serif/Body)
*/

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #141414;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-gold: #d4af37;
    --accent-gold-hover: #e5c158;
    --border-color: #2a2a2a;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section {
    padding: 6rem 0;
}

.dark-section {
    background-color: var(--bg-darker);
}

/* Typography utilities */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
}

.about-text .section-title::after {
    left: 0;
    transform: none;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.align-center {
    align-items: center;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    color: var(--bg-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo img {
    height: 73px;
    width: auto;
    object-fit: contain;
    border-radius: 4px; /* Slight rounding for elegant look */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 130px; /* Offset for nav */
    background-image: url('hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero .description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Features */
.feature-card {
    background-color: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.icon-gold {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Services */
.services-grid {
    gap: 1.5rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.service-content {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card .line-accent {
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 0 auto;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover h3 {
    color: var(--accent-gold);
}

.service-card:hover .line-accent {
    width: 80px;
}

/* About Section */
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--accent-gold);
    font-weight: 500;
}

.profile-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent-gold);
    text-align: center;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
}

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

.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.profile-info .role {
    display: block;
    color: var(--accent-gold);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.profile-info .line-accent {
    width: 50px;
    height: 1px;
    background-color: var(--border-color);
    margin: 0 auto 1.5rem;
}

/* Footer */
.footer {
    background-color: #000;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    height: 91px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-list i {
    color: var(--accent-gold);
    margin-top: 0.3rem;
}

.footer-nav ul li {
    margin-bottom: 0.8rem;
}

.footer-nav ul a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-nav ul a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s ease;
    text-align: center;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-gold);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.modal-desc {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.modal-content .line-accent {
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 0 auto;
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.faq-btn {
    width: 100%;
    background-color: transparent;
    color: var(--text-primary);
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-btn:hover {
    color: var(--accent-gold);
}

.faq-btn.active {
    color: var(--accent-gold);
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(212, 175, 55, 0.05);
}

.faq-btn i {
    transition: transform 0.3s ease;
    color: var(--accent-gold);
}

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

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(0, 0, 0, 0.2);
}

.faq-content p {
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* WhatsApp Float */
.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: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero .subtitle { font-size: 1.5rem; }
    .nav-links { display: none; /* Mobile menu needed for production */ }
}

@media (max-width: 768px) {
    .hero { 
        padding-top: 150px; 
        padding-bottom: 60px; 
        align-items: flex-start; 
    }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .section { padding: 4rem 0; }
    .footer-grid { grid-template-columns: 1fr; }
}
