/* Estilos personalizados */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 60px 0 40px 0;
    color: white;
    overflow: hidden;
}

/* Fondo con imagen difuminada */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) brightness(0.4);
    transform: scale(1.1);
    z-index: 0;
}

/* Capa de color sobre el fondo */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 73, 92, 0.92), rgba(20, 50, 70, 0.95));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Logo y título */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-container img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logo-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(52,152,219,0.3);
}

.main-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.main-title span {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle-center {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas de sección - MÁS GRANDES */
.section-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 45px 40px;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.section-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.section-card.client-card {
    border-left: 5px solid #3498db;
}

.section-card.lawyer-card {
    border-left: 5px solid #2ecc71;
}

.section-card .card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.section-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.section-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.section-card .feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.section-card .feature-list li {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-card .feature-list li:last-child {
    border-bottom: none;
}

.section-card .feature-list li i {
    color: #2ecc71;
    font-size: 1rem;
    width: 20px;
}

/* Formulario */
.form-control-custom {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #3498db;
    color: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.3);
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control-custom option {
    background: #1a1a2e;
    color: white;
}

.form-control-custom.textarea-custom {
    resize: vertical;
    min-height: 100px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(52, 152, 219, 0.5);
    color: white;
}

.btn-success-custom {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-success-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(46, 204, 113, 0.5);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    color: white;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-group-custom {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-group-custom .btn {
    flex: 1;
}

/* Badge de sección */
.section-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.badge-client {
    background: rgba(52, 152, 219, 0.3);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-lawyer {
    background: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Galería de imágenes */
.image-gallery {
    margin-top: 30px;
    padding: 20px 0;
}

.image-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.image-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Row de características inferiores */
.bottom-features {
    margin-top: 30px;
    padding: 20px 0;
}

.bottom-feature-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.bottom-feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bottom-feature-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.bottom-feature-item h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.bottom-feature-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.icon-blue { color: #3498db; }
.icon-green { color: #2ecc71; }
.icon-gold { color: #f1c40f; }
.icon-purple { color: #9b59b6; }

/* Animación de entrada */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-d1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-d2 { animation-delay: 0.3s; opacity: 0; }
.fade-in-d3 { animation-delay: 0.5s; opacity: 0; }
.fade-in-d4 { animation-delay: 0.7s; opacity: 0; }

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    .section-card {
        padding: 30px 25px;
        min-height: auto;
    }
    .btn-group-custom {
        flex-direction: column;
    }
    .logo-container h1 {
        font-size: 1.8rem;
    }
    .logo-container img {
        height: 50px;
    }
    .subtitle-center {
        font-size: 1.1rem;
    }
    .image-gallery img {
        height: 140px;
        margin-bottom: 15px;
    }
    .bottom-feature-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 992px) {
    .section-card {
        min-height: auto;
        margin-bottom: 25px;
    }
}

/* Espaciado reducido entre secciones */
.section-spacing {
    margin-top: 10px;
    margin-bottom: 5px;
}

.text-glow {
    text-shadow: 0 0 30px rgba(52,152,219,0.2);
}

/* Sección de contadores */
.counters-section {
    margin-top: 25px;
    margin-bottom: 15px;
}

.counter-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 15px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

.counter-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.counter-item i {
    font-size: 1.9rem;
    margin-bottom: 8px;
    display: block;
}

.counter-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(52, 152, 219, 0.2);
}

.counter-title {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .counter-number {
        font-size: 1.8rem;
    }
    .counter-item {
        padding: 16px 12px;
    }
    .counter-title {
        font-size: 0.75rem;
    }
}

/* Modales personalizados */
.modal-custom {
    background: linear-gradient(135deg, rgba(30, 73, 92, 0.98), rgba(20, 50, 70, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: white;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.modal-header-custom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
}

.modal-header-custom .modal-title {
    font-weight: 700;
    font-size: 1.4rem;
}

.modal-body {
    padding: 25px;
}

.modal-footer-custom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
}

.form-label-custom {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.link-custom {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
}

.link-custom:hover {
    color: #2ecc71;
    text-decoration: underline;
}