 /* Estilos Generales */
 body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF; 
   
  }

    /* Estilos base  */
    .servicios-header {
        text-align: center;
        padding: 3rem 0;
        background-color: #f3f4f6;
        border-bottom: 2px solid #ccc;
        margin-top: 100px;
    }
    .servicios-header h1 {
        font-size: 2.5rem;
        font-weight: bold;
        color: #1D4ED8;
        margin-bottom: 0.5rem;
    }
    .servicios-header p {
        font-size: 1.1rem;
        color: #6B7280;
    }


    /*-----SECCION DE LAS NOTICIAS----*/

    .news-section { padding: 2rem 1rem; }
    .news-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        justify-content: center;   
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        
    }
    .news-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: transform 0.3s, box-shadow 0.3s;
        max-width: 400px;   
        margin: auto;       
        
    }
    
    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }
    .news-image { height: 200px; overflow: hidden; }
    .news-image img { width: 100%; height: 100%; object-fit: cover; }
    .news-content { padding: 1.5rem; flex-grow: 1; }
    .news-content h3 {
        font-size: 1.5rem;
        font-weight: bold;
        color: #1F2937;
        margin-bottom: 0.5rem;
    }
    .news-content p {
        color: #4B5563;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    .news-btn {
        display: inline-block;
        padding: 0.5rem 1rem;
        background-color: #1D4ED8;
        color: white;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
        transition: background-color 0.3s;
    }

    .news-btn:hover { background-color: #1E40AF; 
    }

    @media (max-width: 480px) {

        .servicios-header {
            margin-top: 80px;
            padding: 2rem 1rem;
        }
    
        .servicios-header h1 {
            font-size: 1.6rem;
        }
    
        .servicios-header p {
            font-size: 0.95rem;
        }
    
        .news-container {
            grid-template-columns: 1fr;
        }
    
        .news-content {
            padding: 1.2rem;
        }
    
        .news-image {
            height: 160px;
        }
    
        .news-btn {
            width: 100%;
            text-align: center;
        }
    }
    