/* ========================================
   VARIABLES Y CONFIGURACIÓN BASE
======================================== */
:root {
    /* Colores principales */
    --merlot: #6B1C23;
    --merlot-dark: #4A1419;
    --merlot-light: #8B2C33;
    --gold: #D4AF37;
    --gold-dark: #B8941F;
    --gold-light: #F5D76E;
    --red: #C41E3A;
    --red-dark: #A01829;

    /* Colores neutrales */
    --white: #FFFFFF;
    --black: #0A0A0A;
    --gray-light: #F5F5F5;
    --gray: #666666;
    --gray-dark: #333333;

    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(107, 28, 35, 0.1);
    --shadow-md: 0 5px 20px rgba(107, 28, 35, 0.15);
    --shadow-lg: 0 10px 40px rgba(107, 28, 35, 0.2);
}

/* ========================================
   RESET Y ESTILOS BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   NAVEGACIÓN
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-normal);
    padding: var(--spacing-md) 0;
}

.navbar.scrolled {
    background: rgba(107, 28, 35, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
}

.logo-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--merlot);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

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

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition-normal);
    border-radius: 3px;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--merlot-dark) 0%, var(--merlot) 100%);
    background-image: url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 28, 35, 0.85) 0%, rgba(74, 20, 25, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gold-light);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--merlot);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

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

.btn-secondary:hover {
    background: var(--gold);
    color: var(--merlot);
    transform: translateY(-3px);
}

.hero-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 25px;
    margin: 0 auto var(--spacing-sm);
    position: relative;
}

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

.hero-scroll p {
    color: var(--gold-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

@keyframes scroll {
    0%, 100% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
        top: 50%;
    }
}

/* ========================================
   SECCIONES GENERALES
======================================== */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--merlot);
    margin-bottom: var(--spacing-sm);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--red));
    margin: var(--spacing-md) auto;
    border-radius: 2px;
}

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

/* ========================================
   ABOUT SECTION
======================================== */
.about {
    background: var(--gray-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 28, 35, 0.3), rgba(212, 175, 55, 0.3));
    opacity: 0;
    transition: var(--transition-normal);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image:hover .image-overlay {
    opacity: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--merlot);
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.about-details {
    margin-bottom: var(--spacing-lg);
}

.detail-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.detail-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.detail-item i {
    font-size: 2rem;
    color: var(--gold);
    min-width: 40px;
}

.detail-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--merlot);
}

.detail-item p {
    color: var(--gray);
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--merlot), var(--merlot-dark));
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--red));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--merlot), var(--merlot-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transform: rotate(360deg);
}

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

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--merlot);
}

.service-card p {
    color: var(--gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.service-link {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.service-link:hover {
    gap: 1rem;
    color: var(--merlot);
}

/* ========================================
   PROJECTS/ACHIEVEMENTS SECTION
======================================== */
.projects {
    background: var(--gray-light);
}

.projects-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--spacing-lg);
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold);
}

.timeline-icon i {
    color: var(--merlot);
    font-size: 1.2rem;
}

.timeline-content {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--white);
    background: var(--merlot);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--merlot);
}

.timeline-content p {
    color: var(--gray);
}

.achievements-gallery {
    max-width: 700px;
    margin: 0 auto;
}

.achievements-gallery h3 {
    font-size: 2rem;
    color: var(--merlot);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

/* Todas las fotos del mismo tamaño */
.gallery-item-wide,
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    height: 280px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.gallery-item:hover,
.gallery-item-wide:hover {
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 28, 35, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--gold);
    transform: scale(0);
    transition: var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ========================================
   LAW FIRM SECTION
======================================== */
.law-firm {
    background: var(--white);
}

.law-firm-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.law-firm-text h2 {
    font-size: 3rem;
}

.firm-slogan {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 400;
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.law-firm-text .lead {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.firm-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

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

.firm-values {
    background: var(--gray-light);
    padding: var(--spacing-md);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
}

.firm-values h4 {
    font-size: 1.3rem;
    color: var(--merlot);
    margin-bottom: var(--spacing-md);
}

.firm-values ul li {
    color: var(--gray-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.firm-values ul li strong {
    color: var(--merlot);
}

.law-firm-image .image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.law-firm-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact {
    background: var(--gray-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--merlot);
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--gold);
    min-width: 30px;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--merlot);
}

.info-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

.social-links {
    margin-top: var(--spacing-lg);
}

.social-links h4 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--merlot);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--merlot), var(--merlot-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    transform: translateY(-5px);
}

.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

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

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

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--gray);
    transition: var(--transition-normal);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--gold);
    background: var(--white);
    padding: 0 0.3rem;
}

