/* Estilos específicos para la página de Blog */

/* ==================== BLOG HERO ==================== */
.blog-hero {
    position: relative;
    height: calc(50vh - 20px);
    min-height: calc(300px - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/attorney-7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(51, 65, 85, 0.85) 100%);
    backdrop-filter: blur(2px);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.4s both;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 0;
    color: white;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.service-hero-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.service-hero-icon i {
    font-size: 3rem;
    color: #fbbf24;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-hero-icon i:hover {
    transform: scale(1.1);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* ==================== SERVICE CONTENT ==================== */
.service-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-intro {
    margin-bottom: 40px;
}

.service-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
}

.service-intro strong {
    color: #1a365d;
    font-weight: 600;
}

.service-list {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #f97316;
}

.service-list h3 {
    color: #1a365d;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.service-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-items li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    color: #4a5568;
    position: relative;
    padding-left: 25px;
}

.service-items li:last-child {
    border-bottom: none;
}

.service-items li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-items strong {
    color: #1a365d;
    font-weight: 600;
}

/* Estilo para elementos sin enlace - alternativa compatible */
.service-items li strong:not(.service-link) {
    color: #64748b;
    font-weight: 500;
    opacity: 0.8;
}

.service-link {
    color: #f97316;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.service-link:hover {
    color: #ea580c;
    text-decoration: none;
    border-bottom-color: #ea580c;
}

.service-link::after {
    content: " 🔗";
    opacity: 0.7;
    transition: all 0.3s ease;
    color: #f97316;
    font-weight: bold;
    margin-left: 8px;
}

.service-link:hover::after {
    opacity: 1;
    transform: scale(1.1);
}


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

/* ==================== BLOG SECTION ==================== */
.blog-section {
    padding: 40px 0;
    background: #f8fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #64748b;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: #f97316;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Responsive Blog */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: calc(40vh - 20px);
        min-height: calc(250px - 20px);
    }
    
    .blog-hero-title {
        font-size: 2.2rem;
        white-space: nowrap;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .service-hero-icon i {
        font-size: 2.5rem;
        padding: 15px;
        width: 70px;
        height: 70px;
    }
    
    /* Estilos responsive para enlaces de servicios */
    .service-link {
        font-size: 0.95rem;
    }
    
    .service-link::after {
        content: " 🔗";
        font-size: 0.9rem;
        margin-left: 5px;
    }
    
    .service-items li strong:not(.service-link) {
        font-size: 0.95rem;
    }
    
    .service-content {
        padding: 0 15px;
    }
    
    .service-intro p {
        font-size: 1rem;
    }
    
    .service-list {
        padding: 20px;
    }
    
    .service-list h3 {
        font-size: 1.3rem;
    }
    
    .blog-section {
        padding: 30px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 15px;
    }
    
    .blog-card {
        margin-bottom: 0;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-content h3 {
        font-size: 1.3rem;
    }
    
    .blog-content p {
        font-size: 0.95rem;
    }
    
}

/* Media query para móviles pequeños - Hero más alto */
@media (max-width: 480px) {
    .blog-hero {
        height: calc(50vh - 20px);
        min-height: calc(350px - 20px);
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .blog-hero-content {
        padding: 0 15px;
        margin-top: 15px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    .service-hero-icon {
        margin-bottom: 20px;
    }
    
    .service-hero-icon i {
        font-size: 2.2rem;
        padding: 12px;
        width: 60px;
        height: 60px;
    }
}

/* CTA Section */
.cta-section {
    background: #265370;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 200px;
    border: 2px solid transparent;
}

.cta-phone {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.cta-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
    color: white;
}

.cta-phone i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.cta-form {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-form:hover {
    background: white;
    color: #265370;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Responsive CTA */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}