/* ============================================
   ESTILO MODERNO Y FUTURISTA PARA ABOGADOS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #5B7FA6;
    --primary-dark: #4A6B8A;
    --primary-light: #7A9CC6;
    --accent-color: #6BCAE2;
    --accent-gold: #F4A261;
    --dark-bg: #F8F9FA;
    --dark-card: #FFFFFF;
    --text-light: #FFFFFF;
    --text-dark: #2C3E50;
    --text-muted: #5B6E88;
    --gradient-primary: linear-gradient(135deg, #7A9CC6 0%, #5B7FA6 100%);
    --gradient-dark: linear-gradient(135deg, #F0F4F8 0%, #E8EDF2 100%);
    --gradient-accent: linear-gradient(135deg, #6BCAE2 0%, #5AB8D1 100%);
    --shadow-glow: 0 0 30px rgba(107, 202, 226, 0.2);
    --shadow-card: 0 5px 20px rgba(91, 127, 166, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--dark-bg);
}

/* Aplicar Inter 600 a todos los elementos */
*, *::before, *::after {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

p, span, div, a, li, td, th, label, input, textarea, select, button {
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ============================================
   NAVBAR MODERNO
   ============================================ */

.navbar {
    background: rgba(91, 127, 166, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(91, 127, 166, 0.15);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(74, 107, 138, 0.98) !important;
    box-shadow: 0 4px 30px rgba(91, 127, 166, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff !important;
    text-transform: uppercase;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.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, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    transform: translateX(-50%) scaleX(1);
}

/* ============================================
   HERO SECTION - FUTURISTA
   ============================================ */

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #E8F4F8 0%, #D6E8F0 50%, #C4DCE8 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(107, 202, 226, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(91, 127, 166, 0.15) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(91, 127, 166, 0.1);
    animation: fadeInUp 1s ease-out 0.2s both;
    letter-spacing: -0.5px;
}

.hero-section .lead {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    font-weight: 600;
}

.hero-content p:not(.lead) {
    color: var(--text-muted) !important;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-modern {
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

.btn-primary-modern {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(91, 127, 166, 0.3);
    color: #fff;
}

.btn-outline-modern {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-modern:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(91, 127, 166, 0.3);
    color: #fff;
}

/* ============================================
   SECCIONES CON ANIMACIONES
   ============================================ */

.section-modern {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* ============================================
   CARDS MODERNAS CON GLASSMORPHISM
   ============================================ */

.card-modern {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(91, 127, 166, 0.1);
    box-shadow: var(--shadow-card);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.card-modern:nth-child(1) { animation-delay: 0.1s; }
.card-modern:nth-child(2) { animation-delay: 0.2s; }
.card-modern:nth-child(3) { animation-delay: 0.3s; }
.card-modern:nth-child(4) { animation-delay: 0.4s; }

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(91, 127, 166, 0.2);
    border-color: rgba(91, 127, 166, 0.3);
}

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

.card-img-modern {
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-modern:hover .card-img-modern {
    transform: scale(1.1);
}

.card-icon-modern {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
    transition: all 0.4s ease;
}

.card-modern:hover .card-icon-modern {
    transform: rotate(5deg) scale(1.1);
}

/* ============================================
   PASOS/PROCESO - DISEÑO FUTURISTA
   ============================================ */

.step-modern {
    text-align: center;
    padding: 2rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.step-modern:nth-child(1) { animation-delay: 0.1s; }
.step-modern:nth-child(2) { animation-delay: 0.2s; }
.step-modern:nth-child(3) { animation-delay: 0.3s; }
.step-modern:nth-child(4) { animation-delay: 0.4s; }

.step-number {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--shadow-glow);
    position: relative;
    transition: all 0.4s ease;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    opacity: 0;
    transition: all 0.4s ease;
}

.step-modern:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step-modern:hover .step-number::before {
    opacity: 1;
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   TESTIMONIOS - ESTILO ELEGANTE
   ============================================ */

.testimonial-modern {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: all 0.4s ease;
    border-left: 4px solid var(--accent-color);
}

.testimonial-modern::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 6rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-weight: 700;
}

.testimonial-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FAQ ACCORDION MODERNO
   ============================================ */

.accordion-modern .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.accordion-modern .accordion-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.accordion-modern .accordion-button {
    background: #fff;
    font-weight: 600;
    padding: 1.5rem;
    border: none;
    color: var(--primary-dark);
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: none;
}

/* ============================================
   FOOTER MODERNO
   ============================================ */

footer {
    background: linear-gradient(135deg, #E8F4F8 0%, #D6E8F0 100%);
    color: var(--text-dark);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(91, 127, 166, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(107, 202, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(91, 127, 166, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   WHATSAPP FLOAT MEJORADO
   ============================================ */

.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    color: #FFF;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: pulse-whatsapp 2s ease-out infinite;
}

@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   FORMULARIOS MODERNOS
   ============================================ */

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.15);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    letter-spacing: 0.2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ============================================
   RESPONSIVE - TABLET Y MÓVIL
   ============================================ */

@media (max-width: 992px) {
    .hero-section {
        min-height: 80vh;
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: 80px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-modern {
        padding: 60px 0;
    }
    
    .btn-modern {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .card-modern {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
        padding: 70px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-modern {
        padding: 50px 0;
    }
    
    .card-modern {
        border-radius: 15px;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-dark {
    background: var(--gradient-dark);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BOTONES BOOTSTRAP PERSONALIZADOS
   ============================================ */

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(91, 127, 166, 0.2);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 127, 166, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 127, 166, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #6BCAE2 0%, #5AB8D1 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(107, 202, 226, 0.3);
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 202, 226, 0.4);
}

.btn-success:active {
    transform: translateY(0);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Animación de entrada para elementos */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}
