/* 
   Gutiérrez & Asociados - Design System
   Colors: Navy Blue, Gold, Off-White
   Fonts: Playfair Display (Headings), Inter (Body)
*/

:root {
    --primary-color: #0a192f;
    --primary-light: #112240;
    --accent-color: #d4af37;
    --accent-hover: #b5952f;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 15px 40px rgba(10, 25, 47, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

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

/* Sections Typography */
.section-subtitle {
    display: block;
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    position: relative;
}

.login-icon-link {
    font-size: 1.25rem;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.login-icon-link:hover {
    color: var(--accent-color) !important;
    transform: scale(1.1);
}

.login-icon-link::after {
    display: none !important; /* No underline for icon */
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1001;
    transition: right 0.4s ease;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    text-align: right;
    font-size: 1.5rem;
    color: var(--bg-white);
    cursor: pointer;
    margin-bottom: 2rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    color: var(--bg-white);
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('img/abogadocover.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.7) 100%);
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    color: var(--bg-white);
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 4rem;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
}

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

/* Stats */
.stats {
    background-color: var(--primary-light);
    padding: 3rem 0;
    color: var(--bg-white);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    font-weight: 700;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

/* Practice Areas */
.practice-areas {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.area-card {
    background-color: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    border-bottom: 3px solid transparent;
    text-align: center;
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--accent-color);
}

.area-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    text-align: center;
}

.area-card:hover .area-icon {
    color: var(--accent-color);
}

.area-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.area-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.area-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.area-link:hover {
    color: var(--accent-color);
}

.area-link i {
    transition: transform 0.3s ease;
}

.area-link:hover i {
    transform: translateX(5px);
}

/* Service Cards with Image Background */
.service-card {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: none;
    color: var(--bg-white);
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(10, 25, 47, 0.85); /* primary-color with opacity */
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::before {
    background-color: rgba(10, 25, 47, 0.7);
}

.service-card .area-icon {
    color: var(--accent-color);
}

.service-card h3 {
    color: var(--bg-white);
}

.service-card p {
    color: #cbd5e1;
}

.service-card .area-link {
    color: var(--accent-color);
}

.service-card .area-link:hover {
    color: var(--bg-white);
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding: 0 0 2rem 2rem;
}

.about-image-box {
    position: absolute;
    top: -20px;
    left: 0;
    width: 80%;
    height: 100%;
    border: 3px solid var(--accent-color);
    z-index: -1;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--accent-color);
    line-height: 1;
}

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

.about-features {
    margin: 1.5rem 0;
}

.about-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.about-features i {
    color: var(--accent-color);
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background-color: var(--primary-light);
    color: var(--bg-white);
}

.testimonials .section-title {
    color: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: var(--primary-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h4 {
    color: var(--bg-white);
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-content {
    padding: 4rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-details p, .contact-details a {
    color: var(--text-light);
}

.contact-details a:hover {
    color: var(--primary-color);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--bg-light);
}

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

.form-message {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
}

/* Map */
.map-wrapper {
    min-height: 400px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    color: var(--text-light);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
}

/* Service Page Styles */
.bg-light {
    background-color: var(--bg-light);
}

.service-page-hero {
    margin-top: 80px;
    padding: 8rem 0 6rem 0;
    background-color: var(--primary-light);
    color: var(--bg-white);
    position: relative;
    background-size: cover;
    background-position: center;
}

.service-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(10, 25, 47, 0.85); /* Overlay */
    z-index: 1;
}

.service-page-hero .container {
    position: relative;
    z-index: 2;
}

.service-page-hero .service-page-title {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-page-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-page-content {
    padding: 3rem 0 6rem 0;
}

.service-details-card {
    background-color: var(--bg-white);
    padding: 4rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: -5rem auto 0 auto;
    position: relative;
    z-index: 10;
}

.service-desc-text {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: justify;
}

.service-cta {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer .logo-text h3 {
    color: var(--bg-white);
}

.footer p {
    color: #cbd5e1;
}

.footer h4 {
    color: var(--bg-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-links a {
    color: #cbd5e1;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

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

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
}

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

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

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--bg-white);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-body);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .about-image-wrapper {
        margin-bottom: 2rem;
    }
    .contact-content {
        padding: 3rem 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Article Content Styling */
.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h1, 
.article-content h2, 
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    display: block;
    box-shadow: var(--shadow-md);
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--bg-light);
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 8px 8px 0;
}

