:root {
    --color-primary: #0C1A33;
    --color-secondary: #C9A44F;
    --color-white: #FFFFFF;
    --color-light: #F8F9FA;
    --color-dark: #1a1a1a;
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100vw;
    position: relative;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 120px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Barra Superior */
.top-bar {
    background: var(--color-primary);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    border-bottom: 1px solid rgba(201, 164, 79, 0.2);
}

.top-bar-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.top-bar-item:hover {
    color: var(--color-secondary);
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.top-bar-social-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.top-bar-social-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.top-bar-social-link:hover {
    color: var(--color-secondary);
    background: rgba(201, 164, 79, 0.1);
    transform: translateY(-2px);
}

#mainNav {
    background: transparent;
    backdrop-filter: blur(0px);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: none;
    z-index: 1000;
    top: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 70px;
    display: flex;
    align-items: center;
}

#mainNav.scrolled {
    background: rgba(12, 26, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    top: 40px;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(201, 164, 79, 0.2);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-white) !important;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--color-secondary) !important;
}

.btn-whatsapp-nav {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 4px;
    padding: 0.5rem 1.5rem !important;
    margin-left: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

.btn-whatsapp-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-section {
    position: relative;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a2d4d 100%);
    background-image: url('fondo2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
    padding-top: 140px;
    padding-bottom: 60px;
    box-sizing: border-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(201,164,79,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(12, 26, 51, 0.3) 0%, rgba(12, 26, 51, 0.7) 50%, rgba(12, 26, 51, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
    margin-top: 0;
}

.hero-content .row {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    min-height: 0;
}

.hero-content .row > div {
    padding: 0.5rem 0;
    margin-top: 0;
}

.hero-content .col-lg-7,
.hero-content .col-xl-6 {
    margin-top: 0;
    padding-top: 0;
}

.hero-welcome {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.75rem;
    margin-top: 0;
    padding-top: 0;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-white);
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-highlight {
    font-size: 1rem;
    color: var(--color-secondary);
    padding: 0.7rem 1.2rem;
    background: rgba(12, 26, 51, 0.7);
    border-left: 3px solid var(--color-secondary);
    display: inline-block;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.btn-whatsapp-hero {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    padding: 0.9rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 0.5rem;
}

.btn-whatsapp-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(201, 164, 79, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-whatsapp-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-whatsapp-hero:hover {
    transform: translateY(-3px);
    background: rgba(201, 164, 79, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(201, 164, 79, 0.3);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-whatsapp-hero:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(201, 164, 79, 0.2);
}

.btn-whatsapp-hero span,
.btn-whatsapp-hero i {
    position: relative;
    z-index: 1;
}

.hero-location {
    color: var(--color-white);
    font-size: 0.95rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    margin-bottom: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-secondary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.servicios-section {
    background: var(--color-light);
    padding: 6rem 0 5rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: var(--color-white);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--color-primary);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-secondary);
    border-top-color: var(--color-secondary);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-size: 1.8rem;
    transition: var(--transition);
    border: 2px solid var(--color-secondary);
}

.service-card:hover .service-icon {
    background: var(--color-secondary);
    border-color: var(--color-primary);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.service-description {
    color: #666;
    line-height: 1.8;
}

.break-section {
    position: relative;
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a2d4d 100%);
    margin: 4rem 0;
    z-index: 1;
    overflow: hidden;
}

.break-section-visual {
    position: relative;
    min-height: 350px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a2d4d 100%);
    background-image: url('descanso.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem 0;
    z-index: 1;
    overflow: hidden;
    padding: 3rem 1rem;
}

.break-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 26, 51, 0.85);
    z-index: 1;
}

.break-phrase {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 0 1rem;
    text-align: center;
    word-wrap: break-word;
}

.break-subphrase {
    font-size: 1.2rem;
    color: var(--color-secondary);
    position: relative;
    z-index: 2;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 0 1rem;
    text-align: center;
    word-wrap: break-word;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 26, 51, 0.75);
    z-index: 1;
}

.break-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 3;
    padding: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2.2rem;
}

.sobre-nosotros-section {
    background: var(--color-light);
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.por-que-section {
    background: var(--color-white);
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--color-white);
    border-radius: 4px;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--color-primary);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--color-secondary);
    background: var(--color-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-white);
    font-size: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-secondary);
}