.form-group select {
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
}

.form-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.form-success.show {
    opacity: 1;
    visibility: visible;
}

.form-success i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: var(--spacing-md);
}

.form-success h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.form-success p {
    color: var(--gray);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: linear-gradient(135deg, var(--merlot-dark), var(--merlot));
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--gold);
    margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section ul li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    transition: var(--transition-normal);
}

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

.footer-section i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--merlot);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   WHATSAPP BUTTON
======================================== */
.whatsapp-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    transition: var(--transition-normal);
    z-index: 999;
    cursor: pointer;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
}

.whatsapp-button i {
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(107, 28, 35, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
    }

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

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .about-content,
    .projects-content,
    .law-firm-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Galería ya está en columna, solo ajustar altura */
    .gallery-item-wide,
    .gallery-item {
        height: 200px;
    }

    .firm-features {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ANIMACIONES ADICIONALES
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ======= SOBRE MÍ: texto centrado arriba + fila IMG | CUADROS ======= */
.about.about--split .about-content{
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr;                 /* izquierda > derecha */
  grid-template-areas:
    "text text"                                       /* fila 1: texto centrado en 2 cols */
    "img  details";                                   /* fila 2: imagen | cuadros */
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

/* fila superior (centrada) */
.about.about--split .about-text{
  grid-area: text;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* columna izquierda (imagen) */
.about.about--split .about-image{
  grid-area: img;
}
.about.about--split .about-image .image-wrapper{
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about.about--split .about-image img{
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* columna derecha (cuadros) */
.about.about--split .about-details{
  grid-area: details;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.about.about--split .detail-item{
  display: flex;
  gap: 1rem;
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}
.about.about--split .detail-item:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* oculta contadores si existían */
.about.about--split .about-stats{ display:none !important; }

/* ======= quita puntero/scroll y parallax del hero (rendimiento) ======= */
.hero .hero-scroll,
.scroll-indicator{ display:none !important; }
.hero{ background-attachment: scroll !important; }

/* ======= Responsive: una columna en móviles ======= */
@media (max-width: 980px){
  .about.about--split .about-content{
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "img"
      "details";
  }
  .about.about--split .about-text{ text-align: center; }
  .about.about--split .about-image img{ height: 420px; }
}

/* === Desactivar cualquier cursor/indicador custom === */
.cursor, .cursor-dot, .cursor-outer, .cursor-inner,
.mouse, .mouse-dot, .magic-cursor, .magic-pointer,
.hero .hero-scroll, .scroll-indicator {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Forzar cursor normal en toda la página */
* { cursor: auto !important; }

/* Evitar parallax que da lag (por si acaso) */
.hero { background-attachment: scroll !important; }

/* ====== Cursores correctos por tipo de elemento (override) ====== */

/* Enlaces, botones y elementos clicables: MANO */
a[href],
button,
.btn,
[role="button"],
.nav-link,
.nav-link-cta,
.service-link,
.back-to-top,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer !important;
}

/* Inputs de texto y textarea: I-beam (escritura) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea {
  cursor: text !important;
}

/* Selects y dropdowns: MANO (abrir selector) */
select {
  cursor: pointer !important;
}

/* Elementos deshabilitados: símbolo de no permitido */
:disabled,
[aria-disabled="true"] {
  cursor: not-allowed !important;
}

/* Fondo de la página: cursor normal por defecto */
html, body {
  cursor: default !important;
}


