/* Blog Page Styles */
/* Estilos específicos para la página del blog */

/* Hero Section for Blog */
.hero-blog {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/truck.png') no-repeat right center;
    background-size: contain;
    opacity: 0.1;
    z-index: 1;
}

.hero-blog .hero-split-content {
    position: relative;
    z-index: 2;
}

.hero-blog .hero-title-main {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-blog .hero-title-sub {
    font-size: 2rem;
    color: #e3f2fd;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero-blog .hero-description {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-blog .truck-image-small {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.blog-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c72;
    text-align: center;
    margin-bottom: 1rem;
}

.blog-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Featured Article */
.blog-post.featured {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    grid-column: 1 / -1;
}

.blog-post.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.blog-post.featured .post-image {
    position: relative;
    overflow: hidden;
}

.blog-post.featured .post-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post.featured:hover .post-image img {
    transform: scale(1.05);
}

.blog-post.featured .post-content {
    padding: 2rem;
}

.blog-post.featured h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post.featured p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-post.featured .post-excerpt {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.blog-post.featured .post-excerpt h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.blog-post.featured .post-excerpt ul {
    list-style: none;
    padding: 0;
}

.blog-post.featured .post-excerpt li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.blog-post.featured .post-excerpt li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Regular Blog Posts */
.blog-post {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.blog-post .post-image {
    position: relative;
    overflow: hidden;
}

.blog-post .post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.blog-post .post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-post p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Post Meta */
.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #888;
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.post-meta i {
    color: #1e3c72;
    font-size: 0.8rem;
}

/* Read More Link */
.read-more {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: #2a5298;
    text-decoration: none;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 4rem 0;
    color: #ffffff;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.newsletter-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #e3f2fd;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: #28a745;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.newsletter-form button:hover {
    background: #218838;
    transform: translateY(-2px);
}

.newsletter-note {
    font-size: 0.9rem;
    color: #b3d9ff;
    margin-top: 1rem;
}

/* CTA Section */
.cta-section {
    background: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-buttons .btn-primary {
    background: #1e3c72;
    color: #ffffff;
}

.cta-buttons .btn-primary:hover {
    background: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,60,114,0.3);
}

.cta-buttons .btn-secondary {
    background: #ffffff;
    color: #1e3c72;
    border: 2px solid #1e3c72;
}

.cta-buttons .btn-secondary:hover {
    background: #1e3c72;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-post.featured {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-post.featured {
        grid-column: 1 / -1;
    }
    
    .hero-blog .hero-title-main {
        font-size: 4rem;
    }
    
    .hero-blog .hero-title-sub {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .hero-blog {
        min-height: 50vh;
        text-align: center;
    }
    
    .hero-blog .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-blog .hero-title-sub {
        font-size: 1.5rem;
    }
    
    .hero-blog .hero-description {
        font-size: 1rem;
    }
    
    .blog-section .section-title {
        font-size: 2rem;
    }
    
    .blog-post.featured h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input[type="email"] {
        min-width: 100%;
        max-width: 300px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-in-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-in-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 