.feature-card:hover .feature-icon {
    background: var(--color-secondary);
    border-color: var(--color-primary);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.feature-description {
    color: #666;
    line-height: 1.8;
}

.quien-es-section {
    background: var(--color-light);
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

/* Estilos para la sección sobre nosotros combinada */
.sobre-nosotros-section .lawyer-info {
    margin-bottom: 3rem;
}

.lawyer-photo-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border: 3px solid var(--color-primary);
}

.lawyer-photo-placeholder {
    width: 100%;
    padding-top: 125%;
    background: var(--color-primary);
    border: 3px solid var(--color-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    position: relative;
}

.lawyer-photo-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.lawyer-photo-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
}

.lawyer-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.lawyer-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    font-size: 2.2rem;
}

.lawyer-brand {
    font-size: 1.3rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.lawyer-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.lawyer-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-white);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 140px;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--color-primary);
}

.stat-item:hover {
    border-top-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.cta-final-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a2d4d 100%);
    background-image: url('abogado.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 8rem 0;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-top: 2rem;
    display: flex;
    align-items: center;
}

.cta-final-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-final-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-secondary);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.cta-final-text {
    font-size: 1.2rem;
    color: var(--color-white);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-cta-final {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    padding: 1.2rem 3rem;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: none;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    overflow: hidden;
}

.btn-cta-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(201, 164, 79, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta-final:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta-final:hover {
    transform: translateY(-3px);
    background: rgba(201, 164, 79, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(201, 164, 79, 0.3);
}

.btn-cta-final:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(201, 164, 79, 0.2);
}

.btn-cta-final span,
.btn-cta-final i {
    position: relative;
    z-index: 1;
}

.cta-final-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(12, 26, 51, 0.85) 0%, rgba(26, 45, 77, 0.75) 100%);
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    font-size: 2.2rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

.btn-whatsapp-cta {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    padding: 1.2rem 3rem;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: none;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    overflow: hidden;
}

.btn-whatsapp-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(201, 164, 79, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-whatsapp-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-whatsapp-cta:hover {
    transform: translateY(-3px);
    background: rgba(201, 164, 79, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(201, 164, 79, 0.3);
}

.btn-whatsapp-cta:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(201, 164, 79, 0.2);
}

.btn-whatsapp-cta span,
.btn-whatsapp-cta i {
    position: relative;
    z-index: 1;
}

.cta-info {
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

.break-section .container {
    position: relative;
    z-index: 3;
}

.cta-info p {
    margin: 0.5rem 0;
}

.footer-section {
    background: var(--color-primary);
    color: var(--color-white);
}

.footer-link {
    color: var(--color-white);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--color-secondary);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .lawyer-name { font-size: 2rem; }
    .lawyer-stats { justify-content: center; }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.6rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        height: auto;
        min-height: 50px;
    }
    
    .top-bar .container {
        padding: 0 15px;
    }
    
    .top-bar-contact {
        flex-direction: row;
        gap: 0.8rem;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .top-bar-item {
        font-size: 0.7rem;
        white-space: nowrap;
        line-height: 1.2;
    }
    
    .top-bar-item i {
        font-size: 0.65rem;
    }
    
    .top-bar-social {
        justify-content: flex-start;
        margin-top: 0.3rem;
        gap: 0.5rem;
    }
    
    .top-bar-social-text {
        display: none;
    }
    
    .top-bar-social-link {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
    }
    
    #mainNav {
        top: 60px !important;
        padding: 0.75rem 0;
        background: rgba(12, 26, 51, 0.95) !important;
        backdrop-filter: blur(10px);
        z-index: 1000;
        min-height: 56px;
        display: flex;
        align-items: center;
    }
    
    #mainNav.scrolled {
        top: 60px !important;
        background: rgba(12, 26, 51, 0.98) !important;
    }
    
    #mainNav .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .navbar-brand {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        margin: 0;
        padding: 0;
        line-height: 1;
        max-width: calc(100% - 60px);
    }
    
    .brand-name {
        font-size: 1.1rem;
        line-height: 1;
        white-space: nowrap;
    }
    
    .brand-subtitle {
        font-size: 0.6rem;
        line-height: 1;
        white-space: nowrap;
    }
    
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.3);
        padding: 0.25rem 0.5rem;
        margin: 0;
        order: 2;
        flex-shrink: 0;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 24px;
        height: 24px;
    }
    
    .navbar-collapse {
        background: rgba(12, 26, 51, 0.98);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 4px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1002;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .hero-section {
        padding-top: 146px;
        height: 100vh;
        max-height: 100vh;
        background-attachment: scroll;
        padding-bottom: 50px;
    }
    
    .hero-content .row {
        height: 100%;
        max-height: calc(100vh - 196px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .hero-content .row::-webkit-scrollbar {
        width: 4px;
    }
    
    .hero-content .row::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .hero-content .row::-webkit-scrollbar-thumb {
        background: var(--color-secondary);
        border-radius: 2px;
    }
    
    html {
        scroll-padding-top: 120px;
    }
    
    .hero-welcome {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-title { 
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    .hero-highlight {
        font-size: 0.85rem;
        padding: 0.6rem 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-location {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .btn-whatsapp-hero {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    
    .hero-subtitle { font-size: 1.2rem; }
    .section-title { font-size: 1.8rem; }
    .service-card, .feature-card { margin-bottom: 2rem; }
    .break-title { font-size: 1.8rem; }
    .cta-title { font-size: 2rem; }
    .btn-whatsapp-hero, .btn-whatsapp-cta { 
        padding: 0.9rem 2rem; 
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    .lawyer-stats { flex-direction: column; align-items: center; }
    .stat-item { width: 100%; max-width: 250px; }
    
    /* Sección de descanso visual en móviles */
    .break-section-visual {
        min-height: 250px;
        margin: 2rem 0;
        padding: 2rem 1rem;
        background-attachment: scroll;
    }
    
    .break-phrase {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
        line-height: 1.3;
    }
    
    .break-subphrase {
        font-size: 1rem;
        letter-spacing: 0.5px;
        padding: 0 0.5rem;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .brand-name { font-size: 1.2rem; }
    .brand-subtitle { font-size: 0.65rem; }
    .hero-title { 
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .hero-welcome {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-highlight {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .hero-location {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .btn-whatsapp-hero {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
    }
    
    .scroll-indicator {
        bottom: 15px;
        font-size: 1.2rem;
    }
    .service-icon, .feature-icon { width: 70px; height: 70px; font-size: 1.8rem; }
    
    /* Sección de descanso visual en móviles pequeños */
    .break-section-visual {
        min-height: 200px;
        margin: 1.5rem 0;
        padding: 1.5rem 0.75rem;
    }
    
    .break-phrase {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
        padding: 0 0.5rem;
        line-height: 1.2;
    }
    
    .break-subphrase {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
        padding: 0 0.5rem;
        line-height: 1.3;
    }
}

.smooth-scroll { scroll-behavior: smooth; }

.parallax-section { 
    will-change: transform;
    transform: translateZ(0);
}

/* Mejoras adicionales para evitar superposiciones */
section {
    position: relative;
    clear: both;
}

.row {
    position: relative;
    z-index: 1;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mejorar contenedores */
.container,
.container-fluid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Prevenir scroll horizontal */
* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Espaciado adicional entre secciones */
.servicios-section + .break-section {
    margin-top: 0;
}

.break-section + .por-que-section {
    margin-top: 0;
}

@media (hover: hover) {
    .service-card:hover, .feature-card:hover { cursor: pointer; }
}

/* ============================================
   NUEVOS ESTILOS PARA ESTRUCTURA ACTUALIZADA
   ============================================ */

/* Servicios Principales */
.service-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-main-description {
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 600;
}

.service-main-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.service-detail-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-secondary);
}

.service-detail-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-size: 1.8rem;
}

.service-detail-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-detail-text {
    color: #666;
    line-height: 1.8;
}

.service-secondary-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.service-secondary-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.other-service-card {
    background: var(--color-light);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.other-service-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.other-service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--color-white);
    font-size: 1.5rem;
}

.other-service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.btn-service-cta {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-service-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(201, 164, 79, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-service-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-service-cta:hover {
    transform: translateY(-3px);
    background: rgba(201, 164, 79, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(201, 164, 79, 0.3);
}

.btn-service-cta:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(201, 164, 79, 0.2);
}

.btn-service-cta span,
.btn-service-cta i {
    position: relative;
    z-index: 1;
}

/* Quienes Somos */
.quienes-somos-section {
    background: var(--color-white);
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.why-choose-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.why-choose-item-new {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition);
    height: 100%;
}

.why-choose-item-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-secondary);
    background: var(--color-light);
}

.why-choose-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
    opacity: 0.3;
    min-width: 60px;
}

.why-choose-content {
    flex: 1;
}

.why-choose-text-new {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.why-choose-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Testimonios */
.testimonios-section {
    background: var(--color-light);
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.testimonios-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: 0.5rem;
}

.testimonial-card {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--color-secondary);
}

.testimonial-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.testimonial-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #666;
    line-height: 1.8;
    font-style: italic;
}

.btn-testimonios-link {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-testimonios-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Contacto */
.contacto-section {
    background: var(--color-white);
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.contact-form-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.2rem rgba(201, 164, 79, 0.25);
}

.btn-contact-submit {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    padding: 0.9rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    width: 100%;
}

.btn-contact-submit:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-info {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

.contact-info-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.contact-details {
    margin-top: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-light);
    border-radius: 4px;
    border-left: 4px solid var(--color-primary);
}

.contact-detail-item i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-right: 1.5rem;
    margin-top: 0.3rem;
}

.contact-detail-item strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-detail-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   BOTONES FLOTANTES
   ============================================ */

/* Botón WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--color-white);
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    color: var(--color-white);
}

.whatsapp-float i {
    line-height: 1;
}


@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Botón Scroll to Top */
.scroll-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    text-align: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--color-secondary);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top i {
    line-height: 1;
}

/* Responsive para botones flotantes */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 80px;
        right: 15px;
        font-size: 24px;
        position: fixed !important;
        margin: 0;
        padding: 0 18px;
        box-sizing: border-box;
        border: none;
        outline: none;
    }
    
    .whatsapp-float:hover {
        padding: 0 20px;
    }
    
    .whatsapp-text {
        font-size: 0.8rem;
    }
    
    .whatsapp-float:hover i {
        margin-right: 10px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
        position: fixed !important;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        outline: none;
    }

}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 70px;
        right: 10px;
        font-size: 22px;
        position: fixed !important;
        left: auto;
        padding: 0 15px;
    }
    
    .whatsapp-float:hover {
        padding: 0 18px;
    }
    
    .whatsapp-text {
        font-size: 0.75rem;
    }
    
    .whatsapp-float:hover i {
        margin-right: 8px;
    }

    .scroll-to-top {
        width: 42px;
        height: 42px;
        bottom: 10px;
        right: 10px;
        font-size: 16px;
        position: fixed !important;
        left: auto;
    }
}

/* Asegurar que los botones no se salgan del viewport en cualquier tamaño */
@media (max-width: 480px) {
    .whatsapp-float {
        right: 8px !important;
        bottom: 65px !important;
    }

    .scroll-to-top {
        right: 8px !important;
        bottom: 8px !important;
    }
}

