/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    --dark-brown: #46351D;
    --deeper-brown: #2F2313;
    --dark-green: #373C2A;
    --light-gray: #DEE5E5;
    --pale-yellow: #F4EEA9;
    --bright-yellow: #F4F482;
    --white: #FFFFFF;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-brown);
    background-color: var(--light-gray);
}

/* Header y Nav */
header {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pale-yellow), var(--bright-yellow));
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--bright-yellow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Secciones */
section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.full-width {
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.hero {
    background: linear-gradient(135deg, rgba(47, 35, 19, 0.92) 0%, rgba(55, 60, 42, 0.90) 100%),
                url('/imagenes/AbogadoCerrandoTrato.png') center/cover no-repeat;
    text-align: center;
    padding: 10rem 2rem 8rem;
    color: var(--white);
    position: relative;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bright-yellow);
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    color: var(--white);
    position: relative;
    z-index: 1;
    animation: slideInDown 0.8s ease-out;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-cta {
    display: inline-block;
    background: var(--bright-yellow);
    color: var(--dark-brown);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-cta:hover {
    background: var(--pale-yellow);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}



/* Banner CTA */
.cta-banner {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--dark-green) 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-banner-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-size: 2.4rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.cta-banner p {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#about, #services, #contact {
    padding-top: 6rem; /* Compensar header */
}

#about {
    background: var(--white);
}

#about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--dark-brown);
    font-weight: 700;
    animation: slideInDown 0.8s ease-out;
}

#about > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-green);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.process-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-brown);
    margin: 3rem 0 2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 100%;
}

.work-process-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.work-description {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    background-image: url('/imagenes/AbogadoCerrandoTrato.png');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    padding: 2.5rem 2.5rem 4.5rem;
}

.work-description::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 15px;
    z-index: 0;
}

.work-description > * {
    position: relative;
    z-index: 1;
}

.work-subtitle {
    font-size: 1.6rem;
    color: var(--dark-brown);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.task-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--bright-yellow);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(70, 45, 25, 0.15);
    border-left-color: var(--dark-brown);
}

.task-item h5 {
    color: var(--dark-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.task-item p {
    color: var(--dark-green);
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-image {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(70, 45, 25, 0.2);
    animation: slideInUp 0.8s ease-out;
}

#services {
    background: var(--white);
}

#services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark-brown);
    font-weight: 700;
}

#services ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

#services li {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--dark-green) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(47, 35, 19, 0.22);
    position: relative;
    overflow: hidden;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

#services li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 244, 130, 0.28), transparent);
    transition: left 0.6s ease;
}

#services li:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 36px rgba(47, 35, 19, 0.32);
    border-color: var(--bright-yellow);
}

#services li:hover::before {
    left: 100%;
}

/* Responsividad Mobile */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--dark-brown) 0%, var(--dark-green) 100%);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero {
        padding: 8rem 1rem 6rem;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    #about,
    #services,
    #contact {
        padding-top: 4rem;
    }

    .process-title {
        font-size: 1.5rem;
    }

    .work-subtitle {
        font-size: 1.3rem;
    }

    .task-item {
        padding: 1rem;
    }

    .task-item h5 {
        font-size: 0.95rem;
    }

    .task-item p {
        font-size: 0.85rem;
    }

    #services ul {
        grid-template-columns: 1fr;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 3rem 1rem;
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
    }

    nav {
        padding: 0.5rem 1rem;
    }

    .nav-links {
        top: 60px;
    }

    .hero {
        padding: 6rem 1rem 4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-eyebrow {
        font-size: 0.75rem;
    }

    .hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    section {
        padding: 2rem 1rem;
    }

    #about h2,
    #services h2,
    #testimonials h2,
    #contact h2 {
        font-size: 1.8rem;
    }

    .cta-banner h2 {
        font-size: 1.5rem;
    }

    .cta-banner p {
        font-size: 0.95rem;
    }

    .work-subtitle {
        font-size: 1.1rem;
    }
}

/* Animaciones */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Testimonios */
#testimonials {
    background: var(--white);
}

#testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark-brown);
    font-weight: 700;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--bright-yellow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: var(--dark-brown);
    opacity: 0.3;
}

.testimonial:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(70, 45, 25, 0.2);
    border-left-color: var(--dark-green);
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-green);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.testimonial-date {
    font-size: 0.85rem;
    color: var(--dark-brown);
    font-weight: 500;
    opacity: 0.7;
}

/* Contacto */
#contact {
    background: var(--white);
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 2rem;
    font-weight: 700;
}

#contact p {
    font-size: 1.1rem;
    margin: 1rem 0;
    color: var(--dark-green);
    font-weight: 500;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--bright-yellow);
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left-color: var(--dark-brown);
}

.contact-item h3 {
    font-size: 1.4rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-item p {
    font-size: 1.05rem;
    color: var(--dark-green);
    margin: 0.5rem 0;
    font-weight: 600;
}

.contact-item a {
    color: var(--dark-brown);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.contact-item a:hover {
    color: var(--bright-yellow);
    border-bottom-color: var(--bright-yellow);
}

.contact-methods {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 3rem auto 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-methods h3 {
    font-size: 1.4rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-methods > p {
    font-size: 1rem;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
}

.methods-list {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.methods-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(70, 53, 29, 0.1);
    color: var(--dark-green);
    font-size: 1rem;
    line-height: 1.6;
}

.methods-list li:last-child {
    border-bottom: none;
}

.contact-message {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--bright-yellow);
    font-size: 1rem;
    color: var(--dark-green);
    font-style: italic;
}

footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--dark-green) 100%);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
}

footer p {
    margin: 0;
}

.instagram-contact-link {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instagram-contact-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding: 0.65rem;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(129, 52, 175, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.instagram-contact-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(129, 52, 175, 0.36);
}

.whatsapp-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: #fff;
    padding: 1rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 200;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    line-height: 1;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
    background-color: #fff;
    padding: 2px;
}

.whatsapp-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

@media (max-width: 480px) {
    footer {
        padding: 1.4rem 1rem;
    }

    .instagram-contact-link a {
        width: auto;
        max-width: none;
        padding: 0.6rem;
    }

    .whatsapp-button {
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.75rem 0.9rem;
        font-size: 0.95rem;
    }
}

.instagram-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}