/* ========================================
   CSS Variables
   ======================================== */
:root {
    --gold: #D4AF37;
    --gold-dark: #B8962E;
    --gold-light: #E5C158;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --light-gray: #F5F5F5;
    --gray: #E0E0E0;
    --dark-gray: #333333;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Lato', sans-serif;
    
    --transition: all 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-label {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

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

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

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 15px var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 25px var(--shadow-dark);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

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

.logo i {
    color: var(--gold);
    font-size: 1.75rem;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

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

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

.btn-nav {
    padding: 10px 25px;
    background: var(--gold);
    color: var(--white);
    border-radius: 5px;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/justicia.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 25px;
    opacity: 0.7;
}

.scroll-indicator span {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}

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

.about-image {
    position: relative;
}

.about-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    box-shadow: 0 20px 50px var(--shadow);
    display: block;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.image-placeholder {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    aspect-ratio: 4/5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px var(--shadow);
}

.image-placeholder i {
    font-size: 8rem;
    color: var(--white);
    opacity: 0.3;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-badge i {
    font-size: 2rem;
    color: var(--gold);
}

.about-badge span {
    font-weight: 700;
    color: var(--text-dark);
}

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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

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

.feature-item i {
    color: var(--gold);
    font-size: 1.25rem;
}

.feature-item span {
    font-weight: 600;
    color: var(--text-dark);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 100px 0;
    background: var(--light-gray);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-dark);
    border-top-color: var(--gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

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

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

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

/* ========================================
   Appointment Section
   ======================================== */
.appointment {
    padding: 100px 0;
    background: var(--white);
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.info-cards {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
}

.info-card:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateX(10px);
}

.info-card i {
    font-size: 1.75rem;
    color: var(--gold);
    flex-shrink: 0;
}

.info-card:hover i {
    color: var(--white);
}

.info-card h4 {
    font-family: var(--font-primary);
    margin-bottom: 5px;
    font-size: 1.125rem;
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.appointment-form-wrapper {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.appointment-form h3 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.form-note {
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 100px 0;
    background: var(--light-gray);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--gold);
    font-size: 1.75rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

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

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

.contact-info li {
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info li i {
    color: var(--gold);
    margin-top: 4px;
    flex-shrink: 0;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

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

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px var(--shadow-dark);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--gold-dark);
    transform: translateY(-5px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .about-content,
    .appointment-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 30px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        width: 100%;
        padding: 10px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .appointment-form-wrapper {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .about-badge {
        position: static;
        margin-top: 20px;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
}